Changes between Version 2 and Version 3 of CompilationGuide/MSVC


Ignore:
Timestamp:
Jul 8, 2015, 9:18:46 PM (4 years ago)
Author:
hahaha1234
Comment:

deal with link.exe issue, add debug build flags

Legend:

Unmodified
Added
Removed
Modified
  • CompilationGuide/MSVC

    v2 v3  
    4444--enable-shared will generate the dynamic linked lib (dlls)
    4545
     46you 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.
     47you 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
     48the right link.exe should come from this location:
     49/c/Program Files (x86)/Microsoft Visual Studio 12.0/VC/BIN/link.exe
     50
    4651you might see two problems when building ffmpeg:
    47521. pr command not found:
     
    5257
    5358in 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
     61How to build debug version?
     62an 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