<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Qt-embedded 4.8.2 Glib link fails]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I am trying to build the QT cross compile for ARM-9 on Ubuntu 11.04.<br />
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.</p>
<p dir="auto">The mkspec file : /mkspecs/qws/linux-arm-gnueabi-g++<br />
@#<br />
#qmake configuration for building with arm-none-linux-gnueabi-g++</p>
<h1></h1>
<p dir="auto">include(../../common/linux.conf)<br />
include(../../common/gcc-base-unix.conf)<br />
include(../../common/g++-unix.conf)<br />
include(../../common/qws.conf)</p>
<p dir="auto">#modifications to g++.conf<br />
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<br />
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++<br />
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++<br />
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++</p>
<p dir="auto">#modifications to linux.conf<br />
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<br />
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<br />
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</p>
<p dir="auto">load(qt_config)@</p>
<p dir="auto"><em>The configuration command line:</em><br />
@./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<br />
@<br />
Where LTIB_ROOTFS is the path to the embedded system rootfs.</p>
<p dir="auto"><em>NOW for the error:</em><br />
@<br />
.<br />
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<br />
.obj/release-shared-emb-arm/qapplication_qws.o: In function <code>QApplicationPrivate::createEventDispatcher()': qapplication_qws.cpp:(.text+0x34b8): undefined reference to </code>QEventDispatcherGlib::QEventDispatcherGlib(QObject*)'<br />
qapplication_qws.cpp:(.text+0x34f4): undefined reference to <code>QEventDispatcherGlib::versionSupported()' .obj/release-shared-emb-arm/qeventdispatcher_glib_qws.o: In function </code>QWSEventDispatcherGlib::~QWSEventDispatcherGlib()':<br />
qeventdispatcher_glib_qws.cpp:(.text+0x38): undefined reference to <code>QEventDispatcherGlib::~QEventDispatcherGlib()' qeventdispatcher_glib_qws.cpp:(.text+0x4c): undefined reference to </code>QEventDispatcherGlib::~QEventDispatcherGlib()'<br />
.obj/release-shared-emb-arm/qeventdispatcher_glib_qws.o: In function <code>QWSEventDispatcherGlib::~QWSEventDispatcherGlib()': qeventdispatcher_glib_qws.cpp:(.text+0x118): undefined reference to </code>QEventDispatcherGlib::~QEventDispatcherGlib()'<br />
qeventdispatcher_glib_qws.cpp:(.text+0x12c): undefined reference to <code>QEventDispatcherGlib::~QEventDispatcherGlib()' .obj/release-shared-emb-arm/qeventdispatcher_glib_qws.o: In function </code>QWSEventDispatcherGlib::~QWSEventDispatcherGlib()':<br />
qeventdispatcher_glib_qws.cpp:(.text+0x18c): undefined reference to <code>QEventDispatcherGlib::~QEventDispatcherGlib()' .obj/release-shared-emb-arm/qeventdispatcher_glib_qws.o:qeventdispatcher_glib_qws.cpp:(.text+0x1a8): more undefined references to </code>QEventDispatcherGlib::~QEventDispatcherGlib()' follow<br />
.obj/release-shared-emb-arm/qeventdispatcher_glib_qws.o: In function <code>QWSEventDispatcherGlib::processEvents(QFlags&lt;QEventLoop::ProcessEventsFlag&gt;)': qeventdispatcher_glib_qws.cpp:(.text+0x1e4): undefined reference to </code>QEventDispatcherGlib::processEvents(QFlags<a target="_blank" rel="noopener noreferrer nofollow ugc">QEventLoop::ProcessEventsFlag</a>)'<br />
.<br />
.<br />
.obj/release-shared-emb-arm/moc_qeventdispatcher_glib_qws_p.o:(.data.rel.ro+0x8c): undefined reference to <code>typeinfo for QEventDispatcherGlib' collect2: ld returned 1 exit status make[1]: *** [../../lib/libQtGui.so.4.8.2] Error 1 make[1]: Leaving directory </code>/media/Data/QtEmbedded/qt-everywhere-opensource-src-4.8.2/src/gui'<br />
make: *** [sub-gui-make_default-ordered] Error 2@</p>
<p dir="auto">I have been trying different configurations with confclean in-between but no luck.<br />
Any help will be appreciated.</p>
]]></description><link>https://forum.qt.io/topic/19459/qt-embedded-4-8-2-glib-link-fails</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 22:46:35 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/19459.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 30 Aug 2012 00:43:10 GMT</pubDate><ttl>60</ttl></channel></rss>