[FFmpeg-devel] How to build for static ffmpeg executable

Timothy Gu timothygu99 at gmail.com
Thu Jan 21 00:03:31 CET 2016


Hi,

On Wednesday, January 20, 2016, John Pompeii <lksm6-at-yahoo.com at ffmpeg.org>
wrote:

> Hi,
> 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?
>
>
This mailing list is limited to FFmpeg development, so please mail the
ffmpeg-users mailing list for questions on using FFmpeg. But for
convenience, you have to make sure the external libraries are built as
static libraries with DLLs disabled, or the compiler will link to them by
default. You are already building FFmpeg statically (since there are no
libav* DLL dependencies).

Timothy


More information about the ffmpeg-devel mailing list