Recent

Author Topic: how start develop with lazarus for android  (Read 6826 times)

laguna

  • Sr. Member
  • ****
  • Posts: 323
how start develop with lazarus for android
« on: February 25, 2021, 07:04:13 am »
how start develop with lazarus for android

thanks

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: how start develop with lazarus for android
« Reply #1 on: February 25, 2021, 07:42:44 am »
Free Pascal + Lazarus Wiki: Android Portal.

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: how start develop with lazarus for android
« Reply #2 on: February 25, 2021, 07:51:52 am »
The hardest part is the installation, which including building the cross compiler.

If you're a Windows user, read here:
https://github.com/jmpessoa/lazandroidmodulewizard/tree/master/docs

If you're a Linux user, read here:
https://github.com/jmpessoa/lazandroidmodulewizard/tree/master/docs/linux

Note:
Don't use the tutorial written by Handoko, that works only on older versions of LAMW, SDK, NDK.

rsu333

  • Full Member
  • ***
  • Posts: 110
Re: how start develop with lazarus for android
« Reply #3 on: February 26, 2021, 06:05:14 am »
LAZARUS is best at all for windows as well as android. Very simple nd easy to understand. Laz4android [LAMW] has  main roll in it.
 For beginner LazToApk is best illustration . Then LAMW manager is very useful.

laguna

  • Sr. Member
  • ****
  • Posts: 323
Re: how start develop with lazarus for android
« Reply #4 on: February 26, 2021, 11:50:28 am »

Is possible on mac Catalina?

Thanks!

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: how start develop with lazarus for android
« Reply #5 on: February 26, 2021, 12:51:56 pm »
I can be wrong I haven't used LAMW for a while but this is what I knew/remembered:

LAMW (Lazarus Android Module Wizard) is a set of components for building Android application, which can be considered as the replacement of Lazarus visual components (TButtons, TEdit, TImage, etc) and it has it's own form designer. LAMW also allows you to build non visual applications for Android.

Laz4Android is a set of tools that include precompiled FreePascal Android units for x86, ARM and JVM. Without Laz4Android you can build Android app too but you need to manually do the cross-compilation, which is not easy.

LazToApk is a tool to automatically download all the necessary things for developing Android app using Lazarus. It will download Laz4Android, LAMW, Android SDK, Android NDK, etc and configure all the settings.

What I did was using Lazarus + LAMW only, yes you can build Android app without using Laz4Android and LazToAPK. I'm not sure but I think you can use them on Catalina.

I ever tried Laz4Android. It really makes life easier, unfortunately it only run on Windows. But because I use Linux so I do not follow their development.

LazToApk is a great tool especially for beginner. You just sit down and wait it to download all the required files, which are several GBs in the size and let it prepares all the settings for you. Unfortunately, it depends on Laz4Android. So if Laz4Android does not support Mac, so do LazToApk.

Is it possible to build Android app using Lazarus on Mac?
Short answer, yes.
Better answer, don't do it.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: how start develop with lazarus for android
« Reply #6 on: February 27, 2021, 12:35:57 am »
Is it possible to build Android app using Lazarus on Mac?
Short answer, yes.
Better answer, don't do it.

Even better answer: Setup a VM for Android development running Windows or Linux. See the Wiki Multiplatform Programming Guide.

 

TinyPortal © 2005-2018