<div dir="ltr"><div dir="ltr"><div dir="ltr"></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 4, 2019 at 1:13 PM LacaK <<a href="mailto:lacak@zoznam.sk">lacak@zoznam.sk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Answering my own question:<br>
<br>
When I build cross compiler using FpcUpDeluxe, where I set "Cross Build <br>
Options Override" to "-Cparmv7A" (The Cortex -A9 cores implement the <br>
ARMv7-A architecture) then I can sucessfully compile my application for <br>
WinCE 7.<br>
<br>
Drawback is that I must now maintain 2 FPC installations/cross-compilers <br>
(Win32-WinCE): one for targer WinCE 5,6 with CPUs ARMv5 and another for <br>
WinCE 7 with ARMv7 CPU (It is not sufficient to setup build modes in <br>
project ... also all units must be pre-compiled ... at least I do not <br>
know how to bypass this limitation)<br>
<br>
-Laco.<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/cgi-bin/mailman/listinfo/fpc-pascal" rel="noreferrer" target="_blank">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a></blockquote><div><br></div><div>I suspect your problem is related to this feature request: <a href="https://bugs.freepascal.org/view.php?id=30294">https://bugs.freepascal.org/view.php?id=30294</a><br></div><div><br></div><div>Note that you probably don't need two different cross compilers if your cpu-OS target is the same, only two different versions of the RTL (and perhaps packages) in a way that enables the compiler to pick the correct version.  For avr-embedded I change the unit output folder name to avr-embedded-SUBARCH and add the subarch macro to fpc.cfg.  For arm you may also need to handle different ABI versions (I don't cross compile for arm).<br></div></div></div></div>