Done!!! Now LAMW can handle [transparently] NDK >= 22!
Thank you for your work on this. :-)
I tested it and it does build and allow me to run AppDemo1 on a Pixel4 (Android 11). I tested the following combinations:
NDK r21 ARMv7a + VFPv3 = OK
NDK r21 Aarch64 = OK
NDK r22 ARMv7a + VFPv3 = OK
NDK r22 Aarch64 = OK
Dev Environment: Xubuntu 20.04 64-bit w/ latest updates installed
Android Command-Line Tools build 7302050
OpenJDK 11
Android SDK/API Level 29 (Android 10)
Gradle 6.8.3 (installed automatically by FPCUPdeluxe)
FPCUPdeluxe ver 1.8.2u
FPC stable v3.2.2
Lazarus stable v2.0.12
32-bit CPU Target: ARMv7a + VFPv3
64-bit CPU Target: Aarch64
LAMW git from 2021-Jun-11
Android NDK revision 22 (installed to sdk/ndk-bundle)
Android NDK revision 21 (installed to sdk/ndk/21.4.7075529/)
NOTE about FPCUPdeluxe:I renamed $HOME/android/fpc-lazarus/cross/lib/ to lib-BAK so those libraries don't get used.
(the current version of FPCUPdeluxe created that folder)
But the $HOME/android/fpc-lazarus/cross/bin folder is required or it doesn't build:
lazaruspackageintf.pas(104,0) Error: Assembler arm-linux-androideabi-as not found, switching to external assembling
So it appears that it is not using the toolchain from the NDK and using the one that FPCUPdeluxe installed instead.There are some issues and concerns. Will put those in next message.