[fpc-pascal] Compile for WinCE 7, target ARM, CPU Cortex-A9
Sven Barth
pascaldragon at googlemail.com
Fri Apr 5 17:07:25 CEST 2019
LacaK <lacak at zoznam.sk> schrieb am Fr., 5. Apr. 2019, 14:56:
>
>
>>
>> Note that you probably don't need two different cross compilers if your
>> cpu-OS target is the same
>>
>> Target CPU family is same: "arm", but Target processor is not the same:
>> "ARMv4" versus "ARMv7" ...
>>
>> So I do not know if this requires two pre-compiled cross-compilers or not?
>>
> You only need different compilers if you have different ABIs (e.g. Soft
> Float vs. Hard Float). For WinCE that isn't applicable however.
>
> So it does not matter how I build cross-compiler using FpcUpDeluxe: wheter
> I use "-Cparmv5" or "-Cparmv7A" ?
>
Correct.
Then there is still problem with precompiled RTL/packages?
>
> Because when I only change "Target processor" (in Lazarus build using
> FpcUpDeluxe) I can compile application, but I can not run it on target
> system (so I guess, that resulting EXE is not compiled for target
> processor).
>
> When I add to Custom options: -CfVFPV2 then I get error while compiling:
> Fatal: Can't find unit system used by Test1
>
> When I download and install default Lazarus and cross-compiler then when I
> change "Target processor" to "ARMv5" or "ARMv7A" I get: "project1.lpr(22,0)
> Error: Error while assembling exitcode 1"
>
As said by Christo you need to select the correct set of compiled units.
Also you need to select the correct processor type when building your
application.
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20190405/bd1811ca/attachment.html>
More information about the fpc-pascal
mailing list