-
Notifications
You must be signed in to change notification settings - Fork 3
04 Building LSW for Avisynth
MaverickTse edited this page Nov 13, 2015
·
2 revisions
Does not involve Mingw at all!
- Install MSYS2 (better to have one without MINGW or LLVM, just vanilla)
- Install the pacman packages is not already have: base-devel, yasm, git
- Close MSYS2
- Starts VC201X x86/x64 command prompt, run
msys2_shell.bat
to launch MSYS2 - Download FFmpeg, L-SMASH and L-SMASH Works source files
- Build FFmpeg with configure options:
--toolchain=msvc --enable-avresample
- Check if
lib*.a
are produced - Open L-SMASH VS-solution file
- Change build type from DLL to Static LIB
- Uncheck project dependency on DLLexportgen
- build L-SMASH (The RELEASE or DEBUG configuration)
- Check
liblsmash.lib
is produced - Open Avisynth solution file
- C/C++ > Code generation > Change
/MD
to/MT
- Set Additional Include Path and Additional Library Path
- Modify
exlib.cpp
: - remove/disable first two
#pragma
which are Mingw specific - change
liblsmash.a
toliblsmash.lib
- change
*.lib
(the FFmpeg-related) tolib*.a
- Save and Build
- Check with dependency walker
- Test with Avisynth(+)