Re: Google Play New problem : 64bits
Posted: Mon Oct 14, 2024 9:13 am
The "fixes_3_2" branch compiles just fine. Unfortunately, it gives this error right away when building ZGE:
jni.pas(543) Error: Assembler aarch64-linux-android-as.exe not found, switching to external assembling
So I thought that maybe they updated their compiler to be able to use a more recent NDK than r21e, but I recalled that aarch64-linux-android-as.exe does not exist after that NDK.
So I added this PATH in my building script:
PATH=C:\Android\android-ndk-r21e\toolchains\llvm\prebuilt\windows-x86_64\bin;
And the next error is:
ZPlatform_Android.inc(63,59) Fatal: Can't find unit SyncObjs used by ZPlatform
SyncObjs is located in C:\FPC\trunk_3_2\units\aarch64-android\fcl-base for 64bits so I added it as a -Fu
call %FPC_PATH%\ppcrossa64 -B -MDelphi -Sghi -O3 -Tandroid -Paarch64 -XXis -vw -Filib\arm64-v8a -Fl%NDK_PATH%\arch-arm64\usr\lib -Fu. -Fu..\.. -FuC:\FPC\trunk_3_2\units\aarch64-android\fcl-base -FUobj\arm64-v8a\ -FEjava\libs\arm64-v8a\ -olibzgeandroid.so -dANDROID -dMINIMAL -Xd -CpARMV8 %DEBUG_FLAG% zgeandroid.pas
And it builds just fine. But the result is the same. Threads are killing the app after a few frames...
No different error message either.
jni.pas(543) Error: Assembler aarch64-linux-android-as.exe not found, switching to external assembling
So I thought that maybe they updated their compiler to be able to use a more recent NDK than r21e, but I recalled that aarch64-linux-android-as.exe does not exist after that NDK.
So I added this PATH in my building script:
PATH=C:\Android\android-ndk-r21e\toolchains\llvm\prebuilt\windows-x86_64\bin;
And the next error is:
ZPlatform_Android.inc(63,59) Fatal: Can't find unit SyncObjs used by ZPlatform
SyncObjs is located in C:\FPC\trunk_3_2\units\aarch64-android\fcl-base for 64bits so I added it as a -Fu
call %FPC_PATH%\ppcrossa64 -B -MDelphi -Sghi -O3 -Tandroid -Paarch64 -XXis -vw -Filib\arm64-v8a -Fl%NDK_PATH%\arch-arm64\usr\lib -Fu. -Fu..\.. -FuC:\FPC\trunk_3_2\units\aarch64-android\fcl-base -FUobj\arm64-v8a\ -FEjava\libs\arm64-v8a\ -olibzgeandroid.so -dANDROID -dMINIMAL -Xd -CpARMV8 %DEBUG_FLAG% zgeandroid.pas
And it builds just fine. But the result is the same. Threads are killing the app after a few frames...

No different error message either.