Project

General

Profile

Fail to compile with ffmpeg-4.0. *SOLVED*

Added by Peter Christy over 6 years ago

System: Slackware64-current, ffmpeg-4.0

After upgrading to ffmpeg-4.0, tvheadend failed to start. Recompiling the latest git version (cloned today, 12th June) gives the following error:

-------------------------------------------------------------------------------------------------------------------------------------------------
CC src/transcoding/transcode/video.o
src/transcoding/transcode/context.c: In function 'tvh_context_open_filters':
src/transcoding/transcode/context.c:518:18: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
if (!(iavflt = avfilter_get_by_name(source_name))) {
^
src/transcoding/transcode/context.c:545:18: error: assignment discards 'const' qualifier from pointer target type [-Werror=discarded-qualifiers]
if (!(oavflt = avfilter_get_by_name(sink_name))) {
^
cc1: all warnings being treated as errors
make: *** [Makefile:704: /tmp/SBo/tvheadend-git20180612/build.linux/src/transcoding/transcode/context.o] Error 1
------------------------------------------------------------------------------------------------------------------------------------------------

Any fixes?

TIA,

--
Pete


Replies (2)

RE: Fail to compile with ffmpeg-4.0. - Added by Robert Cameron over 6 years ago

When you build, use make CFLAGS_NO_WERROR=yes. It's a temporary fix, but gets the job done.

RE: Fail to compile with ffmpeg-4.0. - Added by Peter Christy over 6 years ago

YES! That worked, many thanks!

I take it from your comment about a temporary fix that a more elegant solution is in the works?

--
Pete

    (1-2/2)