GLib errors while building Qt 4.8 on Ubuntu 12.04
-
Hi, I'm trying to build Qt from source (git branch 4.8 from gitorious) on Ubuntu 12.04 with the following options-
@./configure -debug -fast -system-libpng -system-libjpeg -system-zlib -dbus -plugin-sql-mysql -no-pch -webkit -sm -nomake examples -nomake demos -prefix
pwd
@the build goes on for some time and I get this as an error-
bq. make[2]: Entering directory
/home/shaan/kde/src/qt/src/3rdparty/webkit/Source/JavaScriptCore' g++ -c -pipe -Wall -Wextra -Wreturn-type -fno-strict-aliasing -Wcast-align -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self -Werror -Wno-c++0x-compat -fno-stack-protector -Wno-c++0x-compat -pthread -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -D_REENTRANT -DNDEBUG -DBUILDING_QT__=1 -DQT_ASCII_CAST_WARNINGS -DBUILDING_JavaScriptCore -DBUILDING_WTF -DENABLE_GLIB_SUPPORT=1 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -DQT_SHARED -I../../../../../mkspecs/linux-g++ -I. -I../../../../../include/QtCore -I../../../../../include -I. -I../../Source -I../ThirdParty -Iassembler -Ibytecode -Ibytecompiler -Iheap -Idfg -Idebugger -Iinterpreter -Ijit -Iparser -Iprofiler -Iruntime -Iwtf -Iwtf/gobject -I/home/shaan/kde/src/qt/src/3rdparty/webkit/Source/JavaScriptCore/wtf/symbian -Iwtf/unicode -Iyarr -IAPI -IForwardingHeaders -Igenerated -I../../Source -I../../include -I/include/QtWebKit -I/include -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -I.moc/debug-static -o .obj/debug-static/GOwnPtr.o wtf/gobject/GOwnPtr.cpp In file included from /usr/include/glib-2.0/glib/gasyncqueue.h:34:0, from /usr/include/glib-2.0/glib.h:34, from /usr/include/glib-2.0/gobject/gbinding.h:30, from /usr/include/glib-2.0/glib-object.h:25, from /usr/include/glib-2.0/gio/gioenums.h:30, from /usr/include/glib-2.0/gio/giotypes.h:30, from /usr/include/glib-2.0/gio/gio.h:28, from wtf/gobject/GOwnPtr.cpp:24: /usr/include/glib-2.0/glib/gthread.h:51:16: error: 'union' tag used in naming 'struct _GMutex' [-fpermissive] /usr/include/glib-2.0/glib/gthread.h:58:7: error: 'union' tag used in naming 'struct _GMutex' [-fpermissive] make[2]: *** [.obj/debug-static/GOwnPtr.o] Error 1 make[2]: Leaving directory
/home/shaan/kde/src/qt/src/3rdparty/webkit/Source/JavaScriptCore'
make[1]: *** [sub-JavaScriptCore-JavaScriptCore-pro-make_default-ordered] Error 2
make[1]: Leaving directory/home/shaan/kde/src/qt/src/3rdparty/webkit/Source' make: *** [sub-webkit-make_default-ordered] Error 2 makeobj[0]: Leaving directory
/home/shaan/kde/src/qt'I tried to google, but in vain. Any idea whats wrong?
-
I needed this patch applied to build with glib 2.32.1: https://codereview.qt-project.org/25069
-
Cool! That worked with a charm