The following project option
-k-z
-kcommon-page-size=16384
-k-z
-kmax-page-size=16384
increase the file size but the 16kb warning does not go away.
I have try to compile with a fresh LAWM manager installer. I see in the fpc.cfg the following:
#IFDEF CPUAARCH64
-Xd
-XPaarch64-linux-android-
-FlC:\lamw_manager\LAMW\sdk\ndk-bundle\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\lib\aarch64-linux-android\30
-FLlibdl.so
-FDC:\lamw_manager\LAMW\sdk\ndk-bundle\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64\bin
-FuC:\lamw_manager\LAMW\LAMW4Windows\fpc\$fpcversion\units\$fpctarget
-FuC:\lamw_manager\LAMW\LAMW4Windows\fpc\$fpcversion\units\$fpctarget\*
-FuC:\lamw_manager\LAMW\LAMW4Windows\fpc\$fpcversion\units\$fpctarget\rtl
-k-z common-page-size=16384
-k-z max-page-size=16384
#ENDIF
But unfortunately the 16kb warning does not go away. Also the resulting program is not functional. My tester uses Android studio.
My program is a command-line tool. There are even more problems :
FpCupdeluxe installation, Linux to Android cross compiling using fpc 3.2.2. creates a functional Android program. But only if interpreter is adapted as follows:
This is initially reported for the file:
file ./astap_cli
./astap_cli: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter libdl.so, BuildID[sha1]=fd5d50db766cf49c9b21ed8dcde3384c36f9ec40, stripped
For this I'm using patchelf as a fix:
patchelf --set-interpreter /system/bin/linker64 ./astap_cli
file ./astap_cli
./astap_cli: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /system/bin/linker64, BuildID[sha1]=fd5d50db766cf49c9b21ed8dcde3384c36f9ec40, stripped
But cross compiling from Linux to Android using FPC 3.3.1 (installed by FPcupDeLuxe) then the Android command-line program doesn't work anymore.
So not much progress here. Does anybody have an hint how to solve the 16kb warning and above cross compiling problems?