[Lazarus] ARMV7

Marc Santhoff M.Santhoff at web.de
Fri May 17 11:39:06 CEST 2013

Am Mittwoch, den 15.05.2013, 16:07 +0200 schrieb Kjow:
> 2013/5/14 Kjow <antispammoni at gmail.com>
> > Hi all,
> >
> > I'm trying to build androidlcl test project with ARMV7 VFPV3, but there
> > are problems.
> >
> [cut]
> > Can I solve both ARMV7 and VFPV3?
> >

Since noone answers you - the pros must be away for holidays or so ...

But beware, I'm really no expert in cross compiling.

> Well, about ARMV7 I think I have understood now. According to
> http://en.wikipedia.org/wiki/ARM_architecture I need to pass -CpARMV7A
> options, indeed in this way FPC compiles well. ( CROSSOPT="-CfVFPV3
> The big issue is that Lazarus won't compile androidlcl test project if FPC
> is compiled with -CfVFPV3 "crossoption"...
> Hint: Start of reading config file
> C:\Develop\fpc\2.7.x\bin\i386-win32\fpc.cfg
> Hint: End of reading config file C:\Develop\fpc\2.7.x\bin\i386-win32\fpc.cfg
> Free Pascal Compiler version 2.7.1 [2013/05/15] for arm
> Copyright (c) 1993-2013 by Florian Klaempfl and others
> Target OS: Android for ARMEL
> Compiling fcllaz.pas
> PPU Loading C:\Develop\fpc\2.7.x\units\arm-android\rtl\system.ppu
> Trying to use a unit which was compiled with a different FPU mode

I think this message says, you will have to recompile the RTL using the
new set of compiler options you have found to work.

IIRC cd'ing to <...>\arm-android\rtl and doing a "make clean all"
_could_ be sufficient.

HTH anyways,

> PPU Loading C:\Develop\fpc\2.7.x\\units\arm-android\rtl\system.ppu
> Trying to use a unit which was compiled with a different FPU mode
> fcllaz.pas(0,0) Fatal: Can not find system used by fcllaz,
> ppu=..\..\..\fpc\2.7.x\units\arm-android\rtl\system.ppu
> I tried with CROSSOPT="-CfSOFT -OoFASTMATH -CpARMV7A" and it works! Lazarus
> can build ARMV7A projects, but no luck with VFPV3.
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Marc Santhoff <M.Santhoff at web.de>

More information about the Lazarus mailing list