[FFmpeg-devel] How to build for static ffmpeg executable
lksm6 at yahoo.com
Wed Jan 20 23:51:37 CET 2016
I am building ffmpeg.exe and ffprobe.exe on 64 bit windows (7) using MSYS2/MINGW64. I've resolved all the dependent libraries and got a build and it does appear to run just fine as a 64 windows app. This issue that I have is that its linking the external libraries as dlls instead of static libs. I build the ffmpeg libs as static and assumed that the build would statically link all libraries, but not so.
Can someone let me know what the build options are to build a static version of ffmpeg.exe?
The configure command line I'm using is:./configure --prefix=/mingw64/share/ffmpeg/rel --disable-ffplay --disable-ffserver --disable-doc --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-iconv --enable-libfreetype --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libtheora --enable-libvo-aacenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libzimg --enable-lzma --enable-zlib
The DLL's required to load and run ffmpeg.exe are:libbz2-1.dll
It would seem that some libs (such as x264) are linking statically
More information about the ffmpeg-devel