Hi all,

I'm trying to build androidlcl test project with ARMV7 VFPV3, but there are
problems.

First of all, I'm using Lazarus 1.1 (svn trunk) and FPC 2.7.1 (svn trunk)
and I can compile that project and build apk from Windows 8 pro well.
My Samsung Galaxy Note 1 can execute androidlcl... but very-very slowly.

I compiled FPC with this command:

make clean crossall crossinstall OS_TARGET=android CPU_TARGET=arm
CROSSOPT="-CfSOFT -OoFASTMATH -CpARMV6" INSTALL_PREFIX=C:\Develop\fpc\2.7.x
PP=c:\Develop\fpc\2.6.0\bin\i386-win32\fpc.exe
BINDIR=C:\Android\NDK\android-ndk-r8e\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows-x86_64\arm-linux-androideabi\bin
CROSSBINDIR=C:\Android\NDK\android-ndk-r8e\toolchains\arm-linux-androideabi-4.4.3\prebuilt\windows-x86_64\bin
BINUTILSPREFIX=arm-linux-androideabi-

It compiles like a charm.

Trying other parameters for CROSSOPT there are problems... I can't build
FPC with -CpARMV7 (error on FPC compiling) and if I use only
CROSSOPT="-CfVFPV3 -OoFASTMATH", FPC compiles well, but lazarus can't build
the project:

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/14] 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

Of course, I changed Project Options -> Other -> -CfSOFT to -CfVFPV3

Can I solve both ARMV7 and VFPV3?

Hoping this will boost performance a lot.

Thank you,
Best Regards,
Kjow
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to