PDA

View Full Version : compilation errors QT 4.6.2



loud91
6th May 2010, 22:56
hi, i downloaded qt-sdk-linux-x86-opensource-2010.02 from the website and i try to compile the code, but during make its fail, throwing this errors



............../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:393: error: ‘Ptr_gtk_file_chooser_get_filename’ does not name a type
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:394: error: ‘Ptr_gtk_file_chooser_get_filenames’ does not name a type
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:395: error: ‘Ptr_gtk_file_chooser_set_current_name’ does not name a type
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:396: error: ‘Ptr_gtk_dialog_run’ does not name a type
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:397: error: ‘Ptr_gtk_file_chooser_set_filename’ does not name a type
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:399: error: ‘Ptr_gdk_pixbuf_get_pixels’ does not name a type
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:402: error: ‘Ptr_gdk_pixmap_new’ does not name a type
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:403: error: ‘Ptr_gdk_pixbuf_new’ does not name a type
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:404: error: ‘Ptr_gdk_pixbuf_get_from_drawable’ does not name a type
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:405: error: ‘Ptr_gdk_draw_rectangle’ does not name a type
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:406: error: ‘Ptr_gdk_pixbuf_unref’ does not name a type
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:407: error: ‘Ptr_gdk_drawable_unref’ does not name a type
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:408: error: ‘Ptr_gdk_drawable_get_depth’ does not name a type
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:410: error: ‘Ptr_gdk_x11_window_set_user_time’ does not name a type
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:411: error: ‘Ptr_gdk_x11_drawable_get_xid’ does not name a type
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:412: error: ‘Ptr_gdk_x11_drawable_get_xdisplay’ does not name a type
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:418: error: ‘Ptr_gnome_icon_lookup_sync’ does not name a type
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:419: error: ‘Ptr_gnome_vfs_init’ does not name a type
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:424: error: ‘GtkWidget’ was not declared in this scope
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:424: error: template argument 2 is invalid
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:436: error: ISO C++ forbids declaration of ‘GtkWidget’ with no type
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:436: error: ‘GtkWidget’ declared as a ‘virtual’ field
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:436: error: expected ‘;’ before ‘*’ token
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:437: error: ‘GtkWidget’ has not been declared
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:438: error: ‘GtkWidget’ has not been declared
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:439: error: ‘GtkWidget’ has not been declared
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:439: error: ‘gpointer’ has not been declared
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:440: error: ‘GtkWidget’ has not been declared
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h: In static member function ‘static bool QGtkStylePrivate::isThemeAvailable()’:
../../include/QtGui/private/../../../src/gui/styles/qgtkstyle_p.h:278: error: ‘gtkStyle’ was not declared in this scope
gmake[1]: *** [.obj/release-shared/qguiplatformplugin.o] Error 1
gmake[1]: Leaving directory `/opt/qtsdk-2010.02/qt/src/gui'
gmake: *** [sub-gui-make_default-ordered] Error 2


Im running Sles 10 Sp1

i try to find it on google but .....=(

plz help

squidge
6th May 2010, 23:11
How did you compile it? Configuration options? Compiler options? Which make?

loud91
7th May 2010, 13:33
./configure ...... most of the times
./configure -no-gtkstyle ....once

with both >>make and gmake (without options) with the same results

:o:o:o