<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Am 15.05.2013 16:07, schrieb Kjow:<br>
</div>
<blockquote
cite="mid:CADatRmi3Nit2Gi_cdTj1HHM4pSrs=WG7AwUExdDEptqi80JBZg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">2013/5/14 Kjow <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:antispammoni@gmail.com" target="_blank">antispammoni@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div dir="ltr">Hi all,<br>
<br>
I'm trying to build androidlcl test project with ARMV7
VFPV3, but there are problems.<br>
</div>
</blockquote>
<div><br>
</div>
<div>[cut] <br>
</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div dir="ltr">Can I solve both ARMV7 and VFPV3?<br>
</div>
</blockquote>
</div>
<br>
</div>
Well, about ARMV7 I think I have understood now. According to <a
moz-do-not-send="true"
href="http://en.wikipedia.org/wiki/ARM_architecture">http://en.wikipedia.org/wiki/ARM_architecture</a>
I need to pass -CpARMV7A options, indeed in this way FPC
compiles well. ( CROSSOPT="-CfVFPV3 -OoFASTMATH -CpARMV7A" )<br>
<br>
The big issue is that Lazarus won't compile androidlcl test
project if FPC is compiled with -CfVFPV3 "crossoption"...<br>
<br>
Hint: Start of reading config file
C:\Develop\fpc\2.7.x\bin\i386-win32\fpc.cfg<br>
Hint: End of reading config file
C:\Develop\fpc\2.7.x\bin\i386-win32\fpc.cfg<br>
Free Pascal Compiler version 2.7.1 [2013/05/15] for arm<br>
Copyright (c) 1993-2013 by Florian Klaempfl and others<br>
Target OS: Android for ARMEL<br>
Compiling fcllaz.pas<br>
PPU Loading
C:\Develop\fpc\2.7.x\units\arm-android\rtl\system.ppu<br>
Trying to use a unit which was compiled with a different FPU
mode<br>
PPU Loading
C:\Develop\fpc\2.7.x\\units\arm-android\rtl\system.ppu<br>
Trying to use a unit which was compiled with a different FPU
mode<br>
fcllaz.pas(0,0) Fatal: Can not find system used by fcllaz,
ppu=..\..\..\fpc\2.7.x\units\arm-android\rtl\system.ppu<br>
<br>
I tried with CROSSOPT="-CfSOFT -OoFASTMATH -CpARMV7A" and it
works! Lazarus can build ARMV7A projects, but no luck with
VFPV3.</div>
<br>
</blockquote>
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.<br>
<br>
Regards,<br>
Sven<br>
</body>
</html>