Hi, I want to share my first experience compiling an APK with Castle Game Engine, and is really good =)
I'm on Windows.
I have installed Java, Android Studio, and succesfully ran an app with that IDE, so be sure that you can do this first, is a good way to see if your device can be connected to your PC.
1) Installing Lazarus:
I used fpcupdeluxe to install trunk-trunk, then I installed the cross compiler arm-android with the same tool.
2) Install castle engine packages as described in his website
https://castle-engine.io/documentation.phpBasically is opening some lpk files, is easy.
3) Compile the build tool
https://github.com/castle-engine/castle-engine/wiki/Build-Tool4) Set some environment variables:
ANDROID_HOME = where is installed android SDK
ANDROID_NDK_HOME = where is extracted the android NDK
CASTLE_ENGINE_PATH = where is the git repository of Castle Game Engine
in PATH add your fpc binary, I have like this:
C:\fpcupdeluxe\fpc\bin\i386-win32\
I have as well the variable JAVA_HOME.
JDK added in path as well.
Maybe these last two are not needed, and I had them because any other tool I tried in the past, I'm not sure.
5) Go to the folder where is some demo, I used the mobile folder, and then run this command:
castle-engine.exe package --os=android --cpu=arm
And then I got the apk built.
6) That apk can be installed by the same command line app, but I copy-paste it to my device.
In order to install it with the command line tool, you need to sign the apk, seems that it's easy using just a plain text file, but I will try that the next time.
Here a screenshot of the drawing app on my Android 7 device.
Well, that's all, I covered just my experience, is well documented so you will not have problems I think...