<!DOCTYPE html>
<html><head>
<meta charset="UTF-8">
</head><body><p>Hi,<br></p><p>im trying to get the example from <a href="https://www.ffmpeg.org/doxygen/trunk/decode_video_8c-example.html">https://www.ffmpeg.org/doxygen/trunk/decode_video_8c-example.html</a> running.<br></p><p>Im using Qt Creator (C++) with Widgets and compiled ffmpeg manually (Kubuntu 18.04.0 64 bit).<br></p><p>Unfortunately im getting "undefined reference" errors for every avcodec function (e.g. <a class="code" href="https://www.ffmpeg.org/doxygen/trunk/group__lavc__decoding.html#ga58bc4bf1e0ac59e27362597e467efff3">avcodec_send_packet</a>(dec_ctx, pkt) ...)<br></p><p>I added headers and libs in the qmake file with:<br></p><p class="default-style"> INCLUDEPATH += /home/user/ffmpeg_build/include</p><p class="default-style"> LIBS += /home/user/ffmpeg_build/lib/libavcodec.a</p><p class="default-style"><br></p><p class="default-style">I have tried: </p><p class="default-style">extern "C" {<br> #include <libavcodec/avcodec.h><br>}<br></p><p class="default-style">without success.<br></p><p class="default-style"><br></p><p class="default-style">I attached a file with the "undefined reference" errors.<br></p><p class="default-style"><br></p><p class="default-style">Kind Regards</p><p class="default-style"><br></p></body></html>