Bug #1886
Multiple errors when compiling
Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
Transcoding
Target version:
-
Start date:
2013-12-25
Due date:
% Done:
0%
Estimated time:
Found in version:
latest
Affected Versions:
Description
I'm trying to compile the latest git clone of tvheadend in Debian. I disabled libav when configuring to allow it to make, but the autobuild script doesn't honor it.
src/plumbing/transcoding.c: In function ‘transcoder_stream_subtitle’: src/plumbing/transcoding.c:219:5: error: implicit declaration of function ‘avcodec_open’ [-Werror=implicit-function-declaration] if (avcodec_open(ictx, icodec) < 0) { ^ src/plumbing/transcoding.c: In function ‘transcoder_stream_audio’: src/plumbing/transcoding.c:332:28: error: ‘AV_CH_LAYOUT_MONO’ undeclared (first use in this function) octx->channel_layout = AV_CH_LAYOUT_MONO; ^ src/plumbing/transcoding.c:332:28: note: each undeclared identifier is reported only once for each function it appears in src/plumbing/transcoding.c:336:28: error: ‘AV_CH_LAYOUT_STEREO’ undeclared (first use in this function) octx->channel_layout = AV_CH_LAYOUT_STEREO; ^ src/plumbing/transcoding.c:340:28: error: ‘AV_CH_LAYOUT_SURROUND’ undeclared (first use in this function) octx->channel_layout = AV_CH_LAYOUT_SURROUND; ^ src/plumbing/transcoding.c:344:28: error: ‘AV_CH_LAYOUT_QUAD’ undeclared (first use in this function) octx->channel_layout = AV_CH_LAYOUT_QUAD; ^ src/plumbing/transcoding.c:348:28: error: ‘AV_CH_LAYOUT_5POINT0’ undeclared (first use in this function) octx->channel_layout = AV_CH_LAYOUT_5POINT0; ^ src/plumbing/transcoding.c:352:28: error: ‘AV_CH_LAYOUT_5POINT1’ undeclared (first use in this function) octx->channel_layout = AV_CH_LAYOUT_5POINT1; ^ src/plumbing/transcoding.c:356:28: error: ‘AV_CH_LAYOUT_6POINT1’ undeclared (first use in this function) octx->channel_layout = AV_CH_LAYOUT_6POINT1; ^ src/plumbing/transcoding.c:360:28: error: ‘AV_CH_LAYOUT_7POINT1’ undeclared (first use in this function) octx->channel_layout = AV_CH_LAYOUT_7POINT1; ^ src/plumbing/transcoding.c: In function ‘transcoder_init_subtitle’: src/plumbing/transcoding.c:861:3: error: implicit declaration of function ‘avcodec_alloc_context’ [-Werror=implicit-function-declaration] ss->sub_ictx = avcodec_alloc_context(); ^ src/plumbing/transcoding.c:861:16: error: assignment makes pointer from integer without a cast [-Werror] ss->sub_ictx = avcodec_alloc_context(); ^ src/plumbing/transcoding.c:862:16: error: assignment makes pointer from integer without a cast [-Werror] ss->sub_octx = avcodec_alloc_context(); ^ src/plumbing/transcoding.c: In function ‘transcoder_init_audio’: src/plumbing/transcoding.c:953:16: error: assignment makes pointer from integer without a cast [-Werror] as->aud_ictx = avcodec_alloc_context(); ^ src/plumbing/transcoding.c:954:16: error: assignment makes pointer from integer without a cast [-Werror] as->aud_octx = avcodec_alloc_context(); ^ src/plumbing/transcoding.c: In function ‘transcoder_init_video’: src/plumbing/transcoding.c:1063:16: error: assignment makes pointer from integer without a cast [-Werror] vs->vid_ictx = avcodec_alloc_context(); ^ src/plumbing/transcoding.c:1064:16: error: assignment makes pointer from integer without a cast [-Werror] vs->vid_octx = avcodec_alloc_context(); ^ cc1: all warnings being treated as errors
History
Updated by John Törnblom almost 11 years ago
fixed as of https://github.com/tvheadend/tvheadend/commit/f6450c3adc7d0f7d620aebc4db45de7393353c58
tested in both debian wheezy and jessie.