ring-daemon build fails: can't find PIX\_FMT\_PLANAR and PIX\_FMT\_RGB
Issue generated from Tuleap's migration script. Originally submitted by: Yuri (yurivict)
Build of ring-daemon-2.2.0 on FreeBSD 11 fails:
video_scaler.cpp:95:28: error: use of undeclared identifier 'PIX_FMT_PLANAR'
if (not (desc->flags & PIX_FMT_PLANAR)
^
video_scaler.cpp:96:26: error: use of undeclared identifier 'PIX_FMT_RGB'
or desc->flags & PIX_FMT_RGB)
^
These values originate from libav. libav-11.8_2 has them, but some other version is bundled with the latest ffmpeg-3.3.2 that doesn't have them.
You need to make sure libav version is picked up first.
On my system libav instals this header as
/usr/local/include/libav/libavutil/pixdesc.h
and ffmpeg installs it as /usr/local/include/libav/libavutil/pixdesc.h