Пытаюсь собрать Linphone 3.12.0 на Debian 9 с использованием Qt 5.9.6.
Последовательность действий:
apt-get install gcc c++ make cmake git autoconf autogen automake libtool yasm
apt-get install libmbedtls10 libmbedtls-dev libcunit1 libcunit1-dev
apt-get install libx11-xcb-dev libx11-xcb1 libglew-dev
apt-get install libbsd-dev libbsd0 libv4l-dev libv4l-0
apt-get install python-psycopg2 python-pip python3-pip
pip install pystache
git clone https://gitlab.linphone.org/BC/public/linphone-desktop.git --recursive
cd linphone-desktop
git checkout -b linphone_3_12_0 1b5f0705
git submodule update --init --recursive
export Qt5_DIR="/opt/qt_5_9_6/5.9.6/gcc_64/lib/cmake"
export PATH="/opt/qt_5_9_6/5.9.6/gcc_64/bin/:$PATH"
rm -Rf ./OUTPUT
rm -Rf ./WORK
./prepare.py -DENABLE_V4L=NO -DENABLE_SOUND=NO
make
На этапе make имею ошибку:
In file included from
/linphone-desktop/linphone-sdk/mediastreamer2/src/videofilters/ffmpegnowebcam.c:32:0:
/linphone-desktop/linphone-sdk/mediastreamer2/src/videofilters/ffmpegnowebcam.c: In function ‘jpeg2yuv’:
/linphone-desktop/linphone-sdk/mediastreamer2/src/utils/ffmpeg-priv.h:146:23:
error: implicit declaration of function ‘avcodec_free_frame’ [-Werror=implicit-function-declaration]
#define av_frame_free avcodec_free_frame
^
/linphone-desktop/linphone-sdk/mediastreamer2/src/videofilters/ffmpegnowebcam.c:117:2:
note: in expansion of macro ‘av_frame_free’
av_frame_free(&orig);
^~~~~~~~~~~~~
cc1: all warnings being treated as errors
src/CMakeFiles/mediastreamer.dir/build.make:2054: ошибка выполнения рецепта для цели «src/CMakeFiles/mediastreamer.dir/videofilters/ffmpegnowebcam.c.o»
make[6]: *** [src/CMakeFiles/mediastreamer.dir/videofilters/ffmpegnowebcam.c.o] Ошибка 1
Как эту ошибку можно обойти?