PDA

View Full Version : qt-embedded cross compilation error help



aj2903
30th September 2008, 10:32
hii

i need help in qt-embededd-linux-opensource-4.4.0.
i want cross compile qt application and run it on PXA320 ARM XScale Processor.

My ./configure option as follows:
./configure -embedded arm -little-endian

Note :I have successfully run ./configure and make command.

while using gmake-install following error occurs:

arm-linux-gnueabi-g++ -fno-exceptions -Wl,-rpath,/usr/local/Trolltech/QtEmbedded-4.4.1-arm/lib -Wl,-rpath,/usr/local/Trolltech/QtEmbedded-4.4.1/lib -o screenshot .obj/release-static-emb-arm/main.o .obj/release-static-emb-arm/screenshot.o .obj/release-static-emb-arm/moc_screenshot.o -L//home/ajinkya/qtemb/qt/lib -lQtGui -L//home/ajinkya/qtemb/qt/lib -lQtNetwork -lQtCore -lm -lrt -ldl -lpthread
/home/ajinkya/qtemb/qt/lib/libQtCore.so: undefined reference to `_dl_hwcap'
/home/ajinkya/qtemb/qt/lib/libQtCore.so: undefined reference to `__dlsym'
/home/ajinkya/qtemb/qt/lib/libQtCore.so: undefined reference to `__dlopen'
/home/ajinkya/qtemb/qt/lib/libQtCore.so: undefined reference to `__dlclose'
/home/ajinkya/qtemb/qt/lib/libQtCore.so: undefined reference to `__dlerror'

collect2: ld returned 1 exit status


Please helpp

zensei
27th October 2008, 08:41
It looks like you try to link arm code with host libraries.

i.e. in you command:
1. /usr/local/Trolltech/QtEmbedded-4.4.1-arm/lib - path to the arm libraries
2. /usr/local/Trolltech/QtEmbedded-4.4.1/lib - path to the host

try to compile and link without 1 line.

Maybe it will help.