On Thu, Dec 4, 2014 at 7:19 PM, Anshul Maheshwari <anshul.ffm...@gmail.com> wrote:
> I am using git pulled just before this mail. > > Here is some error that I am getting > LD ffmpeg_g > /usr/bin/ld: libavdevice/libavdevice.a(decklink_common.o): undefined > reference to symbol 'dlsym@@GLIBC_2.2.5' > /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libdl.so: > error adding symbols: DSO missing from command line > collect2: error: ld returned 1 exit status > make: *** [ffmpeg_g] Error 1 > > > If I look doing verbose you can see I have already added -ldl in my extra > ldflags > anshulm@tele-uni01:~/work/bmd/test/ffmpeg$ make V=1 > gcc -Llibavcodec -Llibavdevice -Llibavfilter -Llibavformat -Llibavresample > -Llibavutil -Llibpostproc -Llibswscale -Llibswresample -ldl > -Wl,--as-needed -Wl,-z,noexecstack -Wl,--warn-common > -Wl,-rpath-link=libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample > -o ffmpeg_g cmdutils.o ffmpeg_opt.o ffmpeg_filter.o ffmpeg.o > ffmpeg_vdpau.o -lavdevice -lavfilter -lavformat -lavcodec -lswresample > -lswscale -lavutil -lXv -lX11 -lXext -lstdc++ -lstdc++ -lva -lxcb -lxcb-shm > -lxcb -lxcb-xfixes -lxcb-render -lxcb-shape -lxcb -lxcb-shape -lxcb -lX11 > -ljack -lasound -lSDL -lm -llzma -lz -pthread -lvdpau > /usr/bin/ld: libavdevice/libavdevice.a(decklink_common.o): undefined > reference to symbol 'dlsym@@GLIBC_2.2.5' > /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libdl.so: > error adding symbols: DSO missing from command line > collect2: error: ld returned 1 exit status > make: *** [ffmpeg_g] Error 1 > > Its look like an library order issue, if I use library at the end of > coomand, it works. > anshulm@tele-uni01:~/work/bmd/test/ffmpeg$ gcc -Llibavcodec -Llibavdevice > -Llibavfilter -Llibavformat -Llibavresample -Llibavutil -Llibpostproc > -Llibswscale -Llibswresample -ldl -Wl,--as-needed -Wl,-z,noexecstack > -Wl,--warn-common > -Wl,-rpath-link=libpostproc:libswresample:libswscale:libavfilter:libavdevice:libavformat:libavcodec:libavutil:libavresample > -o ffmpeg_g cmdutils.o ffmpeg_opt.o ffmpeg_filter.o ffmpeg.o > ffmpeg_vdpau.o -lavdevice -lavfilter -lavformat -lavcodec -lswresample > -lswscale -lavutil -lXv -lX11 -lXext -lstdc++ -lstdc++ -lva -lxcb -lxcb-shm > -lxcb -lxcb-xfixes -lxcb-render -lxcb-shape -lxcb -lxcb-shape -lxcb -lX11 > -ljack -lasound -lSDL -lm -llzma -lz -pthread -lvdpau -ldl > > Sorry for noise, works with /configure --enable-decklink --extra_cflags="-I/home/anshulm/work/bmd/Blackmagic_DeckLink_SDK_10.1.1/Linux/include/" --extra-ldflags="-ldl" --extra-libs=-ldl _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user