Recent

Author Topic: lamw linux installation  (Read 3246 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
lamw linux installation
« on: March 21, 2018, 08:47:29 am »
Hi guys, it's a few years since I use lamw. And I wanted to try and reinstall it in an ubuntu machine. By chance there is a script to do it or if you show me the most updated guide because the wiki seems a bit 'old.

Thank you
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: lamw linux installation
« Reply #1 on: March 21, 2018, 09:29:52 am »
Reinstalling LAMW on Linux is easy as reinstalling other packages. LAMW contains 3 packages, you just need to make sure installing them following this order:
01. tfpandroidbridge_pack.lpk
02. lazandroidwizardpack.lpk
03. amw_ide_tools.lpk

Installing those packages above can be simplified if you use Online Package Manager. Unfortunately, OPM does not use the latest revision. If I remember correctly OPM uses revision 675 but LAMW currently is in revision 700 on the GitHub.

Also, you have to make sure all the requirements are properly installed. They are:
- Java
- Ant
- Android SDK
- Android NDK

Information about installing LAMW can be found here, which I think the information may be outdated:
http://wiki.lazarus.freepascal.org/LAMW

I keep a note about how to install LAMW. You can read my step-by-step installation LAMW on Lazarus 1.8.0 Linux here:
https://forum.lazarus.freepascal.org/index.php/topic,38777.0.html
« Last Edit: March 21, 2018, 09:31:25 am by Handoko »

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: lamw linux installation
« Reply #2 on: March 21, 2018, 02:29:35 pm »
Ok, i follow your how-to. But when I lunch "~/Android/sdk/tools/android", ubuntu terminal returned this message and not install sdk

Code: Pascal  [Select][+][-]
  1. *************************************************************************
  2. The "android" command is deprecated.
  3. For manual SDK, AVD, and project management, please use Android Studio.
  4. For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager
  5. *************************************************************************
  6. Invalid or unsupported command ""
  7.  
  8. Supported commands are:
  9. android list target
  10. android list avd
  11. android list device
  12. android create avd
  13. android move avd
  14. android delete avd
  15. android list sdk
  16. android update sdk
  17.  

How fix this problem?
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: lamw linux installation
« Reply #3 on: March 21, 2018, 05:36:10 pm »
Maybe you don't have SDK components properly installed. Run your Android SDK Manager and make sure you have these things installed:
- Android SDK Build-tools
- at least one API is installed

Below is the screenshot when running my Android SDK Manager. There you can see I'm using Android 4.4.2 (API 19), you need at least one API installed. You can use other than API 19 but you may need to make necessary changes on the settings.

This is how to start the Android SDK Manager:
My SDK folder is ~/Android/android-sdk-linux
You may need to change the line #2 below to browse to yours SDK folder

01. Start your Terminal
02. cd ~/Android/android-sdk-linux
03. cd tools
04. ./android


if line #4 does not work for you, you can try
05. cd bin (or maybe: cd bin64)
06. ./sdkmanager

The SDK components are large, instal only what you need (and remove those you don't need) to reduce the download time.

Note:
I haven't updated my SDK and NDK for quite a while, things may change but the concept should be the same.
« Last Edit: March 21, 2018, 05:50:29 pm by Handoko »

jmpessoa

  • Hero Member
  • *****
  • Posts: 2297
Re: lamw linux installation
« Reply #4 on: March 21, 2018, 05:52:36 pm »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: lamw linux installation
« Reply #5 on: March 21, 2018, 06:03:47 pm »
NOTE: Incoming LAMW 0.8 [full material design support!] will need SDK >= 25
and Gradle 4.1

Thank you for informing us.

 

TinyPortal © 2005-2018