weaver4
25th November 2010, 03:44
I am trying to set up a cross compiler for arm on my Ubuntu box. When I do a configure and make with the -phonon option on I get an error that makes it look like libglib.so is not getting linked in (I am guessing). But it looks like the file is in the lib part. Here is my output. I would appreciate some help, I am kind of new at this.
================================================== ===============
.obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlib::wakeUp()':
qeventdispatcher_glib.cpp:(.text+0x100): undefined reference to `g_main_context_wakeup'
.obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlib::hasPendingEvents()':
qeventdispatcher_glib.cpp:(.text+0x1c8): undefined reference to `g_main_context_pending'
.obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)':
qeventdispatcher_glib.cpp:(.text+0x224): undefined reference to `g_main_context_iteration'
qeventdispatcher_glib.cpp:(.text+0x240): undefined reference to `g_main_context_iteration'
.obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlibPrivate::QEventDispatcherGlib Private(_GMainContext*)':
qeventdispatcher_glib.cpp:(.text+0x78c): undefined reference to `g_main_context_ref'
qeventdispatcher_glib.cpp:(.text+0x79c): undefined reference to `g_source_new'
qeventdispatcher_glib.cpp:(.text+0x7ac): undefined reference to `g_source_set_can_recurse'
qeventdispatcher_glib.cpp:(.text+0x7b8): undefined reference to `g_source_attach'
qeventdispatcher_glib.cpp:(.text+0x7c8): undefined reference to `g_source_new'
qeventdispatcher_glib.cpp:(.text+0x80c): undefined reference to `g_source_set_can_recurse'
qeventdispatcher_glib.cpp:(.text+0x818): undefined reference to `g_source_attach'
qeventdispatcher_glib.cpp:(.text+0x828): undefined reference to `g_source_new'
qeventdispatcher_glib.cpp:(.text+0x858): undefined reference to `g_source_set_can_recurse'
qeventdispatcher_glib.cpp:(.text+0x864): undefined reference to `g_source_attach'
qeventdispatcher_glib.cpp:(.text+0x874): undefined reference to `g_source_new'
qeventdispatcher_glib.cpp:(.text+0x888): undefined reference to `g_source_set_can_recurse'
qeventdispatcher_glib.cpp:(.text+0x894): undefined reference to `g_source_set_priority'
qeventdispatcher_glib.cpp:(.text+0x8a0): undefined reference to `g_source_attach'
qeventdispatcher_glib.cpp:(.text+0x8dc): undefined reference to `g_main_context_new'
qeventdispatcher_glib.cpp:(.text+0x964): undefined reference to `g_main_context_default'
qeventdispatcher_glib.cpp:(.text+0x9a0): undefined reference to `g_threads_got_initialized'
.obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlib::unregisterSocketNotifier(QS ocketNotifier*)':
qeventdispatcher_glib.cpp:(.text+0xa6c): undefined reference to `g_source_remove_poll'
.obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlibPrivate::QEventDispatcherGlib Private(_GMainContext*)':
qeventdispatcher_glib.cpp:(.text+0xc00): undefined reference to `g_main_context_ref'
qeventdispatcher_glib.cpp:(.text+0xc10): undefined reference to `g_source_new'
qeventdispatcher_glib.cpp:(.text+0xc20): undefined reference to `g_source_set_can_recurse'
qeventdispatcher_glib.cpp:(.text+0xc2c): undefined reference to `g_source_attach'
qeventdispatcher_glib.cpp:(.text+0xc3c): undefined reference to `g_source_new'
qeventdispatcher_glib.cpp:(.text+0xc80): undefined reference to `g_source_set_can_recurse'
qeventdispatcher_glib.cpp:(.text+0xc8c): undefined reference to `g_source_attach'
qeventdispatcher_glib.cpp:(.text+0xc9c): undefined reference to `g_source_new'
qeventdispatcher_glib.cpp:(.text+0xccc): undefined reference to `g_source_set_can_recurse'
qeventdispatcher_glib.cpp:(.text+0xcd8): undefined reference to `g_source_attach'
qeventdispatcher_glib.cpp:(.text+0xce8): undefined reference to `g_source_new'
qeventdispatcher_glib.cpp:(.text+0xcfc): undefined reference to `g_source_set_can_recurse'
qeventdispatcher_glib.cpp:(.text+0xd08): undefined reference to `g_source_set_priority'
qeventdispatcher_glib.cpp:(.text+0xd14): undefined reference to `g_source_attach'
qeventdispatcher_glib.cpp:(.text+0xd50): undefined reference to `g_main_context_new'
qeventdispatcher_glib.cpp:(.text+0xdd8): undefined reference to `g_main_context_default'
qeventdispatcher_glib.cpp:(.text+0xe14): undefined reference to `g_threads_got_initialized'
.obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlib::~QEventDispatcherGlib()':
qeventdispatcher_glib.cpp:(.text+0x11d0): undefined reference to `g_source_destroy'
qeventdispatcher_glib.cpp:(.text+0x11d8): undefined reference to `g_source_unref'
qeventdispatcher_glib.cpp:(.text+0x11e8): undefined reference to `g_source_destroy'
qeventdispatcher_glib.cpp:(.text+0x11f0): undefined reference to `g_source_unref'
qeventdispatcher_glib.cpp:(.text+0x12f0): undefined reference to `g_source_remove_poll'
qeventdispatcher_glib.cpp:(.text+0x1358): undefined reference to `g_source_destroy'
qeventdispatcher_glib.cpp:(.text+0x1360): undefined reference to `g_source_unref'
qeventdispatcher_glib.cpp:(.text+0x1370): undefined reference to `g_source_destroy'
qeventdispatcher_glib.cpp:(.text+0x1378): undefined reference to `g_source_unref'
qeventdispatcher_glib.cpp:(.text+0x1384): undefined reference to `g_main_context_unref'
.obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlib::~QEventDispatcherGlib()':
qeventdispatcher_glib.cpp:(.text+0x14a4): undefined reference to `g_source_destroy'
qeventdispatcher_glib.cpp:(.text+0x14ac): undefined reference to `g_source_unref'
qeventdispatcher_glib.cpp:(.text+0x14bc): undefined reference to `g_source_destroy'
qeventdispatcher_glib.cpp:(.text+0x14c4): undefined reference to `g_source_unref'
qeventdispatcher_glib.cpp:(.text+0x15c4): undefined reference to `g_source_remove_poll'
qeventdispatcher_glib.cpp:(.text+0x162c): undefined reference to `g_source_destroy'
qeventdispatcher_glib.cpp:(.text+0x1634): undefined reference to `g_source_unref'
qeventdispatcher_glib.cpp:(.text+0x1644): undefined reference to `g_source_destroy'
qeventdispatcher_glib.cpp:(.text+0x164c): undefined reference to `g_source_unref'
qeventdispatcher_glib.cpp:(.text+0x1658): undefined reference to `g_main_context_unref'
.obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlib::~QEventDispatcherGlib()':
qeventdispatcher_glib.cpp:(.text+0x1780): undefined reference to `g_source_destroy'
qeventdispatcher_glib.cpp:(.text+0x1788): undefined reference to `g_source_unref'
qeventdispatcher_glib.cpp:(.text+0x1798): undefined reference to `g_source_destroy'
qeventdispatcher_glib.cpp:(.text+0x17a0): undefined reference to `g_source_unref'
qeventdispatcher_glib.cpp:(.text+0x18a0): undefined reference to `g_source_remove_poll'
qeventdispatcher_glib.cpp:(.text+0x1908): undefined reference to `g_source_destroy'
qeventdispatcher_glib.cpp:(.text+0x1910): undefined reference to `g_source_unref'
qeventdispatcher_glib.cpp:(.text+0x1920): undefined reference to `g_source_destroy'
qeventdispatcher_glib.cpp:(.text+0x1928): undefined reference to `g_source_unref'
qeventdispatcher_glib.cpp:(.text+0x1934): undefined reference to `g_main_context_unref'
.obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlib::registerSocketNotifier(QSoc ketNotifier*)':
qeventdispatcher_glib.cpp:(.text+0x1ac4): undefined reference to `g_source_add_poll'
collect2: ld returned 1 exit status
make[1]: *** [../../lib/libQtCoreE.so.4.6.2] Error 1
make[1]: Leaving directory `/home/trey/Development/BeagleBoard/QT-Tools/qt-everywhere-opensource-src-4.6.2/src/corelib'
make: *** [sub-corelib-make_default-ordered] Error 2
I forgot to include my make.conf file.
====================================
#
# qmake configuration for building with arm-linux-g++
#
include(../../common/g++.conf)
include(../../common/linux.conf)
include(../../common/qws.conf)
# modifications to g++.conf
#Toolchain
#Compiler Flags to take advantage of the ARM architecture
QMAKE_CFLAGS_RELEASE = -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -lgthread-2.0
QMAKE_CXXFLAGS_RELEASE = -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -lgthread-2.0
QMAKE_CC = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/gcc
QMAKE_CXX = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++
QMAKE_LINK = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++
QMAKE_LINK_SHLIB = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++
# modifications to linux.conf
QMAKE_AR = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/ar cqs
QMAKE_OBJCOPY = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/objcopy
QMAKE_STRIP = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/strip
QMAKE_INCDIR += /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/include
QMAKE_INCDIR += /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/include/glib-2.0
QMAKE_INCDIR += /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/lib/glib-2.0/include
QMAKE_INCDIR += /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/include/gstreamer-0.10
QMAKE_INCDIR += /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/include/libxml2
QMAKE_LIBDIR += /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/lib /
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/lib
QMAKE_LIBS += -lgthread-2.0 -v
QT_CFLAGS_GLIB = -lgthread-2.0 -v
QT_LIBS_GLIB = -lgthread-2.0 -v
load(qt_config)
================================================== ===============
.obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlib::wakeUp()':
qeventdispatcher_glib.cpp:(.text+0x100): undefined reference to `g_main_context_wakeup'
.obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlib::hasPendingEvents()':
qeventdispatcher_glib.cpp:(.text+0x1c8): undefined reference to `g_main_context_pending'
.obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)':
qeventdispatcher_glib.cpp:(.text+0x224): undefined reference to `g_main_context_iteration'
qeventdispatcher_glib.cpp:(.text+0x240): undefined reference to `g_main_context_iteration'
.obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlibPrivate::QEventDispatcherGlib Private(_GMainContext*)':
qeventdispatcher_glib.cpp:(.text+0x78c): undefined reference to `g_main_context_ref'
qeventdispatcher_glib.cpp:(.text+0x79c): undefined reference to `g_source_new'
qeventdispatcher_glib.cpp:(.text+0x7ac): undefined reference to `g_source_set_can_recurse'
qeventdispatcher_glib.cpp:(.text+0x7b8): undefined reference to `g_source_attach'
qeventdispatcher_glib.cpp:(.text+0x7c8): undefined reference to `g_source_new'
qeventdispatcher_glib.cpp:(.text+0x80c): undefined reference to `g_source_set_can_recurse'
qeventdispatcher_glib.cpp:(.text+0x818): undefined reference to `g_source_attach'
qeventdispatcher_glib.cpp:(.text+0x828): undefined reference to `g_source_new'
qeventdispatcher_glib.cpp:(.text+0x858): undefined reference to `g_source_set_can_recurse'
qeventdispatcher_glib.cpp:(.text+0x864): undefined reference to `g_source_attach'
qeventdispatcher_glib.cpp:(.text+0x874): undefined reference to `g_source_new'
qeventdispatcher_glib.cpp:(.text+0x888): undefined reference to `g_source_set_can_recurse'
qeventdispatcher_glib.cpp:(.text+0x894): undefined reference to `g_source_set_priority'
qeventdispatcher_glib.cpp:(.text+0x8a0): undefined reference to `g_source_attach'
qeventdispatcher_glib.cpp:(.text+0x8dc): undefined reference to `g_main_context_new'
qeventdispatcher_glib.cpp:(.text+0x964): undefined reference to `g_main_context_default'
qeventdispatcher_glib.cpp:(.text+0x9a0): undefined reference to `g_threads_got_initialized'
.obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlib::unregisterSocketNotifier(QS ocketNotifier*)':
qeventdispatcher_glib.cpp:(.text+0xa6c): undefined reference to `g_source_remove_poll'
.obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlibPrivate::QEventDispatcherGlib Private(_GMainContext*)':
qeventdispatcher_glib.cpp:(.text+0xc00): undefined reference to `g_main_context_ref'
qeventdispatcher_glib.cpp:(.text+0xc10): undefined reference to `g_source_new'
qeventdispatcher_glib.cpp:(.text+0xc20): undefined reference to `g_source_set_can_recurse'
qeventdispatcher_glib.cpp:(.text+0xc2c): undefined reference to `g_source_attach'
qeventdispatcher_glib.cpp:(.text+0xc3c): undefined reference to `g_source_new'
qeventdispatcher_glib.cpp:(.text+0xc80): undefined reference to `g_source_set_can_recurse'
qeventdispatcher_glib.cpp:(.text+0xc8c): undefined reference to `g_source_attach'
qeventdispatcher_glib.cpp:(.text+0xc9c): undefined reference to `g_source_new'
qeventdispatcher_glib.cpp:(.text+0xccc): undefined reference to `g_source_set_can_recurse'
qeventdispatcher_glib.cpp:(.text+0xcd8): undefined reference to `g_source_attach'
qeventdispatcher_glib.cpp:(.text+0xce8): undefined reference to `g_source_new'
qeventdispatcher_glib.cpp:(.text+0xcfc): undefined reference to `g_source_set_can_recurse'
qeventdispatcher_glib.cpp:(.text+0xd08): undefined reference to `g_source_set_priority'
qeventdispatcher_glib.cpp:(.text+0xd14): undefined reference to `g_source_attach'
qeventdispatcher_glib.cpp:(.text+0xd50): undefined reference to `g_main_context_new'
qeventdispatcher_glib.cpp:(.text+0xdd8): undefined reference to `g_main_context_default'
qeventdispatcher_glib.cpp:(.text+0xe14): undefined reference to `g_threads_got_initialized'
.obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlib::~QEventDispatcherGlib()':
qeventdispatcher_glib.cpp:(.text+0x11d0): undefined reference to `g_source_destroy'
qeventdispatcher_glib.cpp:(.text+0x11d8): undefined reference to `g_source_unref'
qeventdispatcher_glib.cpp:(.text+0x11e8): undefined reference to `g_source_destroy'
qeventdispatcher_glib.cpp:(.text+0x11f0): undefined reference to `g_source_unref'
qeventdispatcher_glib.cpp:(.text+0x12f0): undefined reference to `g_source_remove_poll'
qeventdispatcher_glib.cpp:(.text+0x1358): undefined reference to `g_source_destroy'
qeventdispatcher_glib.cpp:(.text+0x1360): undefined reference to `g_source_unref'
qeventdispatcher_glib.cpp:(.text+0x1370): undefined reference to `g_source_destroy'
qeventdispatcher_glib.cpp:(.text+0x1378): undefined reference to `g_source_unref'
qeventdispatcher_glib.cpp:(.text+0x1384): undefined reference to `g_main_context_unref'
.obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlib::~QEventDispatcherGlib()':
qeventdispatcher_glib.cpp:(.text+0x14a4): undefined reference to `g_source_destroy'
qeventdispatcher_glib.cpp:(.text+0x14ac): undefined reference to `g_source_unref'
qeventdispatcher_glib.cpp:(.text+0x14bc): undefined reference to `g_source_destroy'
qeventdispatcher_glib.cpp:(.text+0x14c4): undefined reference to `g_source_unref'
qeventdispatcher_glib.cpp:(.text+0x15c4): undefined reference to `g_source_remove_poll'
qeventdispatcher_glib.cpp:(.text+0x162c): undefined reference to `g_source_destroy'
qeventdispatcher_glib.cpp:(.text+0x1634): undefined reference to `g_source_unref'
qeventdispatcher_glib.cpp:(.text+0x1644): undefined reference to `g_source_destroy'
qeventdispatcher_glib.cpp:(.text+0x164c): undefined reference to `g_source_unref'
qeventdispatcher_glib.cpp:(.text+0x1658): undefined reference to `g_main_context_unref'
.obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlib::~QEventDispatcherGlib()':
qeventdispatcher_glib.cpp:(.text+0x1780): undefined reference to `g_source_destroy'
qeventdispatcher_glib.cpp:(.text+0x1788): undefined reference to `g_source_unref'
qeventdispatcher_glib.cpp:(.text+0x1798): undefined reference to `g_source_destroy'
qeventdispatcher_glib.cpp:(.text+0x17a0): undefined reference to `g_source_unref'
qeventdispatcher_glib.cpp:(.text+0x18a0): undefined reference to `g_source_remove_poll'
qeventdispatcher_glib.cpp:(.text+0x1908): undefined reference to `g_source_destroy'
qeventdispatcher_glib.cpp:(.text+0x1910): undefined reference to `g_source_unref'
qeventdispatcher_glib.cpp:(.text+0x1920): undefined reference to `g_source_destroy'
qeventdispatcher_glib.cpp:(.text+0x1928): undefined reference to `g_source_unref'
qeventdispatcher_glib.cpp:(.text+0x1934): undefined reference to `g_main_context_unref'
.obj/release-shared-emb-arm/qeventdispatcher_glib.o: In function `QEventDispatcherGlib::registerSocketNotifier(QSoc ketNotifier*)':
qeventdispatcher_glib.cpp:(.text+0x1ac4): undefined reference to `g_source_add_poll'
collect2: ld returned 1 exit status
make[1]: *** [../../lib/libQtCoreE.so.4.6.2] Error 1
make[1]: Leaving directory `/home/trey/Development/BeagleBoard/QT-Tools/qt-everywhere-opensource-src-4.6.2/src/corelib'
make: *** [sub-corelib-make_default-ordered] Error 2
I forgot to include my make.conf file.
====================================
#
# qmake configuration for building with arm-linux-g++
#
include(../../common/g++.conf)
include(../../common/linux.conf)
include(../../common/qws.conf)
# modifications to g++.conf
#Toolchain
#Compiler Flags to take advantage of the ARM architecture
QMAKE_CFLAGS_RELEASE = -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -lgthread-2.0
QMAKE_CXXFLAGS_RELEASE = -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -lgthread-2.0
QMAKE_CC = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/gcc
QMAKE_CXX = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++
QMAKE_LINK = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++
QMAKE_LINK_SHLIB = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/g++
# modifications to linux.conf
QMAKE_AR = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/ar cqs
QMAKE_OBJCOPY = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/objcopy
QMAKE_STRIP = /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/bin/strip
QMAKE_INCDIR += /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/include
QMAKE_INCDIR += /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/include/glib-2.0
QMAKE_INCDIR += /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/lib/glib-2.0/include
QMAKE_INCDIR += /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/include/gstreamer-0.10
QMAKE_INCDIR += /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/include/libxml2
QMAKE_LIBDIR += /usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/lib /
/usr/local/angstrom/arm/arm-angstrom-linux-gnueabi/usr/lib
QMAKE_LIBS += -lgthread-2.0 -v
QT_CFLAGS_GLIB = -lgthread-2.0 -v
QT_LIBS_GLIB = -lgthread-2.0 -v
load(qt_config)