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

Uwe Fechner u.fechner at tudelft.nl
Thu Nov 3 21:09:48 CET 2011


Hello,

I copied my cross-compiled file to the arm computer and checked
it with ldd:
ufechner at electrum100:~/00QT-Software/KiteBrain/FirstQT-arm$ ldd FirstQT
./FirstQT: /lib/libc.so.6: version `GLIBC_2.10' not found (required by 
/usr/local/Trolltech/QtEmbedded-4.7.4-arm/lib/libQtNetwork.so.4)
./FirstQT: /usr/lib/libstdc++.so.6: version `CXXABI_ARM_1.3.3' not found 
(required by 
/usr/local/Trolltech/QtEmbedded-4.7.4-arm/lib/libQtNetwork.so.4)
./FirstQT: /usr/lib/libstdc++.so.6: version `CXXABI_ARM_1.3.3' not found 
(required by /usr/local/Trolltech/QtEmbedded-4.7.4-arm/lib/libQtCore.so.4)
./FirstQT: /lib/libc.so.6: version `GLIBC_2.9' not found (required by 
/usr/local/Trolltech/QtEmbedded-4.7.4-arm/lib/libQtCore.so.4)
     libQtNetwork.so.4 => 
/usr/local/Trolltech/QtEmbedded-4.7.4-arm/lib/libQtNetwork.so.4 (0x40026000)
     libQtCore.so.4 => 
/usr/local/Trolltech/QtEmbedded-4.7.4-arm/lib/libQtCore.so.4 (0x400fe000)
     libpthread.so.0 => /lib/libpthread.so.0 (0x403b0000)
     libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x403ce000)
     libm.so.6 => /lib/libm.so.6 (0x404a9000)
     libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40556000)
     libc.so.6 => /lib/libc.so.6 (0x4056a000)
     libdl.so.2 => /lib/libdl.so.2 (0x40691000)
     librt.so.1 => /lib/librt.so.1 (0x4069c000)
     /lib/ld-linux.so.3 (0x40000000)
ufechner at electrum100:~/00QT-Software/KiteBrain/FirstQT-arm$

Any idea?

I am using emdebian lenny.

Regards:

Uwe Fechner



On 11/03/2011 07:59 PM, Uwe Fechner wrote:
> 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
>
>
>
>
>
>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator

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


More information about the Qt-creator mailing list