visual studio - Creating debug build FFMpeg static libraries with Windows compiler -
we using ffmpeg static libraries compiled via --toolchain=msvc switch vs2010 compiler linked static runtime (-mt). these libraries work fine linked libcmt.lib.
we compile debug build of these libraries (i.e. linking against libcmtd.lib). in configure call added:
./configure --toolchain=msvc --enable-debug --arch=x86 --extra-cflags=-mtd
this result in calls cl.exe -mtd switch -mt switch , cause conflicts in linker stage.
what missing?
i managed solve using following configure switches:
./configure --toolchain=msvc --enable-debug --arch=x86 --extra-cflags="-mtd" extra-cxxflags="-mtd" --extra-ldflags="-nodefaultlib:libcmt"
Comments
Post a Comment