Re: [Libav-user] Setting up ffmpeg avcodec wiht Qt Linux undefined reference
On 05/01/2018 08:18 AM, buff...@mailbox.org wrote: Ok, "$ make doc/examples/decode_video" compiled successfully. The following version of gcc is currently installed: gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3) Using: extern "C" { #include } as mentioned in my first email leads to another error: /usr/bin/x86_64-linux-gnu-ld: /home/user/ffmpeg_build/lib//libavcodec.a(flashsv.o): undefined reference to symbol 'inflateEnd' Makefile:252: recipe for target 'FFmpegDev' failed //lib/x86_64-linux-gnu/libz.so.1: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make: *** [FFmpegDev] Error 1 13:52:06: The process "/usr/bin/make" exited with code 2. Is this information useful? Greetings Carl Eugen Hoyos hat am 30. April 2018 um 20:00 geschrieben: 2018-04-30 16:47 GMT+02:00, buff...@mailbox.org : im trying to get the example from https://www.ffmpeg.org/doxygen/trunk/decode_video_8c-example.html running. Did you test the following? $ make doc/examples/decode_video 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 QT issue. add libavcodec/avcodec.h and others to your .pro file. ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user
Re: [Libav-user] Setting up ffmpeg avcodec wiht Qt Linux undefined reference
2018-05-01 14:18 GMT+02:00, buff...@mailbox.org : > /usr/bin/x86_64-linux-gnu-ld: > /home/user/ffmpeg_build/lib//libavcodec.a(flashsv.o): > undefined reference to symbol 'inflateEnd' "-lz" does not follow "-lavcodec" in the linking command. (This is not an FFmpeg-related question.) Please remember not to top-post here, Carl Eugen ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user
Re: [Libav-user] Setting up ffmpeg avcodec wiht Qt Linux undefined reference
Ok, "$ make doc/examples/decode_video" compiled successfully. The following version of gcc is currently installed: gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3) Using: extern "C" { #include } as mentioned in my first email leads to another error: /usr/bin/x86_64-linux-gnu-ld: /home/user/ffmpeg_build/lib//libavcodec.a(flashsv.o): undefined reference to symbol 'inflateEnd' Makefile:252: recipe for target 'FFmpegDev' failed //lib/x86_64-linux-gnu/libz.so.1: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make: *** [FFmpegDev] Error 1 13:52:06: The process "/usr/bin/make" exited with code 2. Is this information useful? Greetings > Carl Eugen Hoyos hat am 30. April 2018 um 20:00 > geschrieben: > > > 2018-04-30 16:47 GMT+02:00, buff...@mailbox.org : > > > im trying to get the example from > > https://www.ffmpeg.org/doxygen/trunk/decode_video_8c-example.html > > running. > > Did you test the following? > $ make doc/examples/decode_video > > 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
Re: [Libav-user] Setting up ffmpeg avcodec wiht Qt Linux undefined reference
2018-04-30 16:47 GMT+02:00, buff...@mailbox.org : > im trying to get the example from > https://www.ffmpeg.org/doxygen/trunk/decode_video_8c-example.html > running. Did you test the following? $ make doc/examples/decode_video Carl Eugen ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user
[Libav-user] Setting up ffmpeg avcodec wiht Qt Linux undefined reference
Hi, im trying to get the example from https://www.ffmpeg.org/doxygen/trunk/decode_video_8c-example.html running. Im using Qt Creator (C++) with Widgets and compiled ffmpeg manually (Kubuntu 18.04.0 64 bit). Unfortunately im getting "undefined reference" errors for every avcodec function (e.g. avcodec_send_packet https://www.ffmpeg.org/doxygen/trunk/group__lavc__decoding.html#ga58bc4bf1e0ac59e27362597e467efff3 (dec_ctx, pkt) ...) I added headers and libs in the qmake file with: INCLUDEPATH += /home/user/ffmpeg_build/include LIBS += /home/user/ffmpeg_build/lib/libavcodec.a I have tried: extern "C" { #include } without success. I attached a file with the "undefined reference" errors. Kind Regards undefined_ref_log Description: Binary data ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user