PDA

View Full Version : Problem with QT-Everywhere when compiling phonon



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)

Thành Viên Mới
3rd February 2012, 07:38
yeah, i also have issue as you



/configure \
-opensource \
-prefix $(INSTALL_DIR) \
-$(QT_BUILD_TYPE) \
-embedded mips \
-multimedia \
-qt-libpng \
-qt-libtiff \
-qt-libjpeg \
-qt-libmng \
-I /tango3/v4.8.0-gst-lpb-cehtml-dev/install_gstreamer/include/glib-2.0 \
-I /tango3/v4.8.0-gst-lpb-cehtml-dev/install_gstreamer/lib/glib-2.0/include \
-I /tango3/v4.8.0-gst-lpb-cehtml-dev/install_gstreamer/include/gstreamer-0.10 \
-L /tango3/v4.8.0-gst-lpb-cehtml-dev/install_gstreamer/lib \
-L /tango3/v4.8.0-gst-lpb-cehtml-dev/install_gstreamer/lib/gstreamer-0.10 \
-phonon \
-webkit \
-xplatform $(QT_PLATFORM) \
-little-endian \
-reduce-relocations \
-no-nis \
-no-cups \
-no-dbus \
-openssl-linked \
-qt-freetype \
-plugin-gfx-directfb \
-plugin-gfx-vnc \
-qt-kbd-tty \
-qt-kbd-linuxinput \
-qt-mouse-pc \
-qt-mouse-linuxinput \
-no-gfx-transformed \
-no-gfx-multiscreen \
-no-qt3support \
-no-accessibility \
-no-xmlpatterns \
-nomake tools \
-nomake docs \
-nomake examples \
-nomake translations \
-fast
my error messsage:



You have not explicitly asked to use pkg-config and are cross-compiling.
pkg-config will not be used to automatically query cflag/lib parameters for
dependencies

../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/floatmath/floatmath.cpp:44: warning: unused parameter 'argc'
../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/floatmath/floatmath.cpp:44: warning: unused parameter 'argv'
cc1plus: error: unrecognized command line option "-mmmx"
make[1]: *** [mmx.o] Error 1
cc1plus: error: unrecognized command line option "-m3dnow"
make[1]: *** [3dnow.o] Error 1
cc1plus: error: unrecognized command line option "-msse"
make[1]: *** [sse.o] Error 1
cc1plus: error: unrecognized command line option "-msse2"
make[1]: *** [sse2.o] Error 1
cc1plus: error: unrecognized command line option "-msse3"
make[1]: *** [sse3.o] Error 1
cc1plus: error: unrecognized command line option "-mssse3"
make[1]: *** [ssse3.o] Error 1
cc1plus: error: unrecognized command line option "-msse4.1"
make[1]: *** [sse4_1.o] Error 1
cc1plus: error: unrecognized command line option "-msse4.2"
make[1]: *** [sse4_2.o] Error 1
cc1plus: error: unrecognized command line option "-mavx"
make[1]: *** [avx.o] Error 1
../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/db2/db2.cpp:42:20: error: sqlcli.h: No such file or directory
../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/db2/db2.cpp:43:21: error: sqlcli1.h: No such file or directory
make[1]: *** [db2.o] Error 1
../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/ibase/ibase.cpp:42:19: error: ibase.h: No such file or directory
make[1]: *** [ibase.o] Error 1
../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/mysql/mysql.cpp:42:19: error: mysql.h: No such file or directory
make[1]: *** [mysql.o] Error 1
../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/mysql/mysql.cpp:42:19: error: mysql.h: No such file or directory
make[1]: *** [mysql.o] Error 1
../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/oci/oci.cpp:42:17: error: oci.h: No such file or directory
make[1]: *** [oci.o] Error 1
../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/odbc/odbc.cpp:45:17: error: sql.h: No such file or directory
../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/odbc/odbc.cpp:46:20: error: sqlext.h: No such file or directory
make[1]: *** [odbc.o] Error 1
../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/iodbc/iodbc.cpp:42:17: error: sql.h: No such file or directory
../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/iodbc/iodbc.cpp:43:20: error: sqlext.h: No such file or directory
make[1]: *** [iodbc.o] Error 1
../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/psql/psql.cpp:42:22: error: libpq-fe.h: No such file or directory
../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/psql/psql.cpp: In function 'int main(int, char**)':
../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/psql/psql.cpp:46: error: 'PQescapeBytea' was not declared in this scope
../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/psql/psql.cpp:47: error: 'PQunescapeBytea' was not declared in this scope
make[1]: *** [psql.o] Error 1
../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/sqlite2/sqlite2.cpp:42:20: error: sqlite.h: No such file or directory
make[1]: *** [sqlite2.o] Error 1
../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/tds/tds.cpp:42:22: error: sybfront.h: No such file or directory
../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/tds/tds.cpp:43:19: error: sybdb.h: No such file or directory
make[1]: *** [tds.o] Error 1
../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/glib/glib.cpp: In function 'int main(int, char**)':
../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/glib/glib.cpp:55: warning: 'pollfd' is used uninitialized in this function
glib.o: In function `main':
/tango3/qt-build-release/config.tests/unix/glib/../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/glib/glib.cpp:51: undefined reference to `g_threads_got_initialized'
/tango3/qt-build-release/config.tests/unix/glib/../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/glib/glib.cpp:51: undefined reference to `g_threads_got_initialized'
/tango3/qt-build-release/config.tests/unix/glib/../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/glib/glib.cpp:52: undefined reference to `g_thread_init'
/tango3/qt-build-release/config.tests/unix/glib/../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/glib/glib.cpp:52: undefined reference to `g_thread_init'
/tango3/qt-build-release/config.tests/unix/glib/../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/glib/glib.cpp:53: undefined reference to `g_main_context_default'
/tango3/qt-build-release/config.tests/unix/glib/../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/glib/glib.cpp:53: undefined reference to `g_main_context_default'
/tango3/qt-build-release/config.tests/unix/glib/../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/glib/glib.cpp:54: undefined reference to `g_source_new'
/tango3/qt-build-release/config.tests/unix/glib/../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/glib/glib.cpp:54: undefined reference to `g_source_new'
/tango3/qt-build-release/config.tests/unix/glib/../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/glib/glib.cpp:55: undefined reference to `g_source_add_poll'
/tango3/qt-build-release/config.tests/unix/glib/../../../../v4.8.0-gst-lpb-cehtml-dev/config.tests/unix/glib/glib.cpp:55: undefined reference to `g_source_add_poll'
collect2: ld returned 1 exit status
make[1]: *** [glib] Error 1
make: *** [/tango3/v4.8.0-gst-lpb-cehtml-dev/../qt-build-release/.configured] Error 1

oxangen
23rd March 2012, 00:51
hey, did you guys figure them out? i got the same problem too...