Am 15.05.2013 16:07, schrieb Kjow:
2013/5/14 Kjow <[email protected] <mailto:[email protected]>>
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?
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
-OoFASTMATH -CpARMV7A" )
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
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.
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.
Regards,
Sven
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus