[Libav-user] Error while linking ffmpeg

2013-07-02 Thread ... ...
Hi,
I am working on a project using ffmpeg and when I compiled, i get the following 
error :
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@LIBAVUTIL_52'/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libavcodec.so:
 undefined reference to `avpriv_evaluate_lls@LIBAVUTIL_52'collect2: ld returned 
1 exit statusmake: *** [test] Error 1
I use the ffmpeg version I downloaded yersteday on git. Can you bhelp me fix 
this bug ?

Any help would be appreciate,Cordially,Guillaume Bersac237bis rue de 
Pessac33000 Bordeaux06.65.30.89.43
  ___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


Re: [Libav-user] Error while linking ffmpeg

2013-07-02 Thread Wang Bin
 Hi,

 I am working on a project using ffmpeg and when I compiled, i get the
 following error :

 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@LIBAVUTIL_52'
 /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libavcodec.so: undefined
 reference to `avpriv_evaluate_lls@LIBAVUTIL_52'
 collect2: ld returned 1 exit status
 make: *** [test] Error 1

 I use the ffmpeg version I downloaded yersteday on git. Can you bhelp me
 fix this bug ?


 Any help would be appreciate,
 Cordially,
 Guillaume Bersac
 237bis rue de Pessac
 33000 Bordeaux
 06.65.30.89.43


you may link to the wrong libavcodec
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


Re: [Libav-user] Error while linking ffmpeg

2013-07-02 Thread ... ...
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@LIBAVUTIL_52'/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libavcodec.so:
 undefined reference to `avpriv_evaluate_lls@LIBAVUTIL_52'collect2: ld returned 
1 exit statusmake: *** [test] Error 1
Cordialement,Guillaume Bersac237bis rue de Pessac33000 Bordeaux06.65.30.89.43   
  ___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


Re: [Libav-user] Error while linking ffmpeg

2013-07-02 Thread ... ...
Hi, you must make sure the libav* match the header when compiling your code. 
you may add -v option to see detailsI tryied the ffmpeg -v command and I 
get the following answerffmpeg version N-54345-ga35494c Copyright (c) 2000-2013 
the FFmpeg developers built on Jul  2 2013 11:28:20 with gcc 4.6 (Ubuntu/Linaro 
4.6.3-1ubuntu5) configuration: --enable-shared libavutil  52. 38.100 / 52. 
38.100 libavcodec 55. 18.100 / 55. 18.100 libavformat55. 10.101 / 55. 
10.101 libavdevice55.  2.100 / 55.  2.100 libavfilter 3. 77.101 /  3. 
77.101 libswscale  2.  3.100 /  2.  3.100 libswresample   0. 17.102 /  0. 
17.102Missing argument for option 'v'.Error splitting the argument list: 
Invalid argumentWhat am I suppose to do with that ?


Cordialement,Guillaume Bersac237bis rue de Pessac33000 Bordeaux06.65.30.89.43   
  ___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


Re: [Libav-user] Error while linking ffmpeg

2013-07-02 Thread Carl Eugen Hoyos
... ... bersac_1@... writes:

 I am working on a project using ffmpeg and when I compiled, 
 i get the following error :

 /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libavcodec.so: 
 undefined reference to `avpriv_update_lls at LIBAVUTIL_52'

You are mixing versions of libavcodec and libavutil 
that are not compatible, please reinstall.
This is a bug in FFmpeg that is unlikely to get fixed 
(especially because the workaround is trivial), see:
http://thread.gmane.org/gmane.comp.video.ffmpeg.cvs/66227/focus=66238

Sorry, Carl Eugen

___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


Re: [Libav-user] Error while linking ffmpeg : problem solve !

2013-07-02 Thread ... ...
Hi,
And thanks a lot for your responses and especially to Carl Eugen ! I just 
installed libvlc using apt-get and it installed avcodec in usr/lib. I deleted 
it and now it is compiling fine with both libvlc and ffmpeg. I would had never 
found that solution.
Cordially,Guillaume Bersac237bis rue de Pessac33000 Bordeaux06.65.30.89.43


 To: libav-user@ffmpeg.org
 From: ceho...@ag.or.at
 Date: Tue, 2 Jul 2013 12:00:42 +
 Subject: Re: [Libav-user] Error while linking ffmpeg
 
 ... ... bersac_1@... writes:
 
   you must make sure the libav* match the header when compiling 
   your code. you may add -v option to see details
  
  I tryied the ffmpeg -v command and I get the following answer
 
 (Unrelated: Note that -v is the option to set the verboseness 
 of all FFmpeg binaries, it requires an argument.)
 
   configuration: --enable-shared
 
  What am I suppose to do with that ?
 
 This tells you that you installed the libraries into 
 /usr/local/lib (this is the default location and you 
 did not specify another location) while you already 
 have (another version of) libavcodec installed in 
 /usr/lib - this generally cannot work.
 
 Please understand that I do *not* generally recommend to 
 install your self-compiled shared libraries into /usr/lib 
 - I just want to explain the problem (why linking fails 
 for you independently of the mentioned FFmpeg bug).
 
 Carl Eugen
 
 ___
 Libav-user mailing list
 Libav-user@ffmpeg.org
 http://ffmpeg.org/mailman/listinfo/libav-user
  ___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user