Seems that you miss libavcodec/avcodec.h
and, most probably, also libavformat/avformat.h
. This should be because ffmpeg include folder is not into gcc
's list of directories to look for header files.
From your update seems that pjsip
is building against a newer ffmpeg
version that the one available in Ubuntu's repositories. As you've built it yourself, you can configure pjsip
to use your version by running:
./configure --with-ffmpeg=<YOUR_FFMPEG_FOLDER>
or
#Copy all library ffmpeg library files into one folder
CFLAGS="-I<YOUR_FFMPEG_FOLDER>" LDFLAGS="-L<YOUR_FFMPEG_LIB_FOLDER>" ./configure