Hi, I want to release an app I made with QT in ubuntu to run on any computer, preferably windows, the app doesn't depend on any system-specific libraries though. I can build and run in Qt and release mode gives
Qt Code:
  1. (<unknown>:5280): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_pixels: assertion `pixbuf != NULL' failed
  2.  
  3. (<unknown>:5280): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_rowstride: assertion `pixbuf != NULL' failed
  4.  
  5. (<unknown>:5280): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_width: assertion `pixbuf != NULL' failed
  6.  
  7. (<unknown>:5280): GdkPixbuf-CRITICAL **: gdk_pixbuf_get_height: assertion `pixbuf != NULL' failed
To copy to clipboard, switch view to plain text mode 
theme specific info i suppose.

Its my understanding that to release so that the executable can run without having qt installed the qt libraries must be either compiled into the app or linked to it. I'm looking for the easiest, fastest solution, its a small app so file size shouldn't matter. Hence static linking is my 1st choice, so I'm following this doc.

http://www.qtcentre.org/wiki/index.p...x#For_Qt_4.3.x

This is the ending result of the command "make"

Qt Code:
  1. <more stuff up here going out of terminal scope>
  2. ../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:439: error: ‘GtkWidget’ has not been declared
  3. ../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:439: error: ‘gpointer’ has not been declared
  4. ../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:440: error: ‘GtkWidget’ has not been declared
  5. ../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h: In static member function ‘static bool QGtkStylePrivate::isThemeAvailable()’:
  6. ../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:278: error: ‘gtkStyle’ was not declared in this scope
  7. make[1]: *** [.obj/release-static/qguiplatformplugin.o] Error 1
  8. make[1]: Leaving directory `/home/keats/qtsdk-2010.04/qt/src/gui'
  9. make: *** [sub-gui-make_default-ordered] Error 2
To copy to clipboard, switch view to plain text mode 

What gives here? I'm not very familiar with make but could the gtk theme used by the system be a problem?

Just came across this doc http://www.qtcentre.org/wiki/index.p...c_applications

add CONFIG += static to .pro file

So if I add that to the project file and build and run in release mode i'll have an executable that can be copied to any machine and run?

I've been reading and trying stuff for a few days now, even had to reinstall qt so i'll appreciate whatever help is offered.

PS. contrary to sig the development machine i'm using has Ubuntu with QT creator installed.