Bug #6186
Debian: Error while compiling
0%
Description
Under Debian 11.2.0-14 there is no compilation of TVH possible at the moment:
src/libav.c: In function ‘libav_init’:
src/libav.c:320:3: error: implicit declaration of function ‘av_register_all’ [-Werror=implicit-function-declaration]
320 | av_register_all();
| ^~~~~~~~~~~~~
src/libav.c:322:3: error: implicit declaration of function ‘avfilter_register_all’ [-Werror=implicit-function-declaration]
322 | avfilter_register_all();
| ^~~~~~~~~~~~~~~~~~~
GCC version: gcc (Debian 11.3.0-3) 11.3.0
Parameters for compilation:
--enable-libav --disable-hdhomerun_client --disable-hdhomerun_static --disable-ffmpeg_static --disable-libffmpeg_static --enable-libx264 --enable-libx265 --enable-vaapi --enable-libfdkaac --disable-libx264_static --disable-libx265_static --disable-libfdkaac_static --disable-libvorbis_static --disable-libtheora_static --disable-libvpx_static --disable-libopus_static
History
Updated by Kiril St. over 2 years ago
Stefan Dietzel wrote:
Under Debian 11.2.0-14 there is no compilation of TVH possible at the moment:
src/libav.c: In function ‘libav_init’:
src/libav.c:320:3: error: implicit declaration of function ‘av_register_all’ [-Werror=implicit-function-declaration]
320 | av_register_all(); | ^~~~~~~~~~~~~
src/libav.c:322:3: error: implicit declaration of function ‘avfilter_register_all’ [-Werror=implicit-function-declaration]
322 | avfilter_register_all(); | ^~~~~~~~~~~~~~~~~~~
Stefan, delete line 322 in src/libav.c, and add:
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(58, 9, 100)
av_register_all();
#endif
Maybe this will help...