<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 17.05.2013 14:32, schrieb Kjow:<br>
</div>
<blockquote
cite="mid:CADatRmgFKSFVRqO4kJ1CCYjyCGXj6Kobn4o8vcoHx7UDurBcHQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">2013/5/17 Sven Barth <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:pascaldragon@googlemail.com"
target="_blank">pascaldragon@googlemail.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 text="#000000" bgcolor="#FFFFFF">
<div> </div>
<div>
<div>
<blockquote type="cite">I tried with
CROSSOPT="-CfSOFT -OoFASTMATH -CpARMV7A" and it
works! Lazarus can build ARMV7A projects, but no
luck with VFPV3. <br>
</blockquote>
</div>
</div>
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>
</div>
</blockquote>
<div><br>
</div>
<div>Thank you for reply, but I'm already doing this... as I
wrote in my latest email:<br>
<br>
"Everytime, I recompile FPC with relative options (erasing
old compiled arm-android units) and edit relative project
parameters, e.g.:<br>
<br>
<div class="gmail_extra">FPC:<br>
</div>
<div class="gmail_extra">make ... CROSSOPT="-CfSOFT
-OoFASTMATH -CpARMV6" ...<br>
</div>
<div class="gmail_extra">Lazarus:<br>
</div>
<div class="gmail_extra">
project->project options-> Other-> -CfSOFT
-OoFASTMATH -CpARMV6<br>
<br>
</div>
<div class="gmail_extra">This works well.<br>
</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">FPC:<br>
</div>
<div class="gmail_extra">
<div class="gmail_extra">make ... CROSSOPT="-CfVFPV2
-OoFASTMATH -CpARMV7A" ...<br>
</div>
<div class="gmail_extra">Lazarus:<br>
</div>
<div class="gmail_extra">project->project
options-> Other-> -CfVFPV2 -OoFASTMATH -CpARMV7A</div>
<br>
</div>
This doesn't work."<br>
<br>
</div>
<div>So, it always works with -CfSOFT (armv6 or armv7a), but
never with -CfVFPV2, -CfVFPV3, -CfVFPV3_D16, etc<br>
</div>
</div>
</div>
</div>
</blockquote>
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.<br>
<br>
Regards,<br>
Sven<br>
</body>
</html>