[FFmpeg-devel] libav*.pc missing dependencies [?]

Roger Pack rogerdpack2 at gmail.com
Wed May 21 18:35:22 CEST 2014


As a note, when cross compiling (target in this case: windows) and
subsequently linking against/using libavutil.a/libavutil.pc for my
link parameters, I get this:

  CCLD     libswscale_plugin.la
/home/rogerdpack/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/i686-w64-mingw32/lib/libavutil.a(log.o):
In function `av_log_default_callback':
/home/rogerdpack/dev/ffmpeg-windows-build-helpers/sandbox/win32/ffmpeg_git/libavutil/log.c:303:
undefined reference to `pthread_mutex_lock'
/home/rogerdpack/dev/ffmpeg-windows-build-helpers/sandbox/win32/ffmpeg_git/libavutil/log.c:337:
undefined reference to `pthread_mutex_unlock'

I believe the libavutil.pc file is missing a pthread dependency in it.

Also libswresample.pc seemed to be missing an "-lsoxr" flag for its
linker parameters (when ffmpeg is initially linked against soxr).

(Let me know if I should file a trac or redirect this or give more
information or what not).
Thanks.
-roger-


More information about the ffmpeg-devel mailing list