Results 1 to 6 of 6

Thread: Error during installation

  1. #1
    Join Date
    May 2009
    Posts
    30
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Error during installation

    Hello guys,

    I'm having problems installing QT onto a Ubuntu 8.04 system 64-bit system. I downloaded the .bin file from the official website and followed the instructions to install the open source version.

    I then typed the following:

    sudo su

    <password>

    ./configure

    ./make

    -------------------------

    Configure runs fine, make runs fine for a while, until it gets to "styles/qgtkstyle.cpp", it keeps saying things like different variables are not declared in this scope or something is not a member of QGtk.

    Does anyone have any idea how to solve this? Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Error during installation

    Maybe an exact error message would be better, but I guess you have to install the gtk development files (e.g. libgtk2.0-dev).

  3. #3
    Join Date
    May 2009
    Posts
    30
    Thanks
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Error during installation

    Just managed to copy it over, error message as below. It doesn't end there, there are a lot more lines, but basically saying that certain variables cannot be found.

    Qt Code:
    1. /opt/qtsdk-2009.02/qt# make
    2. cd src/tools/bootstrap/ && make -f Makefile
    3. make[1]: Entering directory `/opt/qtsdk-2009.02/qt/src/tools/bootstrap'
    4. make[1]: Nothing to be done for `first'.
    5. make[1]: Leaving directory `/opt/qtsdk-2009.02/qt/src/tools/bootstrap'
    6. cd src/tools/moc/ && make -f Makefile
    7. make[1]: Entering directory `/opt/qtsdk-2009.02/qt/src/tools/moc'
    8. make[1]: Nothing to be done for `first'.
    9. make[1]: Leaving directory `/opt/qtsdk-2009.02/qt/src/tools/moc'
    10. cd src/tools/rcc/ && make -f Makefile
    11. make[1]: Entering directory `/opt/qtsdk-2009.02/qt/src/tools/rcc'
    12. make[1]: Nothing to be done for `first'.
    13. make[1]: Leaving directory `/opt/qtsdk-2009.02/qt/src/tools/rcc'
    14. cd src/tools/uic/ && make -f Makefile
    15. make[1]: Entering directory `/opt/qtsdk-2009.02/qt/src/tools/uic'
    16. make[1]: Nothing to be done for `first'.
    17. make[1]: Leaving directory `/opt/qtsdk-2009.02/qt/src/tools/uic'
    18. cd src/corelib/ && make -f Makefile
    19. make[1]: Entering directory `/opt/qtsdk-2009.02/qt/src/corelib'
    20. make[1]: Nothing to be done for `first'.
    21. make[1]: Leaving directory `/opt/qtsdk-2009.02/qt/src/corelib'
    22. cd src/xml/ && make -f Makefile
    23. make[1]: Entering directory `/opt/qtsdk-2009.02/qt/src/xml'
    24. make[1]: Nothing to be done for `first'.
    25. make[1]: Leaving directory `/opt/qtsdk-2009.02/qt/src/xml'
    26. cd src/network/ && make -f Makefile
    27. make[1]: Entering directory `/opt/qtsdk-2009.02/qt/src/network'
    28. make[1]: Nothing to be done for `first'.
    29. make[1]: Leaving directory `/opt/qtsdk-2009.02/qt/src/network'
    30. cd src/gui/ && make -f Makefile
    31. make[1]: Entering directory `/opt/qtsdk-2009.02/qt/src/gui'
    32. g++ -c -include .pch/release-shared/QtGui -m64 -pipe -g -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_RASTER_IMAGEENGINE -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++-64 -I. -I../../include/QtCore -I../../include -I../../include/QtGui -I.rcc/release-shared -I../3rdparty/xorg -I/usr/include/freetype2 -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-shared -I/usr/X11R6/include -I.uic/release-shared -o .obj/release-shared/qgtkstyle.o styles/qgtkstyle.cpp
    33. In file included from styles/qgtkpainter_p.h:59,
    34. from styles/qgtkstyle.cpp:72:
    35. styles/gtksymbols_p.h:60:21: error: gtk/gtk.h: No such file or directory
    36. In file included from styles/qgtkpainter_p.h:59,
    37. from styles/qgtkstyle.cpp:72:
    38. styles/gtksymbols_p.h:79: error: ‘GError’ has not been declared
    39. styles/gtksymbols_p.h:82: error: expected initializer before ‘*’ token
    40. styles/gtksymbols_p.h:83: error: expected initializer before ‘*’ token
    41. styles/gtksymbols_p.h:84: error: typedef ‘Ptr_gtk_widget_destroy’ is initialized (use __typeof__ instead)
    42. styles/gtksymbols_p.h:84: error: ‘GtkWidget’ was not declared in this scope
    43. styles/gtksymbols_p.h:84: error: expected primary-expression before ‘)’ token
    44. styles/gtksymbols_p.h:85: error: typedef ‘Ptr_gtk_widget_realize’ is initialized (use __typeof__ instead)
    45. styles/gtksymbols_p.h:85: error: ‘GtkWidget’ was not declared in this scope
    46. styles/gtksymbols_p.h:85: error: expected primary-expression before ‘)’ token
    47. styles/gtksymbols_p.h:86: error: typedef ‘Ptr_gtk_widget_set_default_direction’ is initialized (use __typeof__ instead)
    48. styles/gtksymbols_p.h:86: error: ‘GtkTextDirection’ was not declared in this scope
    49. styles/gtksymbols_p.h:87: error: typedef ‘Ptr_gtk_widget_modify_color’ is initialized (use __typeof__ instead)
    50. styles/gtksymbols_p.h:87: error: ‘GtkWidget’ was not declared in this scope
    51. styles/gtksymbols_p.h:87: error: ‘widget’ was not declared in this scope
    52. styles/gtksymbols_p.h:87: error: ‘GtkStateType’ was not declared in this scope
    53. styles/gtksymbols_p.h:87: error: expected primary-expression before ‘const’
    54. styles/gtksymbols_p.h:88: error: expected initializer before ‘*’ token
    55. styles/gtksymbols_p.h:89: error: expected initializer before ‘*’ token
    56. styles/gtksymbols_p.h:90: error: expected initializer before ‘*’ token
    To copy to clipboard, switch view to plain text mode 


    I've tried installing libgtk2.0-dev already, no difference.

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Error during installation

    Ok, what do you get for following commands:

    locate gtk.h
    and
    pkg-config --cflags --libs gtk+-2.0
    ?

  5. #5
    Join Date
    Jul 2009
    Posts
    1

    Question Re: Error during installation

    I've got the same problem

    for command
    pkg-config --cflags --libs gtk+-2.0
    got:
    Qt Code:
    1. -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/pixman-1 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
    To copy to clipboard, switch view to plain text mode 

    but for command
    locate gtk.h
    got nothing (only gallery-gtk.html file)

    Does anybodny know how to resolve this issue ?

  6. #6
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Error during installation

    You can skip the QGtkStyle with "configure -no-gtkstyle" (the configure script should've excluded it since it cannot be compiled, though) or you can try installing "libgtk-dev".
    J-P Nurmi

Similar Threads

  1. Qt_embedded -wince software installation problem
    By kalpana in forum Qt Programming
    Replies: 5
    Last Post: 16th December 2009, 13:56
  2. Installation of a C++ software wrote with Qt library
    By franknapoli in forum Installation and Deployment
    Replies: 1
    Last Post: 5th March 2009, 17:51
  3. problem with installation
    By kalpana in forum Qt Programming
    Replies: 2
    Last Post: 4th November 2008, 11:24
  4. Qt installation
    By jay in forum Installation and Deployment
    Replies: 7
    Last Post: 27th May 2008, 15:24
  5. do Qt4 installation depends on gcc version
    By quickNitin in forum Installation and Deployment
    Replies: 3
    Last Post: 3rd October 2006, 06:14

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.