PDA

View Full Version : Error while trying to create a static version of Qt



Pufo
8th May 2011, 16:42
I'm using Linux Ubuntu.
I have Qt Creator installed, and i'm trying to follow this: http://doc.qt.nokia.com/4.5/deployment-x11.html tutorial to release a static linked version of my application.

The ./configure part went ok.
But not the make


In file included from /usr/include/gtk-2.0/gdk/gdk.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:32,
from ../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:69,
from ../../include/QtGui/private/qgtkstyle_p.h:1,
from kernel/qguiplatformplugin.cpp:63:
/usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30: fatal error: gio/gio.h: No such file or directory
compilation terminated.
make[1]: *** [.obj/release-static/qguiplatformplugin.o] Error 1
make[1]: Leaving directory `/opt/qtsdk-2010.05/qt/src/gui'
make: *** [sub-gui-make_default-ordered] Error 2


This gio.h thing ...

Lykurg
8th May 2011, 17:57
One solution is to not build the gtk style or search the package manager for something like gtk*-dev. (http://developer.gnome.org/gio/stable/)

Pufo
8th May 2011, 22:27
I've used ./configure -no-gtkstyle -no-glib and it worked.