Project

General

Profile

Compilation error with ffmpeg > 3.4

Added by Peter Christy almost 7 years ago

System: Slackware64-current, Intel graphics.

I've just updated libva, libva-utils and the intel-vaapi-driver all to version 2. As a result, I've had to rebuild ffmpeg, which now means I have to rebuild TVheadend. However, the build fails with the following error:

CC src/libav.o
CC src/muxer/muxer_libav.o
src/muxer/muxer_libav.c: In function 'lav_muxer_add_stream':
src/muxer/muxer_libav.c:177:17: error: 'CODEC_FLAG_GLOBAL_HEADER' undeclared (first use in this function); did you mean 'AV_CODEC_FLAG_GLOBAL_HEADER'?
c->flags |= CODEC_FLAG_GLOBAL_HEADER;
^~~~~~~~~~~~~~~~~~~~~~
AV_CODEC_FLAG_GLOBAL_HEADER
src/muxer/muxer_libav.c:177:17: note: each undeclared identifier is reported only once for each function it appears in
make: * [Makefile:701: /tmp/SBo/tvheadend-git20171126/build.linux/src/muxer/muxer_libav.o] Error 1
make: *
Waiting for unfinished jobs....

I've tried substituting AV_CODEC for CODEC, but that just introduces yet another error!

I'm using my system ffmpeg because when I started using TVheadend, the build failed with the TVheadend version of ffmpeg: [https://tvheadend.org/boards/5/topics/27711]

This happens with 4.2.1, 4.3 and a git clone.

Any clues, anyone?

TIA,

--
Pete


Replies (1)

RE: Compilation error - Added by Peter Christy almost 7 years ago

OK, found the problem! It appears my version of ffmpeg was too new! Going back to plain old 3.4 allowed me to compile successfully with TVheadend's own internal ffmpeg, and all is now running as it should.

--
Pete

    (1-1/1)