Changes between Version 10 and Version 11 of CompilationGuide/MSVC
- Timestamp:
- Nov 2, 2015, 1:35:28 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CompilationGuide/MSVC
v10 v11 34 34 {{{ Tools -> External tools... -> Add }}} 35 35 36 To set up a proper environment in MSYS, you need to run `msys.bat` (or the equivalent `mingw32_shell.bat`) from the command prompt. 36 To build 64bit you need to run this command to enable the 64bit compiler and linker: 37 {{{ 38 vcvarsall.bat amd64 39 }}} 40 41 Installed in the Visual Studio `VC` directory (for example: `C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC`). 42 Depending on the system the argument might be `x86_amd64` or similar. 43 44 See the following link for details: [https://msdn.microsoft.com/en-us/library/x4d2c09s.aspx] 45 46 Finally, to set up a proper MSYS environment, you need to run `msys.bat` (or the equivalent `mingw32_shell.bat`) from the command prompt. 37 47 38 48 Now, make sure that the `cl` and `link` program are not override by other programs with the same name from MSYS/MinGW (in particular, note that MinGW provides a program named `link`). In order to do so, you can set the MSYS path so that the VisualStudio tools are used instead, for example with the command: … … 104 114 $ ./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 105 115 }}} 106 107 In case you need to build 64bit:108 109 you need to run this command to trigger the 64bit compiler (setting --arch=amd64 --target-os=win64 won't build 64bit ffmpeg):110 111 112 {{{113 vcvarsall amd64114 }}}115 116 details: [https://msdn.microsoft.com/en-us/library/x4d2c09s.aspx]
