Project 'savoirfairelinux/ring-project' was moved to 'savoirfairelinux/jami-project'. Please update any links and bookmarks that may still have the old path.
fatal error: libavutil/pixfmt.h: No such file or directory
[Cloned and expanded from Tuleap#1795]
When compiled the latest ring-daemon today, the following error happened:
[ 32s] ../../doltlibtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I/home/abuild/rpmbuild/BUILD/ring-daemon-6.0.0.20180924.0a667fb9d/src -I/home/abuild/rpmbuild/BUILD/ring-daemon-6.0.0.20180924.0a667fb9d/src/config -I/home/abuild/rpmbuild/BUILD/ring-daemon-6.0.0.20180924.0a667fb9d/src/media -I/home/abuild/rpmbuild/BUILD/ring-daemon-6.0.0.20180924.0a667fb9d/test -I/home/abuild/rpmbuild/BUILD/ring-daemon-6.0.0.20180924.0a667fb9d/src/dring -DPREFIX=\"/usr\" -DPROGSHAREDIR=\"/usr/share/ring\" -DENABLE_TRACE -DRING_REVISION=\"6.0.0.20180924.0a667fb9d\" -DRING_DIRTY_REPO=\"dirty\" -DPJSIP_MAX_PKT_LEN=8000 -DPJ_AUTOCONF=1 -fvisibility=hidden -DDRING_BUILD -Ddring_EXPORTS -I./ -I../ -DPREFIX=\"/usr\" -DPROGSHAREDIR=\"/usr/share/ring\" -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -DNDEBUG=1 -O3 -c -o libclient_la-callmanager.lo `test -f 'callmanager.cpp' || echo './'`callmanager.cpp
[ 32s] In file included from /home/abuild/rpmbuild/BUILD/ring-daemon-6.0.0.20180924.0a667fb9d/src/media/media_encoder.h:27:0,
[ 32s] from /home/abuild/rpmbuild/BUILD/ring-daemon-6.0.0.20180924.0a667fb9d/src/media/media_recorder.h:24,
[ 32s] from /home/abuild/rpmbuild/BUILD/ring-daemon-6.0.0.20180924.0a667fb9d/src/media/recordable.h:25,
[ 32s] from /home/abuild/rpmbuild/BUILD/ring-daemon-6.0.0.20180924.0a667fb9d/src/call.h:32,
[ 32s] from /home/abuild/rpmbuild/BUILD/ring-daemon-6.0.0.20180924.0a667fb9d/src/call_factory.h:24,
[ 32s] from callmanager.cpp:26:
[ 32s] /home/abuild/rpmbuild/BUILD/ring-daemon-6.0.0.20180924.0a667fb9d/src/media/video/video_base.h:40:10: fatal error: libavutil/pixfmt.h: No such file or directory
[ 32s] #include <libavutil/pixfmt.h>
[ 32s] ^~~~~~~~~~~~~~~~~~~~
It doesn't contain -I/usr/include/ffmpeg
in which libavutil/pixfmt.h resides.
A very similar problem arises during ./configure:
[ 61s] checking libavcodec/vdpau.h usability... no
[ 61s] checking libavcodec/vdpau.h presence... no
The file /usr/include/ffmpeg/libavcodec/vdpau.h does exist, however the ./configure script doesn't find it either.
pkgconfig of libavcodec correctly contains the right include directory (/usr/include/ffmpeg).