Lazarus

Programming => Operating Systems => Android => Topic started by: laguna on February 25, 2021, 07:04:13 am

Title: how start develop with lazarus for android
Post by: laguna on February 25, 2021, 07:04:13 am
how start develop with lazarus for android

thanks
Title: Re: how start develop with lazarus for android
Post by: trev on February 25, 2021, 07:42:44 am
Free Pascal + Lazarus Wiki: Android Portal (https://wiki.lazarus.freepascal.org/Portal:Android).
Title: Re: how start develop with lazarus for android
Post by: Handoko 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 (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 (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.
Title: Re: how start develop with lazarus for android
Post by: rsu333 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.
Title: Re: how start develop with lazarus for android
Post by: laguna on February 26, 2021, 11:50:28 am

Is possible on mac Catalina?

Thanks!
Title: Re: how start develop with lazarus for android
Post by: Handoko 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.
Title: Re: how start develop with lazarus for android
Post by: trev 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 (https://wiki.lazarus.freepascal.org/Multiplatform_Programming_Guide#How_many_platforms_do_you_need.3F).
TinyPortal © 2005-2018