Skip to content

Fix build with more recent versions of MinGW

➜  _builddir git:(cerbero_build) ✗ ninja
[2/202] Compiling C object 'ext/gl/35d3624@@gstopengl@sha/gstgloverlay.c.obj'.
FAILED: ext/gl/35d3624@@gstopengl@sha/gstgloverlay.c.obj 
x86_64-w64-mingw32-gcc -Iext/gl/35d3624@@gstopengl@sha -Iext/gl -I../ext/gl -I. -I../ -Igst-libs -I../gst-libs -Igst-libs/gst/gl -Igst-libs/gst/video -I/home/andoni/git/cerbero/build/dist/windows_x86_64/include/gstreamer-1.0 -I/home/andoni/git/cerbero/build/dist/windows_x86_64/include/glib-2.0 -I/home/andoni/git/cerbero/build/dist/windows_x86_64/lib/glib-2.0/include -I/home/andoni/git/cerbero/build/dist/windows_x86_64/include/orc-0.4 -I/home/andoni/git/cerbero/build/dist/windows_x86_64/include/graphene-1.0 -I/home/andoni/git/cerbero/build/dist/windows_x86_64/lib/graphene-1.0/include -I/home/andoni/git/cerbero/build/dist/windows_x86_64/include/libpng16 -fdiagnostics-color=always -pipe -Wall -Winvalid-pch -O2 -g -fvisibility=hidden -fno-strict-aliasing -DG_DISABLE_DEPRECATED -Wmissing-declarations -Wredundant-decls -Wundef -Wwrite-strings -Wformat -Wformat-nonliteral -Wformat-security -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Wvla -Wpointer-arith -Wmissing-prototypes -Wdeclaration-after-statement -mfpmath=sse -msse -msse2 -pthread -DHAVE_CONFIG_H -Wall -g -O2 -m64 -DWINVER=0x0600 -D_WIN32_WINNT=0x0600 -DGSTREAMER_GLIB_COCOA_NSAPPLICATION=1 -MD -MQ 'ext/gl/35d3624@@gstopengl@sha/gstgloverlay.c.obj' -MF 'ext/gl/35d3624@@gstopengl@sha/gstgloverlay.c.obj.d' -o 'ext/gl/35d3624@@gstopengl@sha/gstgloverlay.c.obj' -c ../ext/gl/gstgloverlay.c
In file included from /home/andoni/git/cerbero/build/dist/windows_x86_64/include/jpeglib.h:31,
                 from ../ext/gl/gstgloverlay.c:51:
/home/andoni/git/cerbero/build/dist/windows_x86_64/include/jmorecfg.h:242:13: error: conflicting types for 'boolean'
 typedef int boolean;
             ^~~~~~~
In file included from /home/andoni/mingw/linux/w64/x86_64-w64-mingw32/sysroot/mingw/include/wtypes.h:8,
                 from /home/andoni/mingw/linux/w64/x86_64-w64-mingw32/sysroot/mingw/include/winscard.h:10,
                 from /home/andoni/mingw/linux/w64/x86_64-w64-mingw32/sysroot/mingw/include/windows.h:97,
                 from /home/andoni/git/cerbero/build/dist/windows_x86_64/include/GL/gl.h:13,
                 from ../gst-libs/gst/gl/gstglfuncs.h:68,
                 from ../ext/gl/gstgloverlay.h:25,
                 from ../ext/gl/gstgloverlay.c:42:
/home/andoni/mingw/linux/w64/x86_64-w64-mingw32/sysroot/mingw/include/rpcndr.h:65:25: note: previous declaration of 'boolean' was here
   typedef unsigned char boolean;
                         ^~~~~~~
[4/202] Compiling C object 'ext/ogg/7247bfe@@gstogg@sha/gstoggdemux.c.obj'.
ninja: build stopped: subcommand failed.
Edited by Andoni Morales Alastruey

Merge request reports

Loading