compile error: ffmpeg av_get_default_channel_layout
Hi all, I am not a linux expert, maybe I made something stupied but I was not able to figure out what´s wrong here. Basically I downloaded ffmpeg 11.0, build it and set the lib and include path in eclipse. But I get this error : relocation error: /usr/local/lib/libavcodec.so.54: symbol av_get_default_channel_layout, version LIBAVUTIL_51 not defined in file libavutil.so.51 with link time reference My guess is, there is a mismatch between older and newer libs from ffmpeg. Can anyone help here ? Not sure if this makes a difference, the same code works under windows. Thanks, Sven
Hi all, It´s funny, I found the reason for this issue a few minutes after posting this. Please ignore my previous mail. Thanks ! Sven -----Ursprüngliche Nachricht----- Von: ffmpeg-user-bounces@ffmpeg.org [mailto:ffmpeg-user-bounces@ffmpeg.org] Im Auftrag von Sven Dueking Gesendet: Mittwoch, 29. August 2012 11:49 An: ffmpeg-user@ffmpeg.org Betreff: [FFmpeg-user] compile error: ffmpeg av_get_default_channel_layout Hi all, I am not a linux expert, maybe I made something stupied but I was not able to figure out what´s wrong here. Basically I downloaded ffmpeg 11.0, build it and set the lib and include path in eclipse. But I get this error : relocation error: /usr/local/lib/libavcodec.so.54: symbol av_get_default_channel_layout, version LIBAVUTIL_51 not defined in file libavutil.so.51 with link time reference My guess is, there is a mismatch between older and newer libs from ffmpeg. Can anyone help here ? Not sure if this makes a difference, the same code works under windows. Thanks, Sven _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
On Wed, 29 Aug 2012 13:30:33 +0200 "Sven Dueking" <sven@nablet.com> wrote:
Hi all,
It´s funny, I found the reason for this issue a few minutes after posting this. Please ignore my previous mail.
Thanks ! Sven
...and the reason for the issue and your solution? Others may experience the same issues, search the error, and find this thread; then leave disappointed and annoyed.
Hi Sven, i have the same problem. How do you resolve it??? Thanks!! rancesco
Francesco Damato <francesco.damato7 <at> gmail.com> writes:
i have the same problem.
If you tell us how to reproduce your problem we may be able to help you. If you want me to guess: You have different FFmpeg version installed (that may not be a problem so far) and you don't tell your linker which version to use. Carl Eugen
HI Carl Eugen Hoyos, i get this error: relocation error: /usr/local/lib/libavcodec.so.54: symbol av_get_default_channel_layout, version LIBAVUTIL_51 not defined in file libavutil.so.51 with link time reference. Thanks for your help!!! I am a new user of Linux and ffmpeg library. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/compile-error-ffmpeg-av-get-default... Sent from the FFmpeg-users mailing list archive at Nabble.com.
Francesco <francesco.damato7 <at> gmail.com> writes:
i get this error: relocation error: /usr/local/lib/libavcodec.so.54: symbol av_get_default_channel_layout, version LIBAVUTIL_51 not defined in file libavutil.so.51 with link time reference.
This is unfortunately still missing nearly all information that is needed to reproduce the problem. As said, you have different versions of FFmpeg installed. This is not necessarily a problem, but if you are a new user, I would recommend to use static compilation (remove --enable-shared from your configure line). Carl Eugen
Hi Carl Eugen, how can i use static compilation?? Yes, i have different versions of FFmpeg installed and I still have not solved the problem. Thank you very much for your help!!! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/compile-error-ffmpeg-av-get-default... Sent from the FFmpeg-users mailing list archive at Nabble.com.
Am 06.09.2013 16:13, schrieb Francesco:
how can i use static compilation?? Yes, i have different versions of FFmpeg installed and I still have not solved the problem.
Thank you very much for your help!!!
./configure --help --enable-static --disable-shared
Reindl Harald <h.reindl <at> thelounge.net> writes:
Am 06.09.2013 16:13, schrieb Francesco:
how can i use static compilation?? Yes, i have different versions of FFmpeg installed and I still have not solved the problem.
You will (still) have to tell us how we would be able to reproduce the problem (what you type) and what error you get (what you see). Of course we can all guess (see below) but I believe this thread shows very convincingly why this is usually not a good idea.
./configure --help
--enable-static --disable-shared
Since this is the default, I don't think this helps (he is either searching for "-static" or "-L/usr/local/lib" or needs to add the static libraries - including path - to his linker command line). Carl Eugen
Sorry. now I'll explain: i am writing a C program to encode to mpeg2 video read from file and then decode it. I saw the example decoding_encoding.c...when i build example, there aren't errors, but when i run it, this is the output: relocation error: /usr/local/lib/libavcodec.so.54: symbol av_get_default_channel_layout, version LIBAVUTIL_51 not defined in file libavutil.so.51 with link time reference. So you confirm that the previous solution is right?? Thank you!!!! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/compile-error-ffmpeg-av-get-default... Sent from the FFmpeg-users mailing list archive at Nabble.com.
This is "ffmpeg -version output": configuration: --prefix=/home/francescodamato/ffmpeg_build --extra-cflags=-I/home/francescodamato/ffmpeg_build/include --extra-ldflags=-L/home/francescodamato/ffmpeg_build/lib --bindir=/home/francescodamato/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab libavutil 52. 38.100 / 52. 38.100 libavcodec 55. 18.100 / 55. 18.100 libavformat 55. 10.101 / 55. 10.101 libavdevice 55. 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.102 libpostproc 52. 3.100 / 52. 3.100 -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/compile-error-ffmpeg-av-get-default... Sent from the FFmpeg-users mailing list archive at Nabble.com.
participants (6)
-
Carl Eugen Hoyos -
Francesco -
Francesco Damato -
Lou -
Reindl Harald -
Sven Dueking