<div dir="ltr">Dear all,<div><br></div><div>I has compiled ffmpeg from source as per instructed by :</div><div><br></div><div><a href="https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu">https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu</a><br></div><div><br></div><div>When I want to compile my code, I get this error:</div><div><br></div><div>/home/dfalahati/<b>ffmpeg_sources</b>/ffmpeg/libavutil/hwcontext_vaapi.c:1275: error: undefined reference to `<b>vaGetDisplay</b>'</div><div><br></div><div>I have also added the following static libs:</div><div>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,0,128)">LIBS</span><span style="color:rgb(192,192,192)"> </span>+=<span style="color:rgb(192,192,192)"> </span>-L/home/dfalahati/<b>ffmpeg_build</b>/lib<span style="color:rgb(192,192,192)"> </span>-lavdevice<span style="color:rgb(192,192,192)"> </span>-lavfilter<span style="color:rgb(192,192,192)"> </span>-lavformat<span style="color:rgb(192,192,192)"> </span>-lavcodec<span style="color:rgb(192,192,192)"> </span>-lx264<span style="color:rgb(192,192,192)"> </span>-lx265<span style="color:rgb(192,192,192)"> </span>-lpostproc<span style="color:rgb(192,192,192)"> </span>-lvpx<span style="color:rgb(192,192,192)">  </span>-lmp3lame<span style="color:rgb(192,192,192)"> </span>-lfdk-aac<span style="color:rgb(192,192,192)">   </span>-lswresample<span style="color:rgb(192,192,192)"> </span>-lswscale<span style="color:rgb(192,192,192)"> </span>-lavutil<span style="color:rgb(192,192,192)"> </span>-lopus<span style="color:rgb(192,192,192)"> </span>-lyasm</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(128,0,128)">LIBS</span><span style="color:rgb(192,192,192)"> </span>+=<span style="color:rgb(192,192,192)"> </span>-L/usr/local/lib<span style="color:rgb(192,192,192)"> </span>-lm<span style="color:rgb(192,192,192)"> </span>-lz<span style="color:rgb(192,192,192)"> </span>-ldl<span style="color:rgb(192,192,192)"> </span>-lvorbis<span style="color:rgb(192,192,192)"> </span>-lass<span style="color:rgb(192,192,192)"> </span>-ltheora<span style="color:rgb(192,192,192)">  </span>\</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span>-lX11<span style="color:rgb(192,192,192)">  </span>-lasound<span style="color:rgb(192,192,192)"> </span>-lpthread<span style="color:rgb(192,192,192)">  </span>-lz<span style="color:rgb(192,192,192)"> </span>-pthread<span style="color:rgb(192,192,192)"> </span>-lXv<span style="color:rgb(192,192,192)"> </span>\</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span>-lvdpau<span style="color:rgb(192,192,192)"> </span>-lva-drm<span style="color:rgb(192,192,192)">  </span>-lva<span style="color:rgb(192,192,192)"> </span>-lxcb-shm<span style="color:rgb(192,192,192)"> </span>-lxcb-xfixes<span style="color:rgb(192,192,192)"> </span>\</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">         </span>-lxcb<span style="color:rgb(192,192,192)"> </span>-lXau<span style="color:rgb(192,192,192)"> </span>-lXdmcp<span style="color:rgb(192,192,192)">  </span>\</pre>
<pre style="margin-top:0px;margin-bottom:0px"><font color="#c0c0c0"> </font>        <span style="font-family:arial,sans-serif">-lrt</span><span style="font-family:arial,sans-serif;color:rgb(192,192,192)">  </span><span style="font-family:arial,sans-serif">-lvorbisenc</span><span style="font-family:arial,sans-serif;color:rgb(192,192,192)"> </span><span style="font-family:arial,sans-serif">-ltheoraenc</span><span style="font-family:arial,sans-serif;color:rgb(192,192,192)"> </span><span style="font-family:arial,sans-serif">-ltheoradec</span><span style="font-family:arial,sans-serif;color:rgb(192,192,192)"> </span><span style="font-family:arial,sans-serif">-logg</span><span style="font-family:arial,sans-serif;color:rgb(192,192,192)"> </span><span style="font-family:arial,sans-serif">\</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">        </span>-lfontconfig<span style="color:rgb(192,192,192)"> </span>-lfribidi<span style="color:rgb(192,192,192)"> </span>-lexpat<span style="color:rgb(192,192,192)"> </span>-lfreetype<span style="color:rgb(192,192,192)"> </span>-lpng12<span style="color:rgb(192,192,192)"> </span>-llzma<span style="color:rgb(192,192,192)">  </span>-lnuma<span style="color:rgb(192,192,192)"> </span>\</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">          </span>-lpulse-simple<span style="color:rgb(192,192,192)"> </span>-lpulse<span style="color:rgb(192,192,192)"> </span>-lstdc++<span style="color:rgb(192,192,192)"> </span>-lrt<span style="color:rgb(192,192,192)"> </span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="color:rgb(192,192,192)">         </span>-lharfbuzz<span style="color:rgb(192,192,192)">  </span>-llzma<span style="color:rgb(192,192,192)"> </span>-lbz2</pre><div><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><div>FYI, I am using ubuntu and I use QtCreator as my favorite C/C++ IDE. </div><div><br></div><div>Yours,</div><div>Davood</div></div></div></div></div>
</div></div>