Hi Luca<br><br>Please give me the full command used for cross compiling with all the options.<br><br>Is it "-O-" or just "-O"?<br><br>I am able to run the ppcarm which was generated by cross compiling, on the qemu system, and am able to compile and run a siple writeln app. But when copying and executing to the ARM board it justs hangs till i CRTL-C.<br>
regards<br><br>Nataraj<br><br><div class="gmail_quote">On Thu, Jun 5, 2008 at 12:55 AM, Luca Olivetti <<a href="mailto:luca@ventoso.org">luca@ventoso.org</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">En/na Luca Olivetti ha escrit:<br>
<br>
</div><div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
runs but it doesn't print anything, neither under scratchbox nor on the tablet.<br>
</blockquote>
<br></div>
Thanks to Henry Vermaak I rebuilt the cross compiler with -O- and now it prints "hello" :-)<div class="Ih2E3d"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I'm trying to cross-compile the gtk2 example but it seems the compiler is ignoring -Xd and -Xr:<br>
</blockquote>
<br>
<br></div>
Well, the compiler it's passing as -rpath what I put in -Xr but the linker is ignoring it (at least it seems so).<br>
<br>
Anyway, I tried passing -k'L /path/where/I/copied/all/the/target/libraries' and it's progressing (it isn't finding some libraries that are there, like libc) but I see a bunch of messages like these:<br>
<br>
/home/luca/crossbinutils/bin/armel-linux-ld: ERROR: Source object /scratchbox/users/luca/targets/CHINOOK_ARMEL/pippo/<a href="http://libgobject-2.0.so" target="_blank">libgobject-2.0.so</a> has EABI version 4, but target packages/gtk2/examples/helloworld/helloworld has EABI version 0<br>
/home/luca/crossbinutils/bin/armel-linux-ld: failed to merge target specific data of file /scratchbox/users/luca/targets/CHINOOK_ARMEL/pippo/<a href="http://libgobject-2.0.so" target="_blank">libgobject-2.0.so</a><br>
/home/luca/crossbinutils/bin/armel-linux-ld: ERROR: Source object /scratchbox/users/luca/targets/CHINOOK_ARMEL/pippo/<a href="http://libglib-2.0.so" target="_blank">libglib-2.0.so</a> has EABI version 4, but target packages/gtk2/examples/helloworld/helloworld has EABI version 0<br>
/home/luca/crossbinutils/bin/armel-linux-ld: failed to merge target specific data of file /scratchbox/users/luca/targets/CHINOOK_ARMEL/pippo/<a href="http://libglib-2.0.so" target="_blank">libglib-2.0.so</a><div><div></div>
<div class="Wj3C7c"><br>
<br>
<br>
Bye<br>
-- <br>
Luca<br>
_______________________________________________<br>
fpc-pascal maillist - <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal" target="_blank">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a><br>
</div></div></blockquote></div><br>