Lazarus
Programming => Operating Systems => Android => Topic started by: DanielTimelord on May 10, 2019, 11:20:56 pm
-
LAMW Manager
version 0.3.0
"A installer to generate Lazarus IDE [and all equirements!] ready to develop for Android!"
(I) LAMW4Linux-installer
A complete installer and manager of LAMW for Linux
ref. https://github.com/DanielOliveiraSouza/LAMW4Linux-installer
1) Download [and unzip]:
https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/archive/master.zip
2) Install LAzarus + LAMW and all dependencies:
Go to directory lamw_manager and run:
./lamw_manager
3) Install LAzarus + LAMW and dependencies and Run Android GUI SDK Manager
Go to directory lamw_manager and run:
./lamw_manager --sdkmanager
4) Update LAMW framework from github [warning: close the Lazarus IDE]
Go to directory lamw_manager and run:
./lamw_manager --update_lamw
Important Note:
Always launcher Lazarus IDE using the icon LAMW4Linux on Start Menu.
For more info read "LAMW Manager v0.3.0 Manual"
https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/master/lamw_manager/docs/man.md
(II) LAMW4Windows-installer
A complete installer and manager of LAMW for Windows
ref https://github.com/DanielOliveiraSouza/LAMW4Windows-installer
1) Download "lamw_manager_setup.exe" here:
https://raw.githubusercontent.com/DanielTimelord/Laz4LAMW-win-installer/master/lamw_manager/lamw_manager_setup.exe
[Optional]
https://github.com/DanielOliveiraSouza/LAMW4Windows-installer/archive/master.zip
2) Install Laz4Android + LAMW and all dependencies:
Double-click "lamw_manager_setup.exe"
[Optional]
Go to folder C:\lamw_manager
Right-click "lamw_manager.bat" and "Run as administrator"
3) Update LAMW from github [warning: close the Lazarus IDE]
Go to folder C:\lamw_manager
Right-click "lamw_manager.bat" and "Run as administrator"
Important Note:
Always launcher Lazarus IDE using the icon LAMW4Windows on Start Menu.
For more info read "LAMW Manager v0.3.0 Manual"
https://github.com/DanielOliveiraSouza/LAMW4Windows-installer/blob/master/lamw_manager/docs/man.md
(https://github.com/DanielOliveiraSouza/LAMW4Windows-installer/blob/master/lamw_manager/docs/man.md)
Congratulations!!
You are now a Lazarus for Android developer!
Building Android application with LAMW is RAD!
Have fun!
-
Thank for all nice job
-
Hi, DanielTimelord!
You solved a central problem to reach the goal of taking the lazarus programming for android a possibility for all!
LAMW Manager is "LAMW for the masses"!
Thanks for your great job!
-
Go to directory lamw_manager and run:
./lamw_manager
Thanks for your work on this. I tested on a Xubuntu 16.04. lamw_manager runs to completion, but when I launch Lazarus, I get several error messages of "Package file not found". Example attached.
-
Hello
Is it possible to create a self contained installation of (LAMW+Laz4android) on Windows
to not corrupt my current lazarus windows-targeting installation
-
Hi, Saylo_49!
Yes!
The section
"(II) LAMW4Windows-installer" above is just about fresh "LAMW+Laz4android" install...
-
Hi, jmpessoa
can you show me how to create a self contained installation
P.s: I have already the Android SDK tools and platforms installed
-
can you show me how to create a self contained installation...
A monolithic "bundle"? No, but "lamw_manager_setup.exe" will take care of all install process...
https://raw.githubusercontent.com/DanielTimelord/Laz4LAMW-win-installer/master/lamw_manager/lamw_manager_setup.exe
alternatively, you can try the original/ordinary LAMW "how to":
https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/LAMW%20Getting%20Started.txt
-
Hi, WayneSherman!
You can try
./lamw_manager
again!
so, "lamw_manager" will try auto-repair your system ....
otherwise:
./lamw_manager --reset
[from ./lamw_manager --help ]
will do a new "clean up" install....
-
...try ./lamw_manager again
so, "lamw_manager" will try auto-repair your system ....
otherwise: ./lamw_manager --reset
will do a new "clean up" install....
Thanks for the suggestions. I tried both, but had the same problem. The LAMW Lazarus packages are not installed.
-
Hi, Mr. Wayne,
What version [tag] of Lamw_Manager did you use?
-
What version of LAMW did you use?
The installer didn't ask to choose a version. Assuming lamw_manager downloads LAMW trunk from GIT then it was the latest version since I tried a couple hours ago.
My first attempt was on May 19 which had the same result. I tested with both Xubuntu 16.04 and 18.04 with same result.
Thanks
-
What version of LAMW did you use?
The installer didn't ask to choose a version. Assuming lamw_manager downloads LAMW trunk from GIT then it was the latest version since I tried a couple hours ago.
My first attempt was on May 19 which had the same result. I tested with both Xubuntu 16.04 and 18.04 with same result.
Thanks
Wayne, have you started applying the LAMW 4Linux launcher (start menu)?
I just ran ./lamw_manager on a virtual machine (virgin) with ubuntu 16.04 and it ran normally!
-
Wayne, have you started applying the LAMW 4Linux launcher (start menu)?
That was the problem. I wasn't launching it correctly. I saw the lamw4linux symlink in the lazarus folder (which points directly to the lazarus binary) and it doesn't launch correctly. But after searching in my program menu, I found the LAMW4Linux launcher which starts Lazarus without any errors. (sorry I didn't read your instructions carefully :-[ ) Thank you for your help.
-
How does the LAMW Manager work under the hood?
There is the third party tool Fpcupdeluxe which "It will ease the install of FPC and Lazarus.".
Does LAMW Manager do everything Fpcupdeluxe does plus do the Android side of things as well?
Is it possible to use Fpcupdeluxe, which has been tried and tested over more than two years, and then run LAMW Manager?
Is that even a viable option?
I just need to clarify how LAMW manager is intended to be used.
-
How does the LAMW Manager work under the hood?
There is the third party tool Fpcupdeluxe which "It will ease the install of FPC and Lazarus.".
Does LAMW Manager do everything Fpcupdeluxe does plus do the Android side of things as well?
Is it possible to use Fpcupdeluxe, which has been tried and tested over more than two years, and then run LAMW Manager?
Is that even a viable option?
I just need to clarify how LAMW manager is intended to be used.
Hello PeterEvans,
LAMW Manager performs all the installation and configuration of a complete and functional LAMW environment (including the Android APIs)
It is not necessary to use FPCupdeluxe! LAMW Manager performs all the service while you drink coffee! Just download LAMW Manager and run the ./lamw_manager
Good luck!
-
Hello DanielTimelord,
Let us say that I have used Fpcupdeluxe to install Lazarus etc.
Can I now run LAMW Manager without it affecting Lazarus?
-
Fpcupdeluxe should make an isolated install of FPC and Lazarus in a directory of your preference. No system path are added or changed.
So I guess you can use (one or) both methods to install a programming environment to cross-compile towards Android. The choice is yours.
-
Hello DanielTimelord,
Let us say that I have used Fpcupdeluxe to install Lazarus etc.
Can I now run LAMW Manager without it affecting Lazarus?
The development environment created by LAMW Manager does not affect previously installed Lazarus IDEs. Lazarus installed by FPCupdeluxe will not be affected.
-
Hello DanielTimelord,
That is very good news.
-
LAMW Manager v0.3.1-devel (for Linux) now supports AARCH64-Android
1) Download [and unzip]:
https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/archive/0.3.1-devel.zip
2) Install LAzarus + LAMW and all dependencies:
Go to directory lamw_manager and run:
./lamw_manager
If you want a clean install (or in case of failure) run:
2) ./lamw_manager --reset
Note:
1) First Boot (after upgrading LAMW Manager from v0.3.0 to v0.3.1-devel)
click on "Update-Info" on the first boot of the Lazarus IDE and then click on "Upgrade"
Ready!
Now you have a LAMW environment (on Linux) ready to develop on Android 32 and 64 bit!
-
Hello, Daniel!!
Thank you very much!!!
-
Hello Daniel! Yesterday evening I used your LAMW Manager on Ubuntu 19.04 (64 bit). And run correctly.
Thank you in next day test on windows.
-
Does it (64-bit) also work for Windows? And if not, can we expect that to be implemented at some point?
-
Does it (64-bit) also work for Windows? And if not, can we expect that to be implemented at some point?
There is no implementation on Windows yet, as it depends on external factors. No release forecast yet at this time.
-
The 0.3.1-devel branch (LAMW Manager with AARCH64 support) is stable and was merged into master (trunk) on 08/06/2019. Please download LAMW Manager from the Master branch.
LAMW Manager (for Linux)
version 0.3.1
"A installer to generate Lazarus IDE [and all equirements!] ready to develop for Android!"
(I) LAMW4Linux-installer
A complete installer and manager of LAMW for Linux
ref. https://github.com/DanielOliveiraSouza/LAMW4Linux-installer
1) Download [and unzip]:
https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/archive/master.zip
2) Install LAzarus + LAMW and all dependencies:
Go to directory lamw_manager and run:
./lamw_manager
-
LAMW Manager v.0.3.2 (to Linux) has has been released with important fixes for FPC and Lazarus.
For information on new features and bug fixes read the Release Notes https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/master/lamw_manager/docs/release_notes.md (https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/master/lamw_manager/docs/release_notes.md)
-
Nice work!
Thank you!
-
LAMW Manager v0.3.3 (for Linux) has been Released!
For information on new features and bug fixes read the Release Notes: https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/master/lamw_manager/docs/release_notes.md#v033---november-26-2019 (https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/master/lamw_manager/docs/release_notes.md#v033---november-26-2019)
This version include a new Installer Procedure : read tutorial in: https://drive.google.com/open?id=1B6fvTgJ-W7OS7I4mGCZ4sH0U3GqyAeUg (https://drive.google.com/open?id=1B6fvTgJ-W7OS7I4mGCZ4sH0U3GqyAeUg) ,fixs and update tools.
Notes:
Remember to read the docs:
README: https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/master/README.md (https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/master/README.md)
-
Great!!!!
Thank you!
-
Hi
Thought I would try playing around with Android, and this windows util looks interesting.
However it seems to install everything to the C Drive.
Can this be changed as my C drive is a 250GB M.2 drive, and I wish to keep this for windows OS.
I have 1TB SSD that I wish to install it on.
It would be ideal if it created a 'sandboxed' install of everything in a Drive and Folder of My Choosing.
Thanks in advance.
ps. I started the Installer before I realized, so what folders does it create in C Drive; so I can remove them.
Found it created a folder with application in called chocolatey; which I have removed.
-
Hello,
I'm sorry, this functionality isn't not yet available,try manual install (good luck) : https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/LAMW_Getting_Started.txt (https://github.com/jmpessoa/lazandroidmodulewizard/blob/master/LAMW_Getting_Started.txt).Maybe will be implemented in release future.
The command (run as admin) c:\lamw_manager\lamw_mananager.bat uninstall uninstall LAMW enviroment. (it's in the official LAMW Manager Docs)
Follow this steps:
One: get the uninstall.ps1.zip and unzip (as attchment)
Two: open powershell as admin:
three: run command: powershell.exe Set-ExecutionPolicy Bypass
four: go to unzipped folder. (sample cd: $env:homepath\Downloads)
five: run command .\uninstall.ps1
Note: chocolatey is a package manager, part essential to this tool to work.
-
LAMW Manager v0.3.4 (Linux Only) has been Released!
For information on new features and bug fixes read the Release Notes: https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/v0.3.4/lamw_manager/docs/release_notes.md#v034---march-10-2020
(https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/v0.3.4/lamw_manager/docs/release_notes.md#v034---march-10-2020)
Warning: Users of v0.3.3 should migrate as soon as possible to version v0.3.4!
Notes:
Remember to read the docs:
README: https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/master/README.md
-
LAMW Manager v0.3.1 (Windows) has been Released!
For information on new features and bug fixes read the Release Notes:
https://github.com/DanielOliveiraSouza/LAMW4Windows-installer/blob/master/lamw_manager/docs/releases_notes.md#v031---march-25-2020 (https://github.com/DanielOliveiraSouza/LAMW4Windows-installer/blob/master/lamw_manager/docs/releases_notes.md#v031---march-25-20)
Notes:
Remember to read the docs:
README: https://github.com/DanielOliveiraSouza/LAMW4Windows-installer/blob/master/README.md
-
LAMW Manager v0.3.4 - R1 (to Linux) has has been released with important fixes.
For information on new features and bug fixes read the Release Notes: https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/v0.3.4/lamw_manager/docs/release_notes.md#v034---r1---may-20-2020 (https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/v0.3.4/lamw_manager/docs/release_notes.md#v034---r1---may-20-2020)
Notes:
Remember to read the docs:
README: https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/master/README.md (https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/master/README.md)
-
LAMW Manager
version 0.3.0
"A installer to generate Lazarus IDE [and all equirements!] ready to develop for Android!"
(I) LAMW4Linux-installer
A complete installer and manager of LAMW for Linux
ref. https://github.com/DanielOliveiraSouza/LAMW4Linux-installer
1) Download [and unzip]:
https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/archive/master.zip
2) Install LAzarus + LAMW and all dependencies:
Go to directory lamw_manager and run:
./lamw_manager
3) Install LAzarus + LAMW and dependencies and Run Android GUI SDK Manager
Go to directory lamw_manager and run:
./lamw_manager --sdkmanager
4) Update LAMW framework from github [warning: close the Lazarus IDE]
Go to directory lamw_manager and run:
./lamw_manager --update_lamw
Important Note:
Always launcher Lazarus IDE using the icon LAMW4Linux on Start Menu.
For more info read "LAMW Manager v0.3.0 Manual"
https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/master/lamw_manager/docs/man.md
(II) LAMW4Windows-installer
A complete installer and manager of LAMW for Windows
ref https://github.com/DanielOliveiraSouza/LAMW4Windows-installer
1) Download "lamw_manager_setup.exe" here:
https://raw.githubusercontent.com/DanielTimelord/Laz4LAMW-win-installer/master/lamw_manager/lamw_manager_setup.exe
[Optional]
https://github.com/DanielOliveiraSouza/LAMW4Windows-installer/archive/master.zip
2) Install Laz4Android + LAMW and all dependencies:
Double-click "lamw_manager_setup.exe"
[Optional]
Go to folder C:\lamw_manager
Right-click "lamw_manager.bat" and "Run as administrator"
3) Update LAMW from github [warning: close the Lazarus IDE]
Go to folder C:\lamw_manager
Right-click "lamw_manager.bat" and "Run as administrator"
Important Note:
Always launcher Lazarus IDE using the icon LAMW4Windows on Start Menu.
Congratulations!!
You are now a Lazarus for Android developer!
Building Android application with LAMW is RAD!
Have fun!
I don't know where I did wrong, but running preinstall.bat in lamw_manager always fail in msys2 install. It just run to 4-5% progress and failed. I don't think it's a network connectivity issue since my connection runs just fine, I even try to download and install msys2 manually into C:\tools\msys2 but apparently msys2 setup must be processed through lamw_manager script(s) because manual msys2 installation is not recognized even though I install it into c:\tools\msys2
One thing that you should mention though, that "C:\tools" folder will be deleted during install/reinstall. I peek somewhere in your script that it completely deleted that folder. You should at least make it a warning in readme or popup message. "C:\tools" folder IMO is a pretty generic name, and for my case I used same folder before to put all my portable apps, and I lost them all because of it. You can also modify the script to purge only the folder that supposed to be created by lamw_manager instead of purging entire C:\tools
-
So sorry!
Error: delete C:\tools has been fixed!
LAMW Manager uses chocolatey package manager (https://chocolatey.org) that
install in c:\tools\msys32 or c:\ tools\msys64.
In next release, this method of install has been descontinued and the msys2 will be installed in lamw_manager folder!
-
Hi, I just tried LAMW manager. In Windows.
Install fails when (in cmd) gets to :
start compiling package utils-fpcm for target i386-win32
It stays foreverr at that point.
See copy of the point where it stays "forever" or at least more than 90 minutes:
Start compiling package utils for target i386-win32.
Compiling BuildUnit_utils.pp
Compiling usubst.pp
Compiling ptopu.pp
Compiling ptop.pp
Linking bin\i386-win32\ptop.exe
Compiling ppdep.pp
Linking bin\i386-win32\ppdep.exe
Compiling rstconv.pp
Linking bin\i386-win32\rstconv.exe
Compiling data2inc.pp
Linking bin\i386-win32\data2inc.exe
Compiling delp.pp
Linking bin\i386-win32\delp.exe
Compiling bin2obj.pp
Linking bin\i386-win32\bin2obj.exe
Compiling mkinsadd.pp
Linking bin\i386-win32\mkinsadd.exe
Compiling postw32.pp
Linking bin\i386-win32\postw32.exe
Compiling rmcvsdir.pp
Linking bin\i386-win32\rmcvsdir.exe
Compiling fpcsubst.pp
Linking bin\i386-win32\fpcsubst.exe
[ 5%] Compiled package utils
[ 10%] Skipped package utils-dxegen which has been disabled for target i386-win32
Start compiling package utils-fpcm for target i386-win32.
Any suggestions?
Thanks, and good job.
-
This error is not related to LAMW Manager, but to the windows command prompt. The "Quick Edition" mode pauses the screen to copy the content to the clipboard.
Press enter and the process will continue ...
Disable "quick edition" in the cmd / powershell settings.
Read more in:
https://stackoverflow.com/questions/13599822/command-prompt-gets-stuck-and-continues-on-enter-key-press (https://stackoverflow.com/questions/13599822/command-prompt-gets-stuck-and-continues-on-enter-key-press)
-
LAMW Manager - Linux v0.3.5 Released
LAMW Manager v0.3.5 (to Linux) has has been released with important fixes for FPC and Lazarus.
For information on new features and bug fixes read the Release Notes https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/master/lamw_manager/docs/release_notes.md (https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/master/lamw_manager/docs/release_notes.md)
Notes:
Remember the official LAMW Manager (to Linux) documentation is only on https://github.com/danieloliveirasouza/lamw4linux-installer (https://github.com/danieloliveirasouza/lamw4linux-installer)
README: https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/master/README.md (https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/master/README.md)
Manual:https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/master/lamw_manager/docs/man.md (https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/master/lamw_manager/docs/man.md)
-
I have installed in Ubuntu Mate 20.04 and it is working great!!!
First time creating a test project pascal for Android. Fun! I need to see how layout works in app.. :-[
Thanks!
-
from LAMW "docs":
[FAQ 2]: [Thanks to Ahmad Bohloolbandi (a.k.a. @developing) ]
#Question: How do we can design a layout that shown same in real device?
[Answer]: You should use the component properties:
"Anchor",
"PosRelativeToParent",
"PosRelativeToAnchor",
"LayoutParamHeight",
"LayoutParamWhidth"
Example:
1-Put a "jTextView" component on your AndroidModule form:
Set "PosRelativeToParent"
"rpCenterHorizontal" [True]
"rpTop" [True]
2-Put a "jButton" component on AndroidModule form:
Set "Anchor" to "jTextView" (Because you should set position relative with "jTextView")
set "PosRelativeToAnchor"
"raBelow" [True]
3-Put a "jEditText" component on form:
Set "Anchor" to "jButton".
Set "PosRelativeToAnchor"
"raBelow" [True]
NOTE: Anchor setting is most important section of this design,
because your component position depends on this property.
And for change width and/or height of each components you should
change/configure "LayoutParamWhidth" and/or "LayoutParamHeight".
-
LAMW Manager - Linux v0.3.5 -R1 Released
LAMW Manager v0.3.5 R1 (to Linux) has has been released with important fixes.
For information on new features and bug fixes read the Release Notes https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/master/lamw_manager/docs/release_notes.md#v035--r1--august-6-2020 (https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/master/lamw_manager/docs/release_notes.md#v035--r1--august-6-2020)
Users should update the tool as soon as possible!
Notes:
Remember the official LAMW Manager (to Linux) documentation is only on https://github.com/danieloliveirasouza/lamw4linux-installer (https://github.com/danieloliveirasouza/lamw4linux-installer)
README: https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/master/README.md (https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/master/README.md)
Manual:https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/master/lamw_manager/docs/man.md (https://github.com/DanielOliveiraSouza/LAMW4Linux-installer/blob/master/lamw_manager/docs/man.md)
-
LAMW Manager v0.3.1 Fixes 06/08/2020 (Windows) has been Released! with important fixes!
For information on new features and bug fixes read the Release Notes:
https://github.com/DanielOliveiraSouza/LAMW4Windows-installer/blob/master/lamw_manager/docs/releases_notes.md#v031-fixes---august-6-2020 (https://github.com/DanielOliveiraSouza/LAMW4Windows-installer/blob/master/lamw_manager/docs/releases_notes.md#v031-fixes---august-6-2020)
Users should update the tool as soon as possible!
Notes:
Remember to read the docs:
README: https://github.com/DanielOliveiraSouza/LAMW4Windows-installer/blob/master/README.md