Changes between Version 10 and Version 11 of CompilationGuide/MSVC


Ignore:
Timestamp:
Nov 2, 2015, 3:35:28 PM (4 years ago)
Author:
saste
Comment:

move up note about 64bit compilation

Legend:

Unmodified
Added
Removed
Modified
  • CompilationGuide/MSVC

    v10 v11  
    3434{{{ Tools -> External tools... -> Add }}}
    3535
    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.
     36To build 64bit you need to run this command to enable the 64bit compiler and linker:
     37{{{
     38vcvarsall.bat amd64
     39}}}
     40
     41Installed in the Visual Studio `VC` directory (for example: `C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC`).
     42Depending on the system the argument might be `x86_amd64` or similar.
     43
     44See the following link for details: [https://msdn.microsoft.com/en-us/library/x4d2c09s.aspx]
     45
     46Finally, to set up a proper MSYS environment, you need to run `msys.bat` (or the equivalent `mingw32_shell.bat`) from the command prompt.
    3747
    3848Now, 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:
     
    104114$ ./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
    105115}}}
    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 amd64
    114 }}}
    115 
    116 details: [https://msdn.microsoft.com/en-us/library/x4d2c09s.aspx]