[FFmpeg-user] compile ffmpeg with MSYS2 for MSVC

Bernhard Döbler programmer at bardware.de
Thu Feb 5 01:11:19 CET 2015


Hi,

I installed msys2-x86_64-20150202.exe opened cmd, started
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat
and finally ran
msys2_shell.bat.

There I pulled ffmpeg from git and called:
$ ./configure --toolchain=msvc --arch=x86
$ make

make eventually stopped with the following output:

$ make V=1
cl -nologo -out:doc/print_options doc/print_options.o -lm
cl : Befehlszeile warning D9035 : Die Option "o" ist veraltet und wird 
in einer der n▒chsten Versionen entfernt.
cl : Befehlszeile warning D9002 : Unbekannte Option "-lm" wird ignoriert.
cl : Befehlszeile warning D9024 : Unbekannter Typ der Quelldatei 
"doc/print_options.o", Objektdatei wird angenommen.
LINK : fatal error LNK1104: Datei "ut:doc/print_options.exe" kann nicht 
ge▒ffnet werden.
common.mak:130: die Regel für Ziel „doc/print_options“ scheiterte
make: *** [doc/print_options] Fehler 2

I guess print_options.exe is to be linked with MSYS2's own gcc; not with 
the MSVC compiler ffmpeg is being build. The command line parameters 
don't fit cl.

$ which cl
/c/Program Files (x86)/Microsoft Visual Studio 12.0/VC/BIN/cl

Is my setup incomplete or is the detection of the HOSTCC/HOSTLD during 
configure broken?


Best,
Bernhard


More information about the ffmpeg-user mailing list