[Lazarus] ARMV7

Sven Barth pascaldragon at googlemail.com
Fri May 17 16:50:37 CEST 2013

Am 17.05.2013 14:32, schrieb Kjow:
> 2013/5/17 Sven Barth <pascaldragon at googlemail.com 
> <mailto:pascaldragon at googlemail.com>>
>>     I tried with CROSSOPT="-CfSOFT -OoFASTMATH -CpARMV7A" and it
>>     works! Lazarus can build ARMV7A projects, but no luck with VFPV3.
>     Thinking about it a bit the problem is not the compiler or the
>     units, but the settings in Lazarus. If you compiled the RTL with
>     VFPV3 and ARMV7A you also need to apply these settings to other
>     units you compile (the compiler won't set them automatically). So
>     you either need to add "-CfSOFT -CpARMV7A" (and "-OoFASTMATH" if
>     you need it...) to your project settings, the settings of all
>     packages you use and the IDE settings which are used to recompile
>     the FCLLaz and LCL packages or you add the options to your fpc.cfg
>     in an "IFDEF CPUARM ... ENDIF" block.
> Thank you for reply, but I'm already doing this... as I wrote in my 
> latest email:
> "Everytime, I recompile FPC with relative options (erasing old 
> compiled arm-android units) and edit relative project parameters, e.g.:
> FPC:
> make ... CROSSOPT="-CfSOFT -OoFASTMATH -CpARMV6" ...
> Lazarus:
> project->project options-> Other-> -CfSOFT -OoFASTMATH -CpARMV6
> This works well.
> FPC:
> make ... CROSSOPT="-CfVFPV2 -OoFASTMATH -CpARMV7A" ...
> Lazarus:
> project->project options-> Other-> -CfVFPV2 -OoFASTMATH -CpARMV7A
> This doesn't work."
> So, it always works with -CfSOFT (armv6 or armv7a), but never with 
> -CfVFPV2, -CfVFPV3, -CfVFPV3_D16, etc
And as I wrote in my mail you need to apply this to all other packages 
AND the IDE options (because these are used for the packages FCLLaz and 
LCL) as well (or add it to your fpc.cfg). You are NOT doing this by 
adding the options to Other.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130517/2595dd8a/attachment-0003.html>

More information about the Lazarus mailing list