[FFmpeg-devel] [PATCH] Fix compilation of static libraries with pthreads in MingW32
Sun Sep 6 01:47:18 CEST 2009
On Mon, Aug 31, 2009 at 7:32 AM, Horacio Sanson<hsanson at gmail.com> wrote:
> FFMpeg static libraries fail to compile with the --enable-pthreads
> switch in a MingW32 environment. Before
> I used this patch
> but it no
> longer applies to the latest SVN.
> I am no expert making make files and need some help to improve this line:
> -enabled libx264 ? ?&& require ?libx264 x264.h x264_encoder_open -lx264 -lm &&
> +enabled libx264 ? ?&& require2 libx264 "stdint.h x264.h"
> x264_encoder_open -lx264 -lpthreadGC2 -lws2_32 -lm &&
> I am pretty sure adding "-lpthreadGC2 -lws2_32" is not correct as
> pthreads depends on the configure flags but I do not
> know how the correct way to do this. Without these flags added after
> -lx264 I get unresolved symbol errors.
This has already been discussed in
I now patch pthreads-win32 to automatically initialize itself. More
It still requires a (simpler) patch for FFmpeg that can be found here:
inside the latest packages under patches/ffmpeg-mingw32.diff
> Also I ran the regression tests and "asf" failed (see output below)
> but I think this has nothing to do with this changes.
I think you didn't understand how the regression tests work. The last line says:
> seek regression test: success
More information about the ffmpeg-devel