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

buffgix at mailbox.org buffgix at mailbox.org
Mon Apr 30 17:47:28 EEST 2018


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 <libavcodec/avcodec.h>
}

without success.


I attached a file with the "undefined reference" errors.


Kind Regards

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20180430/29fb2ea2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: undefined_ref_log
Type: application/octet-stream
Size: 3001 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20180430/29fb2ea2/attachment.obj>


More information about the Libav-user mailing list