[Libav-user] Setting up ffmpeg avcodec wiht Qt Linux undefined reference

Larry Arnold larnold7 at cox.net
Wed May 2 14:28:34 EEST 2018


On 05/01/2018 08:18 AM, buffgix at 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 <libavcodec/avcodec.h>
> }
>
> 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 <ceffmpeg at gmail.com> hat am 30. April 2018 um 20:00 geschrieben:
>>
>>
>> 2018-04-30 16:47 GMT+02:00, buffgix at mailbox.org <buffgix at 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 at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/libav-user
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user


QT issue. add  libavcodec/avcodec.h  and others to your .pro file.


More information about the Libav-user mailing list