Wayne Sherman, and other contributors - !!THANK YOU!! for this guide. Without it I would never have been able to get Lazarus Android cross-compiles working.
Here are some notes on installing and testing the Lazarus-Android build system which might help others in the process. This was done on 2020-01-21.
My system runs Debian. Lazarus is installed on it and configured to target Debian. Since the Lazarus-Android IDE had been tested on Xubuntu 18.04 64 bit I hosted it on a VirtualBox Ubuntu 18.04 virtual machine. (Should have used Xubuntu, not Ubuntu. Next time!) This was a good thing because I had to start over more than once! Details:
- Ubuntu 18.04 LTS.
- System disk: 23 GB (default 10 GB is not enough).
- System RAM: 3072 MB (2048 MB is not enough).
- Under "Updates and other software" select "Minimal installation", deselect "Download updates while installing Ubuntu".
- When Ubuntu install is complete, run Settings application, Power-Power Saving-Blank screen-Never.
Re the last item: blanking of the virtual machine screen and/or blanking of the host machine screen appeared to cause crashes. When leaving the machines running unattended, if virtual machine had the mouse and keyboard captured that appeared to prevent blanking of the host machine screen.
- When running ./fpcupdeluxe-x86_64-linux, Basic tab, used FPC "fixes3.2" and Lazurus "2.0.2". (The recomended "fixes3.2" "fixes2.0" resulted in failure.)
- When running ./fpcupdeluxe-x86_64-linux, Build Modules-OPM-Install module fails. Just ignored that because it is optional.
When building the APKs the correct command line is
./gradle-local-build.sh NOT
./gradle_local_build.sh
I tried installing both the "debug" and "release-unsigned" APKs on my Asus TF700T running Cyanogenmod Android 4.4.4. The "debug" version installed and ran, the "release-unsigned" did not install.
- When the app was run, the widgets were not correctly placed on the screen.
Next challenge - get the widget placement working!