Author Topic: LAMW: Lazarus Android Tools Expert (LATE)  (Read 2978 times)


  • Hero Member
  • *****
  • Posts: 4158
  • My goal: build my own game engine using Lazarus
LAMW: Lazarus Android Tools Expert (LATE)
« on: July 19, 2016, 04:44:23 pm »
LAMW is always full of surprise to me, lots of things to explore and play with. Today I found Lazarus Android Tools Expert alias LATE. The name is cool 8-)

To find it:
On Lazarus main menu > Tools > [Lamw] Android Module Wizard > LATE: Apk Expert Tools [Build, Instal, ...]

My question:
Is this tool finished? If yes, then I'm going report that LATE doesn't work correctly on Linux.

I use Ubuntu Mate 15.10 64-bit + Lazarus 1.6 FPC 3.0.0 + LAMW 0.7 rev 426. My phone is Android 5.0 Intel 64-bit device. My computer is cross-compiled properly to build Android apks for both i386 and ARMv7A targets. I'm sure because I have tested the results, they work correctly. I don't have ARM device but simple test program is running correctly tested using adb install on ARM Android Virtual Devices. No problem so far if I compile the code manually and build the apk using script.

But if I use LATE, the result was different. Some seconds after I pressed the "Build Android Apk" button on LATE, I got the message "BUILD SUCCESSFUL". But if I check the libs folder, nothing was produced. My guess is LATE fails to properly configure settings on Linux. I now am able to produce Android i386, ARMv7A, even fat binary apks (, so I share my settings hope it can help to fix this issue.

Code: Pascal  [Select][+][-]
  1. To make switching settings easier, I use Build Modes.
  2. Installed NDK: 11c
  3. Min SDK: 15
  4. Target SDK: 19
  5. NDK Platform: 21
  6. My home folder: /home/handoko
  7. Android folder: /home/handoko/Android
  8. Android NDK folder: /home/handoko/Android/android-ndk-r11c
  9. Android SDK folder: /home/handoko/Android/android-sdk-linux
  10. LAMW instalation folder: /home/handoko/Android/lazandroidmodulewizard.git
  11. NDK symlink : /home/handoko/Android/sdk
  12. SDK symlink: /home/handoko/Android/ndk
  13. LAMW symlink: /home/handoko/Android/lazandroidmodulewizard

My setting for Android ARMv7A:
Code: Pascal  [Select][+][-]
  1. Libraries (-Fl): /home/handoko/Android/ndk/platforms/android-21/arch-arm/usr/lib/
  2. Target file name (-o): ../libs/armeabi/libcontrols
  3. Target OS (-T): Android
  4. Target CPU family (-P): arm
  5. Custom Options: -Xd -CfSoft -CpARMV7A -XParm-linux-androideabi- -FD/home/handoko/Android/ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin

My setting for Android i386:
Code: Pascal  [Select][+][-]
  1. Libraries (-Fl): /home/handoko/Android/ndk/platforms/android-21/arch-x86/usr/lib/
  2. Target file name (-o): ../libs/x86/libcontrols
  3. Target OS (-T): Android
  4. Target CPU family (-P): i386
  5. Custom Options: -Xd -XPi686-linux-android- -FD/home/handoko/Android/ndk/toolchains/x86-4.9/prebuilt/linux-x86_64/bin

It will be glad to see LATE is working correctly on Linux. And hope this info I share can be useful.


  • Hero Member
  • *****
  • Posts: 1791
Re: LAMW: Lazarus Android Tools Expert (LATE)
« Reply #1 on: July 19, 2016, 05:12:28 pm »

Hello Handoko!

Yes, the LATE need some fixes!

I will do apply yours suggestions!

Thank you!
Lamw: Lazarus Android Module Wizard


TinyPortal © 2005-2018