[FFmpeg-user] Compiling ffmpeg under Windows with MSVC

Wolfgang Hugemann auto at hugemann.de
Tue Oct 6 09:29:25 EEST 2020


I am trying to follow the instructions given at
https://trac.ffmpeg.org/wiki/CompilationGuide/MSVC.

The MS version of cl.exe and link.exe need a lot of environment
variables to be set, wich is usually done in a cmd shell via the
vcvarsall batch file.

But the config script that comes with ffmpeg needs to be run in bash. So
how exactly do I set up the needed environment for cl and link? I ran
the vcvarsall batch file in the bash, calling cmd from the bash an than
executing vcvarsall, getting back to the bash via exit. But that didn't
help: The MS linker stops with an error that obvioasly results from
lacking environment variables:

LINK : fatal error LNK1104: file "LIBCMT.lib" could not be openedn

What I am getting wrong here?

Wolfgang Hugemann


More information about the ffmpeg-user mailing list