Results 1 to 3 of 3

Thread: Error during Qt5 Beta compilation

  1. #1
    Join Date
    Sep 2012
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Error during Qt5 Beta compilation

    Hi all,
    I am having some difficulties compiling the Qt5.0 Beta using the following instructions outlined at http://qt-project.org/wiki/Building_Qt_5_from_Git

    I run ./configure with the following options "sudo ./configure -developer-build -opensource -nomake examples -nomake tests -openssl -qt-sql-mysql -no-gtkstyle"

    and then I run "sudo ./build -j 2"

    However I have had a whole range of errors, but most recently I have the following error during the compilation of the source.


    g++ -Wl,--no-undefined -Wl,-rpath,/opt/qt5/qtbase/lib -shared -o libqminimal.so .obj/debug-shared/main.o.obj/debug-shared/qminimalintegration.o .obj/debug-shared/qminimalbackingstore.o -L/opt/qt5/qtbase/lib
    -lQtPlatformSupport -lQtGui -lQtCore -lGL -lpthread

    /opt/qt5/qtbase/lib/libQtPlatformSupport.a(qeventdispatcher_glib.o): In function `QPAEventDispatcherGlibPrivate':
    /opt/qt5/qtbase/src/platformsupport/eventdispatchers/qeventdispatcher_glib.cpp:93: undefined reference to `g_source_new'
    /opt/qt5/qtbase/src/platformsupport/eventdispatchers/qeventdispatcher_glib.cpp:95: undefined reference to `g_source_set_can_recurse'
    /opt/qt5/qtbase/src/platformsupport/eventdispatchers/qeventdispatcher_glib.cpp:96: undefined reference to `g_source_attach'
    /opt/qt5/qtbase/lib/libQtPlatformSupport.a(qeventdispatcher_glib.o): In function `~QPAEventDispatcherGlib':
    /opt/qt5/qtbase/src/platformsupport/eventdispatchers/qeventdispatcher_glib.cpp:111: undefined reference to `g_source_destroy'
    /opt/qt5/qtbase/src/platformsupport/eventdispatchers/qeventdispatcher_glib.cpp:112: undefined reference to `g_source_unref'
    collect2: ld returned 1 exit status
    make[4]: *** [../../../../plugins/platforms/libqminimal.so] Error 1
    make[4]: Leaving directory `/opt/qt5/qtbase/src/plugins/platforms/minimal'
    make[3]: *** [sub-minimal-install_subtargets] Error 2
    make[3]: Leaving directory `/opt/qt5/qtbase/src/plugins/platforms'
    make[2]: *** [sub-platforms-install_subtargets] Error 2
    make[2]: Leaving directory `/opt/qt5/qtbase/src/plugins'
    make[1]: *** [sub-plugins-install_subtargets] Error 2
    make[1]: Leaving directory `/opt/qt5/qtbase/src'
    make: *** [sub-src-install_subtargets] Error 2
    'cd qtbase && make install failed: 512
    Fatal failure installing qtbase at ./build line 455
    Qt::Build::build_project('Qt::Build=HASH(0x8b058f0 )', 'qtbase') called at ./build line 484
    Qt::Build::build_qt('Qt::Build=HASH(0x8b058f0)') called at ./build line 544
    Qt::Build::run('Qt::Build=HASH(0x8b058f0)') called at ./build line 553
    If anyone can offer any help on how to build the source for Qt5, I would appreciate the help.

    Regards, Nick.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Error during Qt5 Beta compilation

    Try compiling without glib support.
    Or, install (the correct version of) glib.

  3. #3
    Join Date
    Sep 2012
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Error during Qt5 Beta compilation

    Thanks for the response.

    I tried to compile using "./configure -no-glib" + all the other options mentioned in the previous post, and then running ./build. This doesn't appear to have helped any, with the following error.

    .obj/debug-shared/qthread_unix.o: In function `QThreadPrivate::createEventDispatcher(QThreadData *)':
    /opt/qt5/qtbase/src/corelib/thread/qthread_unix.cpp:261: undefined reference to `QEventDispatcherGlib::versionSupported()'
    /opt/qt5/qtbase/src/corelib/thread/qthread_unix.cpp:262: undefined reference to `QEventDispatcherGlib::QEventDispatcherGlib(QObjec t*)'
    .obj/debug-shared/qcoreapplication.o: In function `QCoreApplicationPrivate::createEventDispatcher()' :
    /opt/qt5/qtbase/src/corelib/kernel/qcoreapplication.cpp:353: undefined reference to `QEventDispatcherGlib::versionSupported()'
    /opt/qt5/qtbase/src/corelib/kernel/qcoreapplication.cpp:354: undefined reference to `QEventDispatcherGlib::QEventDispatcherGlib(QObjec t*)'
    collect2: ld returned 1 exit status
    make[2]: *** [../../lib/libQtCore.so.5.0.0] Error 1
    make[2]: Leaving directory `/opt/qt5/qtbase/src/corelib'
    make[1]: *** [sub-corelib-install_subtargets] Error 2
    make[1]: Leaving directory `/opt/qt5/qtbase/src'
    make: *** [sub-src-install_subtargets] Error 2
    'cd qtbase && make install failed: 512
    Fatal failure installing qtbase at ./build line 455
    Qt::Build::build_project('Qt::Build=HASH(0x8daa8f0 )', 'qtbase') called at ./build line 484
    Qt::Build::build_qt('Qt::Build=HASH(0x8daa8f0)') called at ./build line 544
    Qt::Build::run('Qt::Build=HASH(0x8daa8f0)') called at ./build line 553
    How do ensure the correct version of Glib and any further dependencies for QT are installed?

    Regards, Nick.

Similar Threads

  1. compilation error
    By sajis997 in forum Qt Programming
    Replies: 1
    Last Post: 28th March 2012, 12:14
  2. Qt compilation error
    By saul.andrade in forum Newbie
    Replies: 1
    Last Post: 17th March 2011, 09:51
  3. Compilation Error
    By ^NyAw^ in forum General Programming
    Replies: 2
    Last Post: 30th September 2008, 17:37
  4. Qt 4.4.0 compilation Error?
    By mismael85 in forum Installation and Deployment
    Replies: 7
    Last Post: 3rd July 2008, 09:59
  5. QT 4.3 Beta Installation Error
    By meh in forum Installation and Deployment
    Replies: 0
    Last Post: 1st May 2007, 19:29

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.