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

Attachment: undefined_ref_log
Description: Binary data

_______________________________________________
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to