<div dir="ltr">I compiled finally after couple of days!<div><br></div><div>If its CPP application you should </div><div><br></div><div><div><font face="courier new, monospace" color="#666666" style="background-color:rgb(238,238,238)">extern "C" {</font></div>
<div><font face="courier new, monospace" color="#666666" style="background-color:rgb(238,238,238)">#include <libavutil/opt.h></font></div><div><font face="courier new, monospace" color="#666666" style="background-color:rgb(238,238,238)">#include <libavcodec/avcodec.h></font></div>
<div><font face="courier new, monospace" color="#666666" style="background-color:rgb(238,238,238)">#include <libavutil/channel_layout.h></font></div><div><font face="courier new, monospace" color="#666666" style="background-color:rgb(238,238,238)">#include <libavutil/common.h></font></div>
<div><font face="courier new, monospace" color="#666666" style="background-color:rgb(238,238,238)">#include <libavutil/imgutils.h></font></div><div><font face="courier new, monospace" color="#666666" style="background-color:rgb(238,238,238)">#include <libavutil/mathematics.h></font></div>
<div><font face="courier new, monospace" color="#666666" style="background-color:rgb(238,238,238)">#include <libavutil/samplefmt.h></font></div><div><font face="courier new, monospace" color="#666666" style="background-color:rgb(238,238,238)">}</font></div>
</div><div class="gmail_extra"><br></div><div class="gmail_extra">and my build commands are</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra"><font color="#666666" style="background-color:rgb(238,238,238)">g++ -D__STDC_CONSTANT_MACROS -c -g -Iffmpeg_build/include -D__STDC_CONSTANT_MACROS -MMD -MP -MF build/Debug/GNU-Linux-x86/main.o.d -o build/Debug/GNU-Linux-x86/main.o main.cpp</font></div>
<div><div><font color="#666666" style="background-color:rgb(238,238,238)">g++ -D__STDC_CONSTANT_MACROS -o dist/Debug/GNU-Linux-x86/test build/Debug/GNU-Linux-x86/main.o -Lffmpeg_build/lib -L/usr/lib/i386-linux-gnu ffmpeg_build/lib/libavformat.a ffmpeg_build/lib/libavcodec.a ffmpeg_build/lib/libswscale.a ffmpeg_build/lib/libavdevice.a ffmpeg_build/lib/libavfilter.a ffmpeg_build/lib/libfdk-aac.a ffmpeg_build/lib/libpostproc.a ffmpeg_build/lib/libswresample.a ffmpeg_build/lib/libx264.a ffmpeg_build/lib/libavutil.a -lvpx -lvorbisenc -lvorbis -lmp3lame -lopus -ltheora -ltheoraenc -ltheoradec -lva -ldl -lzip -lz -lpthread</font></div>
</div><div><br></div><div>we need to link heck amount of libraries</div></div><div class="gmail_extra"><br><div dir="ltr"><strong><font face="arial, helvetica, sans-serif" color="#444444">Gowtham</font></strong><br></div>
</div></div>