PDA

View Full Version : Gtk error when installing Qt in linux



john_god
16th November 2009, 07:59
Hi.
I really like Qt but I think Qt instalations don't like me very much :).
I installed qt-sdk-linux-x86_64-opensource-2009.04.1.bin, run configure,
run gmake and gmake install, and had lot's of errors with the last one, related to Gtk.
I think with gmake there some errors to. The first instalation I did was in tty1,
then I try it in a command line in Kde, and in Gnome.
I have a linux Mandriva based distro.




styles/qgtkstyle.cpp:2828: error: ‘GtkWidget’ was not declared in this scope
styles/qgtkstyle.cpp:2828: error: ‘gtkProgressBar’ was not declared in this scope
styles/qgtkstyle.cpp:2828: error: ‘gtkWidget’ is not a member of ‘QGtk’
styles/qgtkstyle.cpp:2830: error: ‘state’ was not declared in this scope
styles/qgtkstyle.cpp:2830: error: ‘GTK_SHADOW_IN’ was not declared in this scope
styles/qgtkstyle.cpp:2877: error: ‘GtkObject’ was not declared in this scope
styles/qgtkstyle.cpp:2877: error: ‘adjustment’ was not declared in this scope
styles/qgtkstyle.cpp:2877: error: ‘gtk_adjustment_new’ is not a member of ‘QGtk’
styles/qgtkstyle.cpp:2878: error: ‘gtk_progress_set_adjustment’ is not a member of ‘QGtk’
styles/qgtkstyle.cpp:2878: error: ‘GtkProgress’ was not declared in this scope
styles/qgtkstyle.cpp:2878: error: expected primary-expression before ‘)’ token
styles/qgtkstyle.cpp:2878: error: ‘GtkAdjustment’ was not declared in this scope
styles/qgtkstyle.cpp:2878: error: expected primary-expression before ‘)’ token
styles/qgtkstyle.cpp:2902: error: ‘GTK_STATE_SELECTED’ was not declared in this scope
styles/qgtkstyle.cpp:2902: error: ‘GTK_SHADOW_OUT’ was not declared in this scope
styles/qgtkstyle.cpp: In member function ‘virtual QRect QGtkStyle::subControlRect(QStyle::ComplexControl, const QStyleOptionComplex*, QStyle::SubControl, const QWidget*) const’:
styles/qgtkstyle.cpp:2985: error: ‘GtkWidget’ was not declared in this scope
styles/qgtkstyle.cpp:2985: error: ‘gtkSpinButton’ was not declared in this scope
styles/qgtkstyle.cpp:2985: error: ‘gtkWidget’ is not a member of ‘QGtk’
styles/qgtkstyle.cpp:3039: error: ‘GtkWidget’ was not declared in this scope
styles/qgtkstyle.cpp:3039: error: ‘gtkCombo’ was not declared in this scope
styles/qgtkstyle.cpp:3039: error: ‘gtkWidget’ is not a member of ‘QGtk’
styles/qgtkstyle.cpp:3040: error: ‘gtk_widget_set_direction’ is not a member of ‘QGtk’
styles/qgtkstyle.cpp:3040: error: ‘GTK_TEXT_DIR_RTL’ was not declared in this scope
styles/qgtkstyle.cpp:3040: error: ‘GTK_TEXT_DIR_LTR’ was not declared in this scope
styles/qgtkstyle.cpp:3041: error: ‘GtkAllocation’ was not declared in this scope
styles/qgtkstyle.cpp:3041: error: expected `;' before ‘geometry’
styles/qgtkstyle.cpp:3042: error: ‘gtk_widget_size_allocate’ is not a member of ‘QGtk’
styles/qgtkstyle.cpp:3042: error: ‘geometry’ was not declared in this scope
styles/qgtkstyle.cpp:3049: error: ‘arrowWidget’ was not declared in this scope
styles/qgtkstyle.cpp:3049: error: ‘gtkWidget’ is not a member of ‘QGtk’
styles/qgtkstyle.cpp: In member function ‘virtual QSize QGtkStyle::sizeFromContents(QStyle::ContentsType, const QStyleOption*, const QSize&, const QWidget*) const’:
styles/qgtkstyle.cpp:3106: error: ‘GtkWidget’ was not declared in this scope
styles/qgtkstyle.cpp:3106: error: ‘gtkButton’ was not declared in this scope
styles/qgtkstyle.cpp:3106: error: ‘gtkWidget’ is not a member of ‘QGtk’
styles/qgtkstyle.cpp:3125: error: ‘GtkWidget’ was not declared in this scope
styles/qgtkstyle.cpp:3125: error: ‘gtkMenuSeparator’ was not declared in this scope
styles/qgtkstyle.cpp:3125: error: ‘gtkWidget’ is not a member of ‘QGtk’
styles/qgtkstyle.cpp:3126: error: ‘gboolean’ was not declared in this scope
styles/qgtkstyle.cpp:3126: error: expected `;' before ‘wide_separators’
styles/qgtkstyle.cpp:3127: error: ‘gint’ was not declared in this scope
styles/qgtkstyle.cpp:3127: error: expected `;' before ‘separator_height’
styles/qgtkstyle.cpp:3128: error: ‘gtk_widget_style_get’ is not a member of ‘QGtk’
styles/qgtkstyle.cpp:3129: error: ‘wide_separators’ was not declared in this scope
styles/qgtkstyle.cpp:3130: error: ‘separator_height’ was not declared in this scope
styles/qgtkstyle.cpp:3137: error: ‘GtkWidget’ was not declared in this scope
styles/qgtkstyle.cpp:3137: error: ‘gtkMenuItem’ was not declared in this scope
styles/qgtkstyle.cpp:3137: error: ‘gtkWidget’ is not a member of ‘QGtk’
styles/qgtkstyle.cpp:3138: error: ‘GtkStyle’ was not declared in this scope
styles/qgtkstyle.cpp:3138: error: ‘style’ was not declared in this scope
styles/qgtkstyle.cpp:3143: error: ‘gint’ was not declared in this scope
styles/qgtkstyle.cpp:3143: error: expected `;' before ‘checkSize’
styles/qgtkstyle.cpp:3144: error: ‘gtk_widget_style_get’ is not a member of ‘QGtk’
styles/qgtkstyle.cpp:3144: error: ‘gtkWidget’ is not a member of ‘QGtk’
styles/qgtkstyle.cpp:3144: error: ‘checkSize’ was not declared in this scope
styles/qgtkstyle.cpp:3159: error: ‘gtkWidget’ is not a member of ‘QGtk’
styles/qgtkstyle.cpp:3164: error: ‘GtkWidget’ was not declared in this scope
styles/qgtkstyle.cpp:3164: error: ‘gtkButton’ was not declared in this scope
styles/qgtkstyle.cpp:3164: error: ‘gtkWidget’ is not a member of ‘QGtk’
styles/qgtkstyle.cpp:3165: error: ‘gint’ was not declared in this scope
styles/qgtkstyle.cpp:3165: error: expected `;' before ‘focusPadding’
styles/qgtkstyle.cpp:3166: error: ‘gtk_widget_style_get’ is not a member of ‘QGtk’
styles/qgtkstyle.cpp:3166: error: ‘focusPadding’ was not declared in this scope
styles/qgtkstyle.cpp:3167: error: ‘gtk_widget_style_get’ is not a member of ‘QGtk’
styles/qgtkstyle.cpp:3167: error: ‘focusWidth’ was not declared in this scope
styles/qgtkstyle.cpp:3172: error: ‘gtkButtonBox’ was not declared in this scope
styles/qgtkstyle.cpp:3172: error: ‘gtkWidget’ is not a member of ‘QGtk’
styles/qgtkstyle.cpp:3173: error: expected `;' before ‘minWidth’
styles/qgtkstyle.cpp:3174: error: ‘gtk_widget_style_get’ is not a member of ‘QGtk’
styles/qgtkstyle.cpp:3174: error: ‘minWidth’ was not declared in this scope
styles/qgtkstyle.cpp:3175: error: ‘minHeight’ was not declared in this scope
styles/qgtkstyle.cpp:3185: error: ‘GtkWidget’ was not declared in this scope
styles/qgtkstyle.cpp:3185: error: ‘gtkSlider’ was not declared in this scope
styles/qgtkstyle.cpp:3185: error: ‘gtkWidget’ is not a member of ‘QGtk’
styles/qgtkstyle.cpp:3195: error: ‘GtkWidget’ was not declared in this scope
styles/qgtkstyle.cpp:3195: error: ‘gtkEntry’ was not declared in this scope
styles/qgtkstyle.cpp:3195: error: ‘gtkWidget’ is not a member of ‘QGtk’
styles/qgtkstyle.cpp:3206: error: ‘GtkWidget’ was not declared in this scope
styles/qgtkstyle.cpp:3206: error: ‘gtkCombo’ was not declared in this scope
styles/qgtkstyle.cpp:3206: error: ‘gtkWidget’ is not a member of ‘QGtk’
styles/qgtkstyle.cpp: In member function ‘virtual QPixmap QGtkStyle::standardPixmap(QStyle::StandardPixmap, const QStyleOption*, const QWidget*) const’:
styles/qgtkstyle.cpp:3267: error: ‘GTK_STOCK_DELETE’ was not declared in this scope
styles/qgtkstyle.cpp:3271: error: ‘GTK_STOCK_OK’ was not declared in this scope
styles/qgtkstyle.cpp:3275: error: ‘GTK_STOCK_CANCEL’ was not declared in this scope
styles/qgtkstyle.cpp:3279: error: ‘GTK_STOCK_YES’ was not declared in this scope
styles/qgtkstyle.cpp:3283: error: ‘GTK_STOCK_NO’ was not declared in this scope
styles/qgtkstyle.cpp:3287: error: ‘GTK_STOCK_OPEN’ was not declared in this scope
styles/qgtkstyle.cpp:3291: error: ‘GTK_STOCK_CLOSE’ was not declared in this scope
styles/qgtkstyle.cpp:3295: error: ‘GTK_STOCK_APPLY’ was not declared in this scope
styles/qgtkstyle.cpp:3299: error: ‘GTK_STOCK_SAVE’ was not declared in this scope
styles/qgtkstyle.cpp:3303: error: ‘GTK_STOCK_DIALOG_WARNING’ was not declared in this scope
styles/qgtkstyle.cpp:3303: error: ‘GTK_ICON_SIZE_DIALOG’ was not declared in this scope
styles/qgtkstyle.cpp:3307: error: ‘GTK_STOCK_DIALOG_QUESTION’ was not declared in this scope
styles/qgtkstyle.cpp:3307: error: ‘GTK_ICON_SIZE_DIALOG’ was not declared in this scope
styles/qgtkstyle.cpp:3311: error: ‘GTK_STOCK_DIALOG_INFO’ was not declared in this scope
styles/qgtkstyle.cpp:3311: error: ‘GTK_ICON_SIZE_DIALOG’ was not declared in this scope
styles/qgtkstyle.cpp:3315: error: ‘GTK_STOCK_DIALOG_ERROR’ was not declared in this scope
styles/qgtkstyle.cpp:3315: error: ‘GTK_ICON_SIZE_DIALOG’ was not declared in this scope
gmake[1]: ** [.obj/release-shared/qgtkstyle.o] Erro 2
gmake[1]: Saindo do diretório `/opt/qtsdk-2009.04/qt/src/gui'
gmake: ** [sub-gui-install_subtargets-ordered] Erro 2
[joao@localhost qt]$




Aparently Qt was installed fine but I have to call QtCreator from command line,
no icons in the menu were created, unlike the instalation of the previous Qt version
wich went well, without errors.

Also, should I run gmake confclean after installing ?

Regards
John

floyd
18th November 2009, 06:08
hello
I had similar errors,
Please see below one by one and it may help you. I suppose you will be getting cant find include file at the start of these errors.

1) http://qt.nokia.com/doc/4.5/requirements-x11.html -> Do you have all these installed?
2) you may need to add the include path of the header files it is expecting while configuring.
./configure ... -I/usr/...


I got ahead of these errors after a lot of struggle. Though now I have linker errors :) and it seems that it is not finding the g_object_get etc... symbols from glib.

Please let me know if you have any success already.