[FFmpeg-devel] [PATCH] pthread detection on mingw + static pthread

Ramiro Polla ramiro
Fri Apr 25 14:43:52 CEST 2008


>> Or even better:
>> gcc -o tmp.exe tmp.o -lpthreadGC2 -lx264 -lpthreadGC2
>>                       ^^ FFmpeg ^^        ^^  x264  ^^
> This obviously has nothing to do with x264.h detection

It has to do with x264 detection. The thing about the header is that 
once you compile a program that includes x264.h, you must have already 
included stdint.h before. In require() it checks the header and the lib 
independently (why not just make a real compilation+link check for 
all?). In require2(), it includes <x264.h>, so stdint.h must be added.

In configure there is:
# check for some common methods of building with pthread support
# do this before the optional library checks as some of them require 

My last suggestion was to add the pthreads flag to FFmpeg, and then try 
x264 with and without the pthreads flag.

Ramiro Polla

More information about the ffmpeg-devel mailing list