Recent

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

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: New laz4android2.0.12 !
« Reply #30 on: December 12, 2021, 09:10:09 am »
I believe you are smart and capable of winning. You'll get what is meant to be yours. Wish you best of the luck.  :)

loaded

  • Hero Member
  • *****
  • Posts: 569
Re: New laz4android2.0.12 !
« Reply #31 on: December 12, 2021, 09:25:53 am »
In me, in a literary way;
I thank you as many as the waves in the sea, the leaves on the trees, the drops in the rain.
If Ide=Lazarus 2.0.10 32 Bit and Os=Win 10 Home 64 Bit then Get up and do something useful! Because God is the helper of those who start again;

dbannon

  • Hero Member
  • *****
  • Posts: 2032
    • tomboy-ng, a rewrite of the classic Tomboy
Re: New laz4android2.0.12 !
« Reply #32 on: December 12, 2021, 11:10:09 am »
Windows 10 Pro 64bit, Version 2004, Build 19041.1348
.....
It looks like laz4android needs to be started as Administrator. This works. Now I try to create a small project.

br HE

No, I would be very surprised if "Administrator" is intentional. I think that a bug, I'd report it if I was you. I had some small issues in the Linux install, reported it and it was all fixed within 24hours - cannot complain about that !

Linux Version (0.4.3)

Use the trunk/main/master version, not release 0.4.2.  It installs fine, thats about 30 minutes and does in fact use up 10G of diskspace.  50% of that is the sdk, another 25% is the patched Lazarus, FPC and a boot FPC to build it. Easy mounts up.

I installed in a dir of my choice (because I was unsure where it would install otherwise) by downloading a zip of master, unzipping, cd-ing down one dir until I could see the directory, lamw_manager and ran -

Code: Bash  [Select][+][-]
  1.  env LOCALROOTLAMW=/home/dbannon/bin/LAMW ./lamwmanager/lamwmanager

I installed on Debian Bullseye VM, not an officially supported (by lamw_manager) platform but that did not seem to be a problem. First it installs a whole lot of packages from the official Debian Repository then gets the various SDKs and they are installed in user space, under my nominated dir. No user interaction is required except a root password to install the official debs.

Then, important, lamw_manager makes an entry in your menu system, use that to start the app. That menu item refers to a .desktop file that calls a script that sets some LAMW specific things as it starts the Lazarus IDE.  (Not sure what happens if you use a Gnome Desktop with no menus, another reason not to use Gnome, I am guessing to can start it with that script however.).

Overall, a slick and functional system ! Android entries in the Lazarus menus, promising.

Like h-elsner, my next step will be to try it out, might have issues getting my phone to talk to the VM but thats my problem.

So far, looking like we have reliable content to go into a wiki page relating to Linux install at least !

Davo
Lazarus 2, Linux (and reluctantly Win10, OSX)
My Project - https://github.com/tomboy-notes/tomboy-ng

jmpessoa

  • Hero Member
  • *****
  • Posts: 2112
Re: New laz4android2.0.12 !
« Reply #33 on: December 12, 2021, 04:28:30 pm »
When someone asks me why I insist on keeping "Ant" builder, I answer like this  :-[
Quote
we should not forget about the other side of the spectrum where internet is not fast and/or available.
(by @engkin)


And this is also a criterion for a new component to be added in the palettes/tabs [Android Bridges] and [Android Bridges Extra]

Yes. All 52 visual components in tab [Android Bridges] and all 68 no-visual  components in [Android Bridges Extra] only need Ant to build an android Apk.

Long live the Ant!


side notes:
 
1) we need Gradle for tab [Android Bridges AppCompat] (all material design stuff are online libraries ...) and for tab [Android Bridges jCenter] (warapper for some generics online libraries ...)


2) If we have a  ".jar" file/library then we can wrapper it and put it in tab [Android Bridges Extra]
« Last Edit: December 12, 2021, 05:28:36 pm by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

h-elsner

  • New member
  • *
  • Posts: 6
Re: New laz4android2.0.12 !
« Reply #34 on: December 18, 2021, 05:38:05 pm »
I have the feeling that I have the wrong idea/expectation about laz4android.
1. Installation is only for Windows, currently. This is OK so far, I have done it. No problems.
2. It runs only as "administrator". Without admin rights it stucks. No idea how to go more in detail to find a reason for that.
3. If it runs, I get a 'normal' Lazarus IDE (wich is good for me) but I do not see any relationship to Android.
4. If I place a control (like button or label) on the form it will not added to the source code at class. Same source opened with Lazarus it will add all missing immediately.
5. Going back to laz4android I can compile now the program and it runs OK but as Windows exe file. At this point I'm lost. What is the Android specific of laz4android? What I see is a Lazarus installation with nothing related to Android that has the above mentioned disadvantages compared to my 'normal' (I hope you understand what normal means) Lazarus installation.

What is the trick?

br HE

jmpessoa

  • Hero Member
  • *****
  • Posts: 2112
Re: New laz4android2.0.12 !
« Reply #35 on: December 18, 2021, 06:38:40 pm »
Good!

from here: https://sourceforge.net/projects/laz4android/

Quote
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

So go to:

https://github.com/jmpessoa/lazandroidmodulewizard   

or

https://wiki.lazarus.freepascal.org/LAMW

and go ahead!


PS. About "administrator"  : I never had this need

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

dantas.br

  • New member
  • *
  • Posts: 8
Re: New laz4android2.0.12 !
« Reply #36 on: December 18, 2021, 09:09:15 pm »
Is there a script to update?

jmpessoa

  • Hero Member
  • *****
  • Posts: 2112
Re: New laz4android2.0.12 !
« Reply #37 on: December 18, 2021, 09:11:28 pm »
Quote
Is there a script to update?

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

dantas.br

  • New member
  • *
  • Posts: 8
Re: New laz4android2.0.12 !
« Reply #38 on: December 18, 2021, 09:14:45 pm »
yes, Lamw.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2112
Re: New laz4android2.0.12 !
« Reply #39 on: December 18, 2021, 09:22:51 pm »

If you are using "LAMW Manager" for install, then yes!

( "LAMW Manager" has some "update" command)



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

 

TinyPortal © 2005-2018