Reply
Thread Tools
Posts: 2 | Thanked: 2 times | Joined on Feb 2010
#1
I have tried to compile qt project under DIABLO_ARMEL., but get errors:

Commands: >qmake -project
>qmake ./testapp.pro
>make

Console answer:
g++ -Wl,-O1 -o testapp testapp.o -L/usr/lib -lQtGui -lQtCore -lpthread
/scratchbox/compilers/cs2005q3.2-glibc2.5-arm/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4/../../../../arm-none-linux-gnueabi/bin/ld: testapp.o: Relocations in generic ELF (EM: 3)
/scratchbox/compilers/cs2005q3.2-glibc2.5-arm/bin/../lib/gcc/arm-none-linux-gnueabi/3.4.4/../../../../arm-none-linux-gnueabi/bin/ld: testapp.o: Relocations in generic ELF (EM: 3)
testapp.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [testapp] Error 1


Target settings is:

>sb-conf show DIABLO_ARMEL
Compiler: cs2005q3.2-glibc2.5-arm
Devkits: perl debian-etch maemo3-tools cputransp
CPU-transparency: /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.2-sb2

This code under DIABLO_X86 works good. Qt libs: libqt4-core, libqt4-dev and libqt4-gui installed.
Help please, what can be a problem?
 
Posts: 2 | Thanked: 2 times | Joined on Feb 2010
#2
This error:
testapp.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [testapp] Error 1


occured if project was compiled before for anothe platform. It's need command: 'make claen' and after that: 'make'.
 

The Following 2 Users Say Thank You to closedeed For This Useful Post:
Posts: 415 | Thanked: 732 times | Joined on Jan 2009 @ Finland
#3
Originally Posted by closedeed View Post
This error:
testapp.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [testapp] Error 1


occured if project was compiled before for anothe platform. It's need command: 'make claen' and after that: 'make'.
If you also need to get rid of the generated makefiles you need to run
Code:
make distclean
After the you need to run qmake again to generate the makefiles before building it like
Code:
qmake && make
 

The Following User Says Thank You to timoph For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 15:00.