Error compiling with meson + ninja

Stuart Axon stuaxo2 at yahoo.com
Tue Dec 13 19:17:37 UTC 2016


Hi All   I thought I'd give gst-build a go on raspbian.    

It complained in gstdashdemux -

 $ ninja -C build/ninja: Entering directory `build/'
[2/1597] Compiling c object 'subprojects/gst-plugins-bad/ext/dash/gstdashdemux at sha/gstmpdparser.c.o'
FAILED: subprojects/gst-plugins-bad/ext/dash/gstdashdemux at sha/gstmpdparser.c.o 
ccache cc  '-Isubprojects/gst-plugins-bad/ext/dash/gstdashdemux at sha' '-fdiagnostics-color=always' '-Isubprojects/gst-plugins-bad/ext/dash' '-I../subprojects/gst-plugins-bad/ext/dash' '-Isubprojects/gst-plugins-bad/.' '-I../subprojects/gst-plugins-bad/.' '-Isubprojects/gst-plugins-bad/gst-libs' '-I../subprojects/gst-plugins-bad/gst-libs' '-Isubprojects/gstreamer/libs' '-I../subprojects/gstreamer/libs' '-Isubprojects/gstreamer/.' '-I../subprojects/gstreamer/.' '-I/home/pi/gst-build/build/subprojects/gstreamer/gst/..' '-Isubprojects/gst-plugins-base/gst-libs' '-I../subprojects/gst-plugins-base/gst-libs' '-pipe' '-Wall' '-Winvalid-pch' '-DHAVE_CONFIG_H' '-DGST_USE_UNSTABLE_API' '-O0' '-g' '-fPIC' '-I/usr/include/glib-2.0' '-I/usr/lib/arm-linux-gnueabihf/glib-2.0/include' '-pthread' '-I/usr/include/libxml2' '-Isubprojects/gstreamer/libs/gst/base' '-Isubprojects/gstreamer/gst' '-Isubprojects/gst-plugins-base/gst-libs/gst/tag' '-MMD' '-MQ' 'subprojects/gst-plugins-bad/ext/dash/gstdashdemux at sha/gstmpdparser.c.o' '-MF' 'subprojects/gst-plugins-bad/ext/dash/gstdashdemux at sha/gstmpdparser.c.o.d' -o 'subprojects/gst-plugins-bad/ext/dash/gstdashdemux at sha/gstmpdparser.c.o' -c ../subprojects/gst-plugins-bad/ext/dash/gstmpdparser.c
../subprojects/gst-plugins-bad/ext/dash/gstmpdparser.c: In function ‘gst_mpdparser_parse_utctiming_node’:
../subprojects/gst-plugins-bad/ext/dash/gstmpdparser.c:2241:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
     for (int i = 0; gst_mpdparser_utc_timing_methods[i].name; ++i) {
     ^
../subprojects/gst-plugins-bad/ext/dash/gstmpdparser.c:2241:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
../subprojects/gst-plugins-bad/ext/dash/gstmpdparser.c: In function ‘gst_mpd_client_setup_representation’:
../subprojects/gst-plugins-bad/ext/dash/gstmpdparser.c:4110:7: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
       for (guint n = 0; n < stream->segments->len; ++n) {
       ^
[3/1597] Compiling c object 'subprojects/gst-plugins-bad/ext/dash/gstdashdemux at sha/gstdashdemux.c.o'
FAILED: subprojects/gst-plugins-bad/ext/dash/gstdashdemux at sha/gstdashdemux.c.o 
ccache cc  '-Isubprojects/gst-plugins-bad/ext/dash/gstdashdemux at sha' '-fdiagnostics-color=always' '-Isubprojects/gst-plugins-bad/ext/dash' '-I../subprojects/gst-plugins-bad/ext/dash' '-Isubprojects/gst-plugins-bad/.' '-I../subprojects/gst-plugins-bad/.' '-Isubprojects/gst-plugins-bad/gst-libs' '-I../subprojects/gst-plugins-bad/gst-libs' '-Isubprojects/gstreamer/libs' '-I../subprojects/gstreamer/libs' '-Isubprojects/gstreamer/.' '-I../subprojects/gstreamer/.' '-I/home/pi/gst-build/build/subprojects/gstreamer/gst/..' '-Isubprojects/gst-plugins-base/gst-libs' '-I../subprojects/gst-plugins-base/gst-libs' '-pipe' '-Wall' '-Winvalid-pch' '-DHAVE_CONFIG_H' '-DGST_USE_UNSTABLE_API' '-O0' '-g' '-fPIC' '-I/usr/include/glib-2.0' '-I/usr/lib/arm-linux-gnueabihf/glib-2.0/include' '-pthread' '-I/usr/include/libxml2' '-Isubprojects/gstreamer/libs/gst/base' '-Isubprojects/gstreamer/gst' '-Isubprojects/gst-plugins-base/gst-libs/gst/tag' '-MMD' '-MQ' 'subprojects/gst-plugins-bad/ext/dash/gstdashdemux at sha/gstdashdemux.c.o' '-MF' 'subprojects/gst-plugins-bad/ext/dash/gstdashdemux at sha/gstdashdemux.c.o.d' -o 'subprojects/gst-plugins-bad/ext/dash/gstdashdemux at sha/gstdashdemux.c.o' -c ../subprojects/gst-plugins-bad/ext/dash/gstdashdemux.c
../subprojects/gst-plugins-bad/ext/dash/gstdashdemux.c: In function ‘gst_dash_demux_parse_http_head’:
../subprojects/gst-plugins-bad/ext/dash/gstdashdemux.c:2856:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
     for (int i = 1; months[i]; ++i) {
     ^
../subprojects/gst-plugins-bad/ext/dash/gstdashdemux.c:2856:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
../subprojects/gst-plugins-bad/ext/dash/gstdashdemux.c:2862:14: error: redefinition of ‘i’
     for (int i = 0; timezones[i].name && !parsed_tz; ++i) {
              ^
../subprojects/gst-plugins-bad/ext/dash/gstdashdemux.c:2856:14: note: previous definition of ‘i’ was here
     for (int i = 1; months[i]; ++i) {
              ^
../subprojects/gst-plugins-bad/ext/dash/gstdashdemux.c:2862:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
     for (int i = 0; timezones[i].name && !parsed_tz; ++i) {
     ^
[7/1597] Compiling c object 'subprojects/gst-plugins-bad/gst-libs/gst/codecparsers/gstcodecparsers-1.0 at sha/gsth265parser.c.o'
ninja: build stopped: subcommand failed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161213/037c1818/attachment.html>


More information about the gstreamer-devel mailing list