Project

General

Profile

Bug #6186

Debian: Error while compiling

Added by Stefan Dietzel over 2 years ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
2022-07-12
Due date:
% Done:

0%

Estimated time:
Found in version:
actual (commit e3f4f222ec86cb5e46576ac97fcb404ffbafc317)
Affected Versions:

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

#2

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...

Also available in: Atom PDF