Qt-embedded 4.8.2 Glib link fails



  • Hi,

    I am trying to build the QT cross compile for ARM-9 on Ubuntu 11.04.
    The QT was previously compiled without the glib and gstreamer-10 but after adding the glib, which was also added to my embedded packages, the link fail.

    The mkspec file : /mkspecs/qws/linux-arm-gnueabi-g++
    @#
    #qmake configuration for building with arm-none-linux-gnueabi-g++

    include(../../common/linux.conf)
    include(../../common/gcc-base-unix.conf)
    include(../../common/g++-unix.conf)
    include(../../common/qws.conf)

    #modifications to g++.conf
    QMAKE_CC = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc
    QMAKE_CXX = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++
    QMAKE_LINK = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++
    QMAKE_LINK_SHLIB = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-g++

    #modifications to linux.conf
    QMAKE_AR = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ar cqs
    QMAKE_OBJCOPY = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-objcopy
    QMAKE_STRIP = /opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-strip

    load(qt_config)@

    The configuration command line:
    @./configure -opensource -v -I$LTIB_ROOTFS/usr/include -I$LTIB_ROOTFS/usr/include/glib-2.0 -I$LTIB_ROOTFS/usr/lib/glib-2.0/include -I$LTIB_ROOTFS/usr/include/libxml2 -L$LTIB_ROOTFS/usr/lib/pkgconfig -L$LTIB_ROOTFS/usr/lib -embedded arm -platform linux-g++ -xplatform qws/linux-arm-gnueabi-g++ -xplatform qws/linux-arm-gnueabi-g++ -release -prefix /usr/local/Trolltech/QtEmbedded-4.8.2-arm-phytec -no-largefile -no-stl -no-qt3support -multimedia -audio-backend -phonon -phonon-backend -svg -no-webkit -javascript-jit -no-script -no-scripttools -no-declarative -no-declarative-debug -qt-zlib -qt-libpng -qt-libmng -qt-libjpeg -qt-libtiff -no-nis -no-cups -no-iconv -qt-mouse-tslib -nomake demos -nomake examples -confirm-license -no-mmx -no-3dnow -no-sse -no-sse2 -no-sse3 -no-ssse3 -no-sse4.1 -no-sse4.2 -no-avx -no-neon -glib --prefix=$LTIB_ROOTFS/usr/local/Trolltech/Qt-4.8.0-arm-cross
    @
    Where LTIB_ROOTFS is the path to the embedded system rootfs.

    NOW for the error:
    @
    .
    ion.o .obj/release-shared-emb-arm/moc_qmouseeventtransition.o .obj/release-shared-emb-arm/moc_qbasickeyeventtransition_p.o .obj/release-shared-emb-arm/moc_qbasicmouseeventtransition_p.o .obj/release-shared-emb-arm/moc_qgraphicseffect.o .obj/release-shared-emb-arm/moc_qgraphicseffect_p.o .obj/release-shared-emb-arm/qrc_qstyle.o .obj/release-shared-emb-arm/qrc_qmessagebox.o -L/media/Data/lpc3250/ltib/rootfs/usr/lib/pkgconfig -L/media/Data/lpc3250/ltib/rootfs/usr/lib -L/media/Data/QtEmbedded/qt-everywhere-opensource-src-4.8.2/lib -lQtNetwork -L/media/Data/lpc3250/ltib/rootfs/usr/lib/ -L/usr/local/Trolltech/Qt-4.8.0-arm-cross/lib -lQtCore -lpthread -lts -lglib-2.0 -lgthread-2.0
    .obj/release-shared-emb-arm/qapplication_qws.o: In function QApplicationPrivate::createEventDispatcher()': qapplication_qws.cpp:(.text+0x34b8): undefined reference toQEventDispatcherGlib::QEventDispatcherGlib(QObject*)'
    qapplication_qws.cpp:(.text+0x34f4): undefined reference to QEventDispatcherGlib::versionSupported()' .obj/release-shared-emb-arm/qeventdispatcher_glib_qws.o: In functionQWSEventDispatcherGlib::~QWSEventDispatcherGlib()':
    qeventdispatcher_glib_qws.cpp:(.text+0x38): undefined reference to QEventDispatcherGlib::~QEventDispatcherGlib()' qeventdispatcher_glib_qws.cpp:(.text+0x4c): undefined reference toQEventDispatcherGlib::~QEventDispatcherGlib()'
    .obj/release-shared-emb-arm/qeventdispatcher_glib_qws.o: In function QWSEventDispatcherGlib::~QWSEventDispatcherGlib()': qeventdispatcher_glib_qws.cpp:(.text+0x118): undefined reference toQEventDispatcherGlib::~QEventDispatcherGlib()'
    qeventdispatcher_glib_qws.cpp:(.text+0x12c): undefined reference to QEventDispatcherGlib::~QEventDispatcherGlib()' .obj/release-shared-emb-arm/qeventdispatcher_glib_qws.o: In functionQWSEventDispatcherGlib::~QWSEventDispatcherGlib()':
    qeventdispatcher_glib_qws.cpp:(.text+0x18c): undefined reference to QEventDispatcherGlib::~QEventDispatcherGlib()' .obj/release-shared-emb-arm/qeventdispatcher_glib_qws.o:qeventdispatcher_glib_qws.cpp:(.text+0x1a8): more undefined references toQEventDispatcherGlib::~QEventDispatcherGlib()' follow
    .obj/release-shared-emb-arm/qeventdispatcher_glib_qws.o: In function QWSEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)': qeventdispatcher_glib_qws.cpp:(.text+0x1e4): undefined reference toQEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag)'
    .
    .
    .obj/release-shared-emb-arm/moc_qeventdispatcher_glib_qws_p.o:(.data.rel.ro+0x8c): undefined reference to typeinfo for QEventDispatcherGlib' collect2: ld returned 1 exit status make[1]: *** [../../lib/libQtGui.so.4.8.2] Error 1 make[1]: Leaving directory/media/Data/QtEmbedded/qt-everywhere-opensource-src-4.8.2/src/gui'
    make: *** [sub-gui-make_default-ordered] Error 2@

    I have been trying different configurations with confclean in-between but no luck.
    Any help will be appreciated.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.