Recent

Author Topic: LAMW manager out of date?  (Read 1535 times)

mike_p

  • New Member
  • *
  • Posts: 28
LAMW manager out of date?
« on: September 04, 2024, 09:49:23 am »
I've decided to jump into compiling apps for Android.
After a lot of looking around, the best approach seemed to be to use LAMW manager.
[Thanks for the very comprehensive scripts Daniel!]

After downloading I looked at the script 'simple-lamw-install.sh'

it currently has these values set:
Code: [Select]
FPC_TRUNK_VERSION=3.2.0-beta
_FPC_TRUNK_VERSION=3.2.0
FPC_TRUNK_SVNTAG=fixes_3_2
LAZARUS_STABLE_VERSION="2.0.12"
LAZARUS_STABLE=lazarus_${LAZARUS_STABLE_VERSION//\./_}
CMD_TOOLS_VERSION="7583922"
CMD_SDK_TOOLS_ZIP="commandlinetools-win-${CMD_TOOLS_VERSION}_latest.zip"
CMD_SDK_TOOLS_DIR="$ANDROID_SDK_ROOT\\cmdline-tools"
ANT_VERSION="1.10.5"

I presume would be best to change FPC_TRUNK_VERSION to 3.2.2 and LAZARUS_STABLE_VERSION to 3.4 ?

Also has a hard coded path in the newinstaller.ps1 script: `$env:PATH="C:\Users\Daniel\LAMW\sdk\tools;" + $env:path`

mike_p

  • New Member
  • *
  • Posts: 28
Re: LAMW manager out of date?
« Reply #1 on: September 04, 2024, 12:42:40 pm »
I've updated to:
_FPC_TRUNK_VERSION=3.2.2
FPC_TRUNK_SVNTAG=fixes_3_2
LAZARUS_STABLE_VERSION="3.4"

The installation appeared to work and I now have Lazarus 3.4 with all the Android stuff installed.

However, it won't build a basic app.
Several messsages like this:
C:\lamw_manager\LAMW\sdk\ndk-bundle\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin\arm-linux-androideabi-ld.bfd.exe: cannot find -lc

any ideas?

karnmedia

  • Newbie
  • Posts: 2
Re: LAMW manager out of date?
« Reply #2 on: November 15, 2024, 03:36:47 am »
I just spent a night to install Laz4android3.4+fpc3.2.2.exe + LAMW package via OPM on windows11Pro.

menu ->tools -> [LAMW] Android Module Wizard  -> path setting
and the confugurations are...
openjdk-24-ea+23_windows-x64_bin
apache-ant-1.10.15-bin
gradle-8.10.2-bin

*** with android-ndk r23,r24,r25,r26,r27
menu ->tools -> [LAMW] Android Module Wizard  -> Build FPC Cross Android
select aarch64, then build, ok
got an error message dialog "directory doesn't exist. [1]!"

*** with android-ndk-r22b-windows-x86_64
select aarch64, then build, ok and it's work. (then install)
:D

What did happen with android-ndk r23,r24,r25,r26,r27.
I may attempt in different ways.

 

TinyPortal © 2005-2018