[FFmpeg-devel] Fix libx264

Felipe Contreras felipe.contreras
Tue Feb 23 13:06:55 CET 2010


2010/2/16 M?ns Rullg?rd <mans at mansr.com>:
> Felipe Contreras <felipe.contreras at gmail.com> writes:
>> Anyway, regardless of what your opinions are, the fact remains the
>> same: FFmpeg compilation is broken for x264 as static library.
>
> No, use --enable-pthreads. ?It works for everybody else.

Actually I thought about this and FFmpeg should link to pthread if
x264 (or any other dependency) is linking to pthread, even if we don't
want to use thread s in FFmpeg. This is already happening behind the
curtains by the linking system when x264 is linked dynamically: when
libavcodec.so is loaded so is libx264.so, and then in turn
libpthread.so. Therefore the same should happen when linking
statically.

Apparently other dependencies also require pthread: libschroedinger,
libxvidcore. And probably more depending on how they are compiled.

-- 
Felipe Contreras



More information about the ffmpeg-devel mailing list