<div dir="ltr">Thanks Jonas.<br><br>doing:<br>make OPT='dFPC_ARMEL -dFPC_ABI_EABI -Xd' OS=TARGET=linux CPU_TARGET=arm zipdistinstall<br><br>does create a cross compile, but does not pack the ppcrossarm . Is there a way I can make a cross compiler zipinstall to install (at the end) as a package in my linux ?<br>
<br>Thanks,<br>Ido<br><br clear="all"><a href="http://ik.homelinux.org/">http://ik.homelinux.org/</a><br>
<br><br><div class="gmail_quote">On Mon, Nov 23, 2009 at 3:06 PM, Jonas Maebe <span dir="ltr"><<a href="mailto:jonas.maebe@elis.ugent.be">jonas.maebe@elis.ugent.be</a>></span> 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="im"><br>
On 23 Nov 2009, at 13:58, ik wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm trying to cross compile FPC 2.5.1 in Linux 64 bit (in Arch Linux) to arm<br>
(eabi) cpu.<br>
When I'm using<br>
<br>
make CPUT_TARGET=arm OS=TARGET=linux all<br>
</blockquote>
<br></div>
That should be CPU_TARGET, not CPUT_TARGET, and OS_TARGET instead of OS=TARGET<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The make file build an x86_64 units and not arm units. The result is also<br>
not ppcrossarm but ppcx64.<br>
</blockquote>
<br></div>
That's probably because of the above.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Only when I'm doing:<br>
make OPT='-dFPC_ARMEL -dFPC_ABI_EABI -Xd -Tlinux -CaEABI -Op arm'<br>
CROSSCOMPILE=1 CPU_TARGET=arm OS_TARGET=linux<br>
</blockquote>
<br></div>
I think you have to add at least OPT='-dFPC_ARMEL -dFPC_ABI_EABI -Xd' to the first command anyway, otherwise you'll probably get an OABI instead of an EABI compiler (and the -Xd makes sure the compiler ignores the standard search paths). The "-Op arm" is a bogus parameter, so remove that (-Op expects a cpu type right after the p, without a space; right now, you are not setting any cpu type, and passing "arm" as separate parameter to the compiler).<br>
<br>
If ain't broken, don't try to fix it. The second command works (and I think the only things that may be superfluous, when you compile under linux, are the "-Tlinux -Op arm" parameters).<br><font color="#888888">
<br>
<br>
Jonas</font><div><div></div><div class="h5"><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></div>