[Solved] Building Qt 4.8.2 on Ubuntu
I am trying to build Qt 4.8.2 from source on latest Ubuntu i386. I have run following commands:
./configure -nomake tests -nomake demos -nomake examples -no-exceptions -nomake webkit -opensource
But I keep getting following error:
In file included from /usr/include/glib-2.0/glib/gasyncqueue.h:34:0,
/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: *** [.obj/release-static/GOwnPtr.o] Error 1
make: Leaving directory
make: *** [sub-webkit-make_default-ordered] Error 2
Anybody can please help with this? Thanks in advance!
It seems the webkit code still refers to _GMutex as a union while, in glib-2.0, it is a struct.
Try -no-webkit instead of -nomake webkit.
Thanks, -no-webkit did the trick.
Link to qtforum was helpfull as well. Thanks again!
https://codereview.qt-project.org/#change,25069 fixes the build for me.
Unfortunately it is not really possible to apply this to Qt since it will break other systems.
Tobias, can you explain what do you mean with "it will break other systems"
Will there be another solution to fix that problem?