[Libav-user] Error while linking ffmpeg

Wang Bin wbsecg1 at gmail.com
Tue Jul 2 11:28:23 CEST 2013


you must make sure the libav* match the header when compiling your code.
you may add "-v" option to see details


2013/7/2 ... ... <bersac_1 at hotmail.fr>

> hi,
>
> Thanks for your response,
> >you may link to the wrong libavcodec
> How could I know that ?
> I only have one livavutil installed on my computer, here is the response
> to the command ldconfig -p|grep libav (command which list all the libraries
> installed on my computer and filter it :
>
> libavutil.so.52 (libc6,x86-64) => /usr/local/lib/libavutil.so.52
>
> libavutil.so (libc6,x86-64) => /usr/local/lib/libavutil.so
> libavformat.so.55 (libc6,x86-64) => /usr/local/lib/libavformat.so.55
> libavformat.so (libc6,x86-64) => /usr/local/lib/libavformat.so
> libavfilter.so.3 (libc6,x86-64) => /usr/local/lib/libavfilter.so.3
> libavfilter.so (libc6,x86-64) => /usr/local/lib/libavfilter.so
> libavdevice.so.55 (libc6,x86-64) => /usr/local/lib/libavdevice.so.55
> libavdevice.so (libc6,x86-64) => /usr/local/lib/libavdevice.so
> libavc1394.so.0 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libavc1394.so.0
> libavc1394.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libavc1394.so
> libavcodec.so.55 (libc6,x86-64) => /usr/local/lib/libavcodec.so.55
> libavcodec.so.55 (libc6,x86-64) => /usr/lib/libavcodec.so.55
> libavcodec.so (libc6,x86-64) => /usr/local/lib/libavcodec.so
> libavcodec.so (libc6,x86-64) => /usr/lib/libavcodec.so
>
> The message error  is still :
>
> g++ -o test  Capture.o EnregistrerVideo.o ffmpegTools.o FluxVideoModifie.o
> main_stream_vlc.o test.o Transcodage.o vizILogger.o VLCStreamer.o
> -lavformat -lavcodec -lavutil -lswscale -lopencv_core -lopencv_highgui
>  -lvlc -lvlccore -lboost_filesystem -lboost_log_setup -lboost_log
> -lboost_chrono -lz -lpthread -ldl -lm
> /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libavcodec.so: undefined
> reference to `avpriv_update_lls at LIBAVUTIL_52'
> /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libavcodec.so: undefined
> reference to `avpriv_evaluate_lls at LIBAVUTIL_52'
> collect2: ld returned 1 exit status
> make: *** [test] Error 1
>
>
> Cordialement,
> Guillaume Bersac
> 237bis rue de Pessac
> 33000 Bordeaux
> 06.65.30.89.43
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130702/1d392fbe/attachment.html>


More information about the Libav-user mailing list