Changes between Version 2 and Version 3 of CompilationGuide/MSVC
- Timestamp:
- Jul 8, 2015, 6:18:46 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CompilationGuide/MSVC
v2 v3 44 44 --enable-shared will generate the dynamic linked lib (dlls) 45 45 46 you might see an error saying cl can't generate executable, this is because you installed the link.exe from msys. it conflicts with the link.exe of visual studio. 47 you can try "which link.exe" to verify if it is the case. if you see /bin/link.exe, then you can simply rm /bin/link.exe 48 the right link.exe should come from this location: 49 /c/Program Files (x86)/Microsoft Visual Studio 12.0/VC/BIN/link.exe 50 46 51 you might see two problems when building ffmpeg: 47 52 1. pr command not found: … … 52 57 53 58 in the end of configuration, you might also see pkg-config not found issue. that won't affect compilation, you can ignore it. it is said that installing pkg-config to msys is kinda tiresome. 59 60 61 How to build debug version? 62 an example: 63 $ ./configure --enable-asm --enable-yasm --disable-ffserver --disable-avdevice --disable-doc --disable-ffplay --disable-ffprobe --disable-ffmpeg --enable-shared --disable-static --disable-bzlib --disable-libopenjpeg --disable-iconv --disable-zlib --prefix=/c/ffmpeg --toolchain=msvc --arch=amd64 --extra-cflags="-MDd" --extra-ldflags="/NODEFAULTLIB:libcmt" --enable-debug
