<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hello,<br>
<br>
I copied my cross-compiled file to the arm computer and checked<br>
it with ldd:<br>
ufechner@electrum100:~/00QT-Software/KiteBrain/FirstQT-arm$ ldd
FirstQT <br>
./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)<br>
./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)<br>
./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)<br>
./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)<br>
libQtNetwork.so.4 =>
/usr/local/Trolltech/QtEmbedded-4.7.4-arm/lib/libQtNetwork.so.4
(0x40026000)<br>
libQtCore.so.4 =>
/usr/local/Trolltech/QtEmbedded-4.7.4-arm/lib/libQtCore.so.4
(0x400fe000)<br>
libpthread.so.0 => /lib/libpthread.so.0 (0x403b0000)<br>
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x403ce000)<br>
libm.so.6 => /lib/libm.so.6 (0x404a9000)<br>
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40556000)<br>
libc.so.6 => /lib/libc.so.6 (0x4056a000)<br>
libdl.so.2 => /lib/libdl.so.2 (0x40691000)<br>
librt.so.1 => /lib/librt.so.1 (0x4069c000)<br>
/lib/ld-linux.so.3 (0x40000000)<br>
ufechner@electrum100:~/00QT-Software/KiteBrain/FirstQT-arm$<br>
<br>
Any idea?<br>
<br>
I am using emdebian lenny.<br>
<br>
Regards:<br>
<br>
Uwe Fechner<br>
<br>
<br>
<br>
On 11/03/2011 07:59 PM, Uwe Fechner wrote:
<blockquote cite="mid:4EB2E497.3010003@tudelft.nl" type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
Hello,<br>
<br>
first of all thanks for the fast response to my last question.<br>
<br>
Now my next question:<br>
I try to crosscompile a "Hello world!" console application<br>
for ARM.<br>
<br>
My ARM toolchain is installed in:<br>
/usr/arm-linux-gnueabi<br>
<br>
I use QT-Creator 3.1 32 bit on Ubuntu Linux 10.10.<br>
<br>
In Tools-Options I defined a toolchain of type GCC with<br>
the following compiler path:<br>
/usr/bin/arm-linux-gnueabi-g++ <br>
<br>
For qmake I use the additional argument:<br>
-spec qws/linux-arm-g++ <br>
<br>
Now it compiles, but I get the warning:<br>
<br>
<style type="text/css">p, li { white-space: pre-wrap; }</style>
<p style="margin: 0px; text-indent: 0px;"><span style="color:
rgb(8, 8, 178);">Running build steps for project FirstQT...</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color:
rgb(8, 8, 178);">Configuration unchanged, skipping qmake step.</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color:
rgb(8, 8, 178);">Starting: "/usr/bin/make" -w</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color:
rgb(26, 26, 26);">make: Gehe in Verzeichnis<br>
'/home/ufechner/00QT-Software/KiteBrain/FirstQT-arm'</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color:
rgb(26, 26, 26);">arm-linux-gnueabi-g++ -c -pipe -O3<br>
-march=armv5te -O3 -march=armv5te -O2 -Wall -W -D_REENTRANT<br>
-DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED<br>
-I/usr/local/Trolltech/QtEmbedded-4.7.4-arm/mkspecs/qws/linux-arm-g++<br>
-I../FirstQT<br>
-I/usr/local/Trolltech/QtEmbedded-4.7.4-arm/include/QtCore<br>
-I/usr/local/Trolltech/QtEmbedded-4.7.4-arm/include/QtNetwork<br>
-I/usr/local/Trolltech/QtEmbedded-4.7.4-arm/include -I.<br>
-I../FirstQT -I. -o main.o ../FirstQT/main.cpp</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color:
rgb(26, 26, 26);">arm-linux-gnueabi-g++ -Wl,-O1<br>
-Wl,-rpath,/usr/local/Trolltech/QtEmbedded-4.7.4-arm/lib -o<br>
FirstQT main.o -L/usr/local/Trolltech/QtEmbedded-4.7.4-arm/lib<br>
-lQtNetwork -L/usr/local/Trolltech/QtEmbedded-4.7.4-arm/lib<br>
-lQtCore -lpthread </span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color:
rgb(178, 8, 8);">/usr/lib/gcc/arm-linux-gnueabi/4.3.2/../../../../arm-linux-gnueabi/bin/ld:<br>
warning: libc.so, needed by<br>
/usr/lib/gcc/arm-linux-gnueabi/4.3.2/libgcc_s.so, not found
(try<br>
using -rpath or -rpath-link)</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color:
rgb(26, 26, 26);">make: Verlasse Verzeichnis<br>
'/home/ufechner/00QT-Software/KiteBrain/FirstQT-arm'</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color:
rgb(8, 8, 178);">The process "/usr/bin/make" exited normally.<br>
<br>
</span></p>
<p style="margin: 0px; text-indent: 0px;"><span style="color:
rgb(8, 8, 178);"><br>
<br>
</span></p>
<font color="#000000"><span style="color: rgb(8, 8, 178);">I tried
to set the rpath in different ways, but it doesn t help.<br>
<br>
The correct version of libc.so is located in:<br>
/usr/arm-linux-gnueabi/lib/<br>
<br>
Any ideas?<br>
<br>
Best regards:<br>
<br>
Uwe Fechner<br>
</span></font><span style="color: rgb(8, 8, 178);"></span><br>
<br>
<br>
<br>
<br>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Qt-creator mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qt-creator@qt-project.org">Qt-creator@qt-project.org</a>
<a class="moz-txt-link-freetext" href="http://lists.qt-project.org/mailman/listinfo/qt-creator">http://lists.qt-project.org/mailman/listinfo/qt-creator</a>
</pre>
</blockquote>
<br>
</body>
</html>