GNOME Bugzilla – Bug 795787
Build failure with ffmpeg 4
Last modified: 2018-05-04 07:01:23 UTC
Building gst-libav 1.14 with ffmpeg 4.0 fails: FAILED: ext/libav/ext@libav@@@gstlibav@sha/gstav.c.o ccache cc -Iext/libav/ext@libav@@@gstlibav@sha -Iext/libav/ -I../ext/libav -I. -I../ -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orc-0.4 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -fvisibility=hidden -fno-strict-aliasing -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wredundant-decls -Wundef -Wwrite-strings -Wformat -Wformat-nonliteral -Wformat-security -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Waggregate-return -Wdeclaration-after-statement -Wvla -Wpointer-arith -fPIC -pthread -DHAVE_CONFIG_H -Wno-deprecated-declarations -MD -MQ 'ext/libav/ext@libav@@@gstlibav@sha/gstav.c.o' -MF 'ext/libav/ext@libav@@@gstlibav@sha/gstav.c.o.d' -o 'ext/libav/ext@libav@@@gstlibav@sha/gstav.c.o' -c ../ext/libav/gstav.c ../ext/libav/gstav.c:33:10: fatal error: libavfilter/avfiltergraph.h: Nincs ilyen fájl vagy könyvtár #include <libavfilter/avfiltergraph.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. After replacing #include <libavfilter/avfiltergraph.h> with #include <libavfilter/avfilter.h> : FAILED: ext/libav/ext@libav@@@gstlibav@sha/gstavcodecmap.c.o ccache cc -Iext/libav/ext@libav@@@gstlibav@sha -Iext/libav/ -I../ext/libav -I. -I../ -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orc-0.4 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -fvisibility=hidden -fno-strict-aliasing -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wredundant-decls -Wundef -Wwrite-strings -Wformat -Wformat-nonliteral -Wformat-security -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Waggregate-return -Wdeclaration-after-statement -Wvla -Wpointer-arith -fPIC -pthread -DHAVE_CONFIG_H -Wno-deprecated-declarations -MD -MQ 'ext/libav/ext@libav@@@gstlibav@sha/gstavcodecmap.c.o' -MF 'ext/libav/ext@libav@@@gstlibav@sha/gstavcodecmap.c.o.d' -o 'ext/libav/ext@libav@@@gstlibav@sha/gstavcodecmap.c.o' -c ../ext/libav/gstavcodecmap.c ../ext/libav/gstavcodecmap.c: In function ‘gst_ffmpeg_codecid_to_caps’: ../ext/libav/gstavcodecmap.c:828:57: error: ‘CODEC_FLAG_4MV’ undeclared (first use in this function); did you mean ‘AV_CODEC_FLAG_4MV’? "annex-f", G_TYPE_BOOLEAN, context->flags & CODEC_FLAG_4MV, ^~~~~~~~~~~~~~ AV_CODEC_FLAG_4MV ../ext/libav/gstavcodecmap.c:828:57: note: each undeclared identifier is reported only once for each function it appears in ../ext/libav/gstavcodecmap.c:829:57: error: ‘CODEC_FLAG_LOOP_FILTER’ undeclared (first use in this function); did you mean ‘AV_CODEC_FLAG_LOOP_FILTER’? "annex-j", G_TYPE_BOOLEAN, context->flags & CODEC_FLAG_LOOP_FILTER, ^~~~~~~~~~~~~~~~~~~~~~ AV_CODEC_FLAG_LOOP_FILTER ../ext/libav/gstavcodecmap.c:830:57: error: ‘CODEC_FLAG_AC_PRED’ undeclared (first use in this function); did you mean ‘AV_CODEC_FLAG_AC_PRED’? "annex-i", G_TYPE_BOOLEAN, context->flags & CODEC_FLAG_AC_PRED, ^~~~~~~~~~~~~~~~~~ AV_CODEC_FLAG_AC_PRED In file included from /usr/include/gstreamer-1.0/gst/gst.h:90:0, from ../ext/libav/gstavcodecmap.c:28: ../ext/libav/gstavcodecmap.c: In function ‘gst_ffmpeg_caps_with_codecid’: ../ext/libav/gstavcodecmap.c:3195:15: error: ‘FF_INPUT_BUFFER_PADDING_SIZE’ undeclared (first use in this function); did you mean ‘AV_INPUT_BUFFER_PADDING_SIZE’? FF_INPUT_BUFFER_PADDING_SIZE)); ^ /usr/include/gstreamer-1.0/gst/gstutils.h:878:33: note: in definition of macro ‘GST_ROUND_UP_16’ #define GST_ROUND_UP_16(num) (((num)+15)&~15) ^~~ ../ext/libav/gstavcodecmap.c:3219:25: error: ‘CODEC_FLAG_4MV’ undeclared (first use in this function); did you mean ‘AV_CODEC_FLAG_4MV’? context->flags |= CODEC_FLAG_4MV; ^~~~~~~~~~~~~~ AV_CODEC_FLAG_4MV ../ext/libav/gstavcodecmap.c:3231:31: error: ‘CODEC_FLAG_GMC’ undeclared (first use in this function); did you mean ‘CODEC_FLAG_4MV’? context->flags |= CODEC_FLAG_GMC | CODEC_FLAG_QPEL; ^~~~~~~~~~~~~~ CODEC_FLAG_4MV ../ext/libav/gstavcodecmap.c:3231:48: error: ‘CODEC_FLAG_QPEL’ undeclared (first use in this function); did you mean ‘AV_CODEC_FLAG_QPEL’? context->flags |= CODEC_FLAG_GMC | CODEC_FLAG_QPEL; ^~~~~~~~~~~~~~~ AV_CODEC_FLAG_QPEL ../ext/libav/gstavcodecmap.c:3342:27: error: ‘CODEC_FLAG_AC_PRED’ undeclared (first use in this function); did you mean ‘AV_CODEC_FLAG_AC_PRED’? context->flags |= CODEC_FLAG_AC_PRED; ^~~~~~~~~~~~~~~~~~ AV_CODEC_FLAG_AC_PRED ../ext/libav/gstavcodecmap.c:3346:27: error: ‘CODEC_FLAG_LOOP_FILTER’ undeclared (first use in this function); did you mean ‘AV_CODEC_FLAG_LOOP_FILTER’? context->flags |= CODEC_FLAG_LOOP_FILTER; ^~~~~~~~~~~~~~~~~~~~~~ AV_CODEC_FLAG_LOOP_FILTER [5/13] Compiling C object 'ext/libav/ext@libav@@@gstlibav@sha/gstavaudenc.c.o'. FAILED: ext/libav/ext@libav@@@gstlibav@sha/gstavaudenc.c.o ccache cc -Iext/libav/ext@libav@@@gstlibav@sha -Iext/libav/ -I../ext/libav -I. -I../ -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/orc-0.4 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -fvisibility=hidden -fno-strict-aliasing -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wredundant-decls -Wundef -Wwrite-strings -Wformat -Wformat-nonliteral -Wformat-security -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Waggregate-return -Wdeclaration-after-statement -Wvla -Wpointer-arith -fPIC -pthread -DHAVE_CONFIG_H -Wno-deprecated-declarations -MD -MQ 'ext/libav/ext@libav@@@gstlibav@sha/gstavaudenc.c.o' -MF 'ext/libav/ext@libav@@@gstlibav@sha/gstavaudenc.c.o.d' -o 'ext/libav/ext@libav@@@gstlibav@sha/gstavaudenc.c.o' -c ../ext/libav/gstavaudenc.c ../ext/libav/gstavaudenc.c: In function ‘gst_ffmpegaudenc_set_format’: ../ext/libav/gstavaudenc.c:286:26: error: ‘AVCodecContext {aka struct AVCodecContext}’ has no member named ‘rc_strategy’; did you mean ‘b_frame_strategy’? ffmpegaudenc->context->rc_strategy = 2; ^~~~~~~~~~~ b_frame_strategy ../ext/libav/gstavaudenc.c:333:44: error: ‘CODEC_CAP_EXPERIMENTAL’ undeclared (first use in this function); did you mean ‘AV_CODEC_CAP_EXPERIMENTAL’? if ((oclass->in_plugin->capabilities & CODEC_CAP_EXPERIMENTAL) && ^~~~~~~~~~~~~~~~~~~~~~ AV_CODEC_CAP_EXPERIMENTAL ../ext/libav/gstavaudenc.c:333:44: note: each undeclared identifier is reported only once for each function it appears in ../ext/libav/gstavaudenc.c: In function ‘gst_ffmpegaudenc_encode_audio’: ../ext/libav/gstavaudenc.c:605:32: error: ‘CODEC_CAP_VARIABLE_FRAME_SIZE’ undeclared (first use in this function); did you mean ‘AV_CODEC_CAP_VARIABLE_FRAME_SIZE’? if ((codec->capabilities & CODEC_CAP_VARIABLE_FRAME_SIZE) || !buffer) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ AV_CODEC_CAP_VARIABLE_FRAME_SIZE ../ext/libav/gstavaudenc.c: In function ‘gst_ffmpegaudenc_drain’: ../ext/libav/gstavaudenc.c:629:41: error: ‘CODEC_CAP_DELAY’ undeclared (first use in this function); did you mean ‘AV_CODEC_CAP_DELAY’? if (oclass->in_plugin->capabilities & CODEC_CAP_DELAY) { ^~~~~~~~~~~~~~~ AV_CODEC_CAP_DELAY ninja: build stopped: subcommand failed.
Thanks for taking the time to report this. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 792900 ***