Recent

Author Topic: New laz4android2.0.12 !  (Read 21125 times)

truetom

  • Jr. Member
  • **
  • Posts: 73
    • http://sourceforge.net/projects/laz4android/
New laz4android2.0.12 !
« on: November 23, 2021, 12:35:31 am »
Hello all,

New version laz4android2.0.12-FPC3.2.0 released.

You can download from here:
http://sourceforge.net/projects/laz4android/

Laz4Android is a Lazarus for Android Package.
Thanks the FreePascal team and the Lazarus team.
Now Laz4Android is only run on Windows.Sorry for this!

I recommend using laz4android + LAMW(Lazarus Android Module Wizard) to develop android apps.

LAMW on this:
https://github.com/jmpessoa/lazandroidmodulewizard
http://forum.lazarus.freepascal.org/index.php/topic,21919.0.html

---------------------------------------------------------
Last update:2021-11-22
FPC: 3.2.0 (win32/win64/arm-android/aarch64-android/i386-android/x86_64-android/jvm-android)
Lazarus:2.0.12
Android NDK: r19c

1.Update to Lazarus 2.0.12 source + FPC 3.2.0
2.Update to Android NDK r19c
3.Add Win64, aarch64-android, x86_64-android
=========================================================
How to install Laz4Android?

1.You can download a installer file from here:
http://sourceforge.net/projects/laz4android/files/?source=navbar
- Double click the installer file
- Next , Next to finished.

---------------------------------------------------------
2.You can download a 7z compressed file from here:
http://sourceforge.net/projects/laz4android/files/?source=navbar
- Unzip 7z file to e.g.  c:\laz4android
- Please run build.bat (double click it), it will compile and build laz4android.

=========================================================

Thanks and best regards!
laz4android : a Lazarus for Android Package.
http://sourceforge.net/projects/laz4android/

rsu333

  • Full Member
  • ***
  • Posts: 110
Re: New laz4android2.0.12 !
« Reply #1 on: November 23, 2021, 03:15:51 pm »
Thank you for this great achivement.

nouzi

  • Sr. Member
  • ****
  • Posts: 296
Re: New laz4android2.0.12 !
« Reply #2 on: November 23, 2021, 04:32:59 pm »
thanks
My English is  bad
Lazarus last version free pascal last version
Lazarus trunk  free pascal trunk 
System : Linux mint  64bit  Windows 7 64bit

AlexTP

  • Hero Member
  • *****
  • Posts: 2384
    • UVviewsoft
Re: New laz4android2.0.12 !
« Reply #3 on: November 23, 2021, 06:45:28 pm »
@truetom Since I don't find the wiki topic about the project, can you write it (you may write just here on the forum too)?

Blade

  • Full Member
  • ***
  • Posts: 177
Re: New laz4android2.0.12 !
« Reply #4 on: November 23, 2021, 08:03:34 pm »
Thanks.  Good to see.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: New laz4android2.0.12 !
« Reply #5 on: November 24, 2021, 12:46:17 am »
TrueTom came back!

Great news!

Very happy with your new "laz4android2.0.12-FPC3.2.0" announcement!

Thank you!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: New laz4android2.0.12 !
« Reply #6 on: December 10, 2021, 04:25:59 am »
For those who prefer  "laz4android2.0.12"  as a single window IDE (Docking)

Here are my experiment, based on the @PascalDragon reported here:

https://forum.lazarus.freepascal.org/index.php/topic,51023.msg374103.html#msg374103

Step 1:  Go to IDE menu "Package" -> "Open Package File (*.lpk) ..."

open "sparta_generics.lpk"  in folder "C:\laz4android2.0.12\components\sparta\generics"

and "Remove" all units.... until you get an empty package (image_1)!

Step 2:   Go to IDE menu "Package" -> "Install/Unistall Packages ..."

Select  "AnchorDockingDsgn" in the right panel and click "Install selection" and then "Save and rebuild IDE"

....wait until IDE restart

Step 3:   Go to IDE menu "Package" -> "Install/Unistall Packages ..."

Select  "sparta_dockedformeditor" in the right panel and click "Install selection" and then "Save and rebuild IDE"

....wait until IDE restart,  but if you got some error then try "Step 4"!

Step 4:    Go to IDE menu "Tools" -> "Configure Build lazarus"  and configure as "Image_2" and click "Build" 

....wait until IDE restart

Success! Now you have a nice single window "Lazarus IDE (Image_3)"!
« Last Edit: December 10, 2021, 06:39:30 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: New laz4android2.0.12 !
« Reply #7 on: December 10, 2021, 07:01:43 am »
OK, as an outsider looking in, can I please ask for an over view of the Lazarus for Android model ?

As I understand it there is -

LAMW https://github.com/jmpessoa/lazandroidmodulewizard - is the core 'product' but it depends on a heap of other things.

LAMW Managers help solve the "heap of other things" issue, there are separate Windows https://github.com/dosza/LAMWManager-win and Linux https://github.com/dosza/LAMWManager-linux ones and they will install the pretty extensive stacks of requirements.

And we have laz4android (Windows only) - OK, as a Linux user, what am I missing out on by not being able to use laz4android ?  It has some nice screen shots on its sourceforge site but just "Laz4Android is a Lazarus for Android Package" - not a word about what it actually does ? Where does it fit into the above...

It does sound like we have available a viable Android system available to us (and thats brilliant), but outsiders really need an overview to understand where to start.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: New laz4android2.0.12 !
« Reply #8 on: December 10, 2021, 07:17:25 am »
Hi, dbannon!

Yes, there are many ways to get your Lazarus "for Android"

1)  Laz4Android 2.0.12 (only Windows)

2) LAMW Manager (Linux and Windows)

A complete solution (that is, LAMW Manager is the only that produce a Lazarus "for Android" IDE and install all requirements!)

3) Fpcupdeluxe (Linux and Windows and ...)

4) Do It Yourself!

you can get some details here (readme.md):

https://github.com/jmpessoa/lazandroidmodulewizard
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: New laz4android2.0.12 !
« Reply #9 on: December 10, 2021, 07:32:18 am »
....
you can get some details here (readme.md):
https://github.com/jmpessoa/lazandroidmodulewizard

Ah, thanks jmpessoa, laz4android is, sort of, an alternative to the LAWM Managers then ?  Brilliant !

And I had already read your docs, and found them clear and reasonably complete. I reckon the FPC/Lazarus wiki should not try to document your processes, just have that overview and point to your document. I am not sure pointing to Forum posts is a good idea, forums can lack focus sometimes :-)

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: New laz4android2.0.12 !
« Reply #10 on: December 10, 2021, 09:09:39 am »
Ah, thanks jmpessoa, laz4android is, sort of, an alternative to the LAWM Managers then ?  Brilliant !

Yes, but what do these things DO, why is one needed, and why should any one be preferred over the others?

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: New laz4android2.0.12 !
« Reply #11 on: December 10, 2021, 12:09:47 pm »
Exactly Mark, I said the same thing a few posts up.

I think we need someone who has not done any Android programing, hates Java, who can just muddle through a bit of basic Pascal code, likes writing documentation and, of course, has plenty of time on their hands, to try and install one of these stacks, and document their experiences.


I'll let you know how I go. Don't hold your breath ....

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

loaded

  • Hero Member
  • *****
  • Posts: 824
Re: New laz4android2.0.12 !
« Reply #12 on: December 10, 2021, 12:34:31 pm »
Since I use LAMW Manager, I want to talk about it.
It provides you a turnkey solution for Android application development.
It contains;
LAZARUS IDE+LAMW PACKAGE +JAVA JDK+ANDROID SDK AND NDK + ANT AND GRADLE
All these are installed on your system without any hassle.
It's like a pascal version of Android Studio.

Then you can start developing applications directly on your android device. (Perhaps a few minor adjustments may be needed.)

If you say I have to handle everything myself.
After installing the LAMW package on Lazarus, the components that LAMW needs are available in the attached picture.
You can also work by downloading it yourself from the internet and then making the adjustments in the picture.
Check out  loaded on Strava
https://www.strava.com/athletes/109391137

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: New laz4android2.0.12 !
« Reply #13 on: December 10, 2021, 12:51:38 pm »
It's like a pascal version of Android Studio.

What's Android Studio?

Sorry, but I'm intentionally acting dumb there for the purpose of documentation. I know it's some sort of IDE, but don't know what it or LAMW etc. produce as executables.

A couple of weeks ago I gained some Panasonic Toughbook tablets plus a dock, and I'm told that one of the more useful OSes that can be put on them is Android (8?). So yesterday I checked whether FPC supported i386+Android as a target and was interested to note that it did... then immediately found myself in a maze of twisty little wiki pages with no clear overview.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

loaded

  • Hero Member
  • *****
  • Posts: 824
Re: New laz4android2.0.12 !
« Reply #14 on: December 10, 2021, 01:06:51 pm »
I'm sorry for the fact that my technical explanation is close to zero.
What's Android Studio?
Written and published by Google;
It is an application development environment for Android operating systems.
It is available in the IDE and all the other necessary stuff.
In LAMW Manager, I made a similar analogy to the above, as it helps download and install the IDE and all other things.
If your operating system is windows, it will take you 45 minutes at most to download and test it to the C: Drive and run the first hello world application.I am also developing an application for Android 8 version.
Check out  loaded on Strava
https://www.strava.com/athletes/109391137

 

TinyPortal © 2005-2018