[FFmpeg-user] undefined reference errors when calling avdevice_register_all()

Nicolas George george at nsup.org
Wed Apr 23 09:21:29 CEST 2014


Le quartidi 4 floréal, an CCXXII, Clément Bœsch a écrit :
> > gcc demo_capture.c -o demo_capture -pthread -lavformat -lavcodec -lavdevice
> > -lavfilter -lavutil -lswscale -lswresample -lpostproc -lz -lrt -lm -lx264
> > -lmp3lame -lvpx -lasound -lSDL
> Works for me here. This looks related to libavfilter dependencies to
> libavcodec. How was FFmpeg built?

My guess is: it was built static. This an ultra-FAQ, and not related to
FFmpeg: static libraries must be in dependency order. In doubt, use
pkg-config.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20140423/988221d5/attachment.asc>


More information about the ffmpeg-user mailing list