[Qt-creator] Cross-compiling for ARM with qt creator

Uwe Fechner u.fechner at tudelft.nl
Thu Nov 3 19:59:35 CET 2011


first of all thanks for the fast response to my last question.

Now my next question:
I try to crosscompile a "Hello world!" console application
for ARM.

My ARM toolchain is installed in:

I use QT-Creator 3.1 32 bit on Ubuntu Linux 10.10.

In Tools-Options I defined a toolchain of type GCC with
the following compiler path:

For qmake I use the additional argument:
-spec qws/linux-arm-g++

Now it compiles, but I get the warning:

Running build steps for project FirstQT...

Configuration unchanged, skipping qmake step.

Starting: "/usr/bin/make" -w

make: Gehe in Verzeichnis 

arm-linux-gnueabi-g++ -c -pipe -O3 -march=armv5te -O3 -march=armv5te -O2 
-I../FirstQT -I/usr/local/Trolltech/QtEmbedded-4.7.4-arm/include/QtCore 
-I/usr/local/Trolltech/QtEmbedded-4.7.4-arm/include -I. -I../FirstQT -I. 
-o main.o ../FirstQT/main.cpp

arm-linux-gnueabi-g++ -Wl,-O1 
-Wl,-rpath,/usr/local/Trolltech/QtEmbedded-4.7.4-arm/lib -o FirstQT 
main.o -L/usr/local/Trolltech/QtEmbedded-4.7.4-arm/lib -lQtNetwork 
-L/usr/local/Trolltech/QtEmbedded-4.7.4-arm/lib -lQtCore -lpthread

warning: libc.so, needed by 
/usr/lib/gcc/arm-linux-gnueabi/4.3.2/libgcc_s.so, not found (try using 
-rpath or -rpath-link)

make: Verlasse Verzeichnis 

The process "/usr/bin/make" exited normally.

I tried to set the rpath in different ways, but it doesn t help.

The correct version of libc.so is located in:

Any ideas?

Best regards:

Uwe Fechner

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20111103/21ffec1f/attachment.html>

More information about the Qt-creator mailing list