[Qt-creator] Cross-compiling for ARM with qt creator
Uwe Fechner
u.fechner at tudelft.nl
Thu Nov 3 19:59:35 CET 2011
Hello,
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:
/usr/arm-linux-gnueabi
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:
/usr/bin/arm-linux-gnueabi-g++
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
'/home/ufechner/00QT-Software/KiteBrain/FirstQT-arm'
arm-linux-gnueabi-g++ -c -pipe -O3 -march=armv5te -O3 -march=armv5te -O2
-Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB
-DQT_SHARED
-I/usr/local/Trolltech/QtEmbedded-4.7.4-arm/mkspecs/qws/linux-arm-g++
-I../FirstQT -I/usr/local/Trolltech/QtEmbedded-4.7.4-arm/include/QtCore
-I/usr/local/Trolltech/QtEmbedded-4.7.4-arm/include/QtNetwork
-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
/usr/lib/gcc/arm-linux-gnueabi/4.3.2/../../../../arm-linux-gnueabi/bin/ld:
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
'/home/ufechner/00QT-Software/KiteBrain/FirstQT-arm'
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:
/usr/arm-linux-gnueabi/lib/
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