Results 1 to 6 of 6

Thread: QT 4.5.1 failed to build with gtk/gtk.h: No such file or directory

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2009
    Posts
    66
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT 4.5.1 failed to build with gtk/gtk.h: No such file or directory

    I installed some gtk x11 extra lib, but that didn't sort things out, so I've been editing the QT makefile that was failing, adding in the missing include paths.

    Now I get the following error link errors :-

    .obj/release-shared/qgtkstyle.o: In function `.L4043':
    /home/aculab/qt/qtsdk-2009.02/qt/src/gui/styles/qgtkstyle.cpp:635: undefined reference to `g_object_get'
    .obj/release-shared/qgtkstyle.o: In function `.L4047':
    /home/aculab/qt/qtsdk-2009.02/qt/src/gui/styles/qgtkstyle.cpp:603: undefined reference to `g_object_get'
    .obj/release-shared/qgtkstyle.o: In function `.L4106':
    /home/aculab/qt/qtsdk-2009.02/qt/src/gui/styles/qgtkstyle.cpp:483: undefined reference to `g_object_get'
    .obj/release-shared/gtksymbols.o: In function `getGConfString':
    /home/aculab/qt/qtsdk-2009.02/qt/src/gui/styles/gtksymbols.cpp:345: undefined reference to `g_type_init'
    /home/aculab/qt/qtsdk-2009.02/qt/src/gui/styles/gtksymbols.cpp:353: undefined reference to `g_object_unref'
    .obj/release-shared/gtksymbols.o: In function `setupGtkFileChooser':
    /home/aculab/qt/qtsdk-2009.02/qt/src/gui/styles/gtksymbols.cpp:742: undefined reference to `g_object_set'
    /home/aculab/qt/qtsdk-2009.02/qt/src/gui/styles/gtksymbols.cpp:743: undefined reference to `g_object_set'
    .obj/release-shared/gtksymbols.o: In function `QGtk:penFilenames(QWidget*, QString const&, QString const&, QString const&, QString*, QFlags<QFileDialog::Option>)':
    /home/aculab/qt/qtsdk-2009.02/qt/src/gui/styles/gtksymbols.cpp:858: undefined reference to `g_object_set'
    .obj/release-shared/gtksymbols.o: In function `add_widget_to_map':
    /home/aculab/qt/qtsdk-2009.02/qt/src/gui/styles/gtksymbols.cpp:445: undefined reference to `g_type_check_instance_is_a'
    .obj/release-shared/gtksymbols.o: In function `add_all_sub_widgets':
    /home/aculab/qt/qtsdk-2009.02/qt/src/gui/styles/gtksymbols.cpp:455: undefined reference to `g_type_check_instance_is_a'
    .obj/release-shared/gtksymbols.o: In function `setup_gtk_widget':
    /home/aculab/qt/qtsdk-2009.02/qt/src/gui/styles/gtksymbols.cpp:430: undefined reference to `g_type_check_instance_is_a'
    .obj/release-shared/gtksymbols.o: In function `QGtk::initGtkWidgets()':
    /home/aculab/qt/qtsdk-2009.02/qt/src/gui/styles/gtksymbols.cpp:679: undefined reference to `g_signal_connect_data'
    collect2: ld returned 1 exit status
    make[1]: *** [../../lib/libQtGui.so.4.5.1] Error 1

    Any ideas what libraries are missing?

    Has anyone built QT4.5.1 on unbuntu - I assume so. What ./configure options did they include?

  2. #2

    Default Re: QT 4.5.1 failed to build with gtk/gtk.h: No such file or directory

    ./configure -silent -opengl

    the gtk dev libs are listed under synaptic as

    libgtk2.0-dev

  3. #3
    Join Date
    Jun 2009
    Posts
    66
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT 4.5.1 failed to build with gtk/gtk.h: No such file or directory

    Installing libgtk2.0-dev resloved the issues on Ubuntu.

    I've now moved on to QT 4.5.2, which I've built on debian.

    Cheers everyone for the help.

Similar Threads

  1. some questions about install qwt
    By dycjiaoda in forum Qwt
    Replies: 1
    Last Post: 8th February 2011, 01:37
  2. How to handle: QtCore/qconfig.h: No such file or directory ?
    By owen_263 in forum Installation and Deployment
    Replies: 2
    Last Post: 7th April 2008, 09:54
  3. Replies: 2
    Last Post: 8th November 2007, 20:15
  4. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  5. create file in another directory
    By raphaelf in forum Qt Programming
    Replies: 3
    Last Post: 16th February 2006, 10:04

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.