PDA

View Full Version : link error when cross-compiling qtopia 4.2.0



ghellman
9th February 2007, 05:13
I am trying to develop a qtopia application that will run on an embedded ARM platform. I decided to build qtopia-opensource-src-4.2.0 under RHEL4.0.

I ran "/configure -embedded arm -qconfig qpe -qt-gif
-qvfb -depths 4,8,12,16 -xplatform qws/linux-arm-g++" with no problems, then "make"

All went well for about 30min. Then, after entering qtopia-opensource-src-4.2.0/src/gui and building everything there, the linker runs to put together libQtGui.so.4.2.2, and I get this:

.obj/release-shared-emb-arm/qwssignalhandler.o:../../include/QtCore/../../s
rc/corelib/tools/qvector.h:609: multiple definition of `QWSSignalHandler::instance()::this_instance'
.obj/release-shared-emb-arm/qlock.o:embedded/qlock.cpp:287: first defined here
collect2: ld returned 1 exit status
make[2]: *** [../../lib/libQtGui.so.4.2.2] Error 1
make[2]: Leaving directory `/home/ghellman/qtopia-opensource-src-4.2.0/src/gui'
make[1]: *** [sub-gui-make_default] Error 2
make[1]: Leaving directory `/home/ghellman/qtopia-opensource-src-4.2.0/src'
make: *** [sub-src-make_default-ordered] Error 2

I tried to find multiple definitions, but was unable to.

This was a clean build, freshly downloaded and untarred. There is no other QT installed in this environment. I am using GNU 3.4.4 for the target side (cross compiler) and 3.4.6 for the host side.

Can someone please help me out?

Thanks,
Gil