Recent

Author Topic: LAMW is ready for 64 bits?  (Read 4183 times)

ADiV

  • Jr. Member
  • **
  • Posts: 90
    • ADiV Software
LAMW is ready for 64 bits?
« on: February 01, 2019, 07:25:20 pm »
Hi guys, Is this LAMW ready for 64 bits? Google as of August 1, 2019 will require a 64-bit version and in 2021 the apps that do not have a 64-bit version will disappear.

https://android-developers.googleblog.com/2019/01/get-your-apps-ready-for-64-bit.html
https://developer.android.com/distribute/best-practices/develop/64-bit
« Last Edit: February 01, 2019, 09:33:16 pm by TR3E »

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: LAMW is ready for 64 bits?
« Reply #1 on: February 01, 2019, 09:36:10 pm »
Yes! What we need are just "FPC for aarch64+Android"..... and some minor settings...
« Last Edit: February 01, 2019, 10:29:40 pm by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

yuriy_sydorov

  • Full Member
  • ***
  • Posts: 158
Re: LAMW is ready for 64 bits?
« Reply #2 on: February 03, 2019, 01:22:03 pm »
FPC already supports aarch64-android and x86_64-android in the trunk and the 3.2 branch. I encourage everybody to actively test the 64-bit android targets.
« Last Edit: February 03, 2019, 01:23:52 pm by yuriy_sydorov »

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: LAMW is ready for 64 bits?
« Reply #3 on: March 09, 2019, 03:35:15 am »
Hi, Yuriy sydorov!

I have Lazarus 2.0 [64-bit] - Windows.

Can the inner "....\fpc\3.04" be used as bootstrap [+ trunk  source] to produce the cross  aarch64-android? 

What about "-Cp" [ArmV8 or ArmV8A or not applicable] ?
What about "-Cf" [VFPv4 or VFPv3 or not applicable] ?

all my attempts have failed after having produced and installed/integrated "ppcrossa64"!

I get the errors:

1) when opening a LAMW  "aarch64" project
Quote
"C:\lazarus2064\fpc\3.0.4\bin\x86_64-win64\fpc.exe" does not support target aarch64-android

2) when [trying] building the "aarch64" LAMW project  ["Run" --> "Build"] to produce a ".so" library
Quote
Error: Illegal processor type "aarch64"

Thank you!
« Last Edit: March 09, 2019, 04:47:13 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Thaddy

  • Hero Member
  • *****
  • Posts: 14373
  • Sensorship about opinions does not belong here.
Re: LAMW is ready for 64 bits?
« Reply #4 on: March 09, 2019, 09:49:54 am »
You can bootstrap (should! bootstrap) with 3.0.4. indeed, but the AARCH support for Android requires the sources from at least the 3.2.0 RC branch or trunk.
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

Cyrax

  • Hero Member
  • *****
  • Posts: 836
Re: LAMW is ready for 64 bits?
« Reply #5 on: March 09, 2019, 11:54:36 am »
You need to build native compiler and then build the cross compiler by using the native one.

yuriy_sydorov

  • Full Member
  • ***
  • Posts: 158
Re: LAMW is ready for 64 bits?
« Reply #6 on: March 11, 2019, 02:48:57 pm »
I have Lazarus 2.0 [64-bit] - Windows.

Can the inner "....\fpc\3.04" be used as bootstrap [+ trunk  source] to produce the cross  aarch64-android? 

Yes, to build a cross compiler from the trunk or 3.2 branch you can use fpc 3.0.4 as a starting compiler.

What about "-Cp" [ArmV8 or ArmV8A or not applicable] ?
What about "-Cf" [VFPv4 or VFPv3 or not applicable] ?

No need to specify any additional options.

all my attempts have failed after having produced and installed/integrated "ppcrossa64"!

I get the errors:

1) when opening a LAMW  "aarch64" project
Quote
"C:\lazarus2064\fpc\3.0.4\bin\x86_64-win64\fpc.exe" does not support target aarch64-android

2) when [trying] building the "aarch64" LAMW project  ["Run" --> "Build"] to produce a ".so" library
Quote
Error: Illegal processor type "aarch64"

Thank you!

You need to use "fpc.exe" compiled from the trunk or 3.2 branch sources or invoke a cross-compiler binary directly.  fpc.exe 3.0.4 does not know than the android target supports 64-bit CPUs. Simply replace an existing fpc.exe by the new one.

jmpessoa

  • Hero Member
  • *****
  • Posts: 2301
Re: LAMW is ready for 64 bits?
« Reply #7 on: March 12, 2019, 05:59:17 am »
Quote
You need to use "fpc.exe" compiled from the trunk or 3.2 branch sources or invoke a cross-compiler binary directly.  fpc.exe 3.0.4 does not know than the android target supports 64-bit CPUs. Simply replace an existing fpc.exe by the new one.

Thank you!!!!

PS.  LAMW 0.8.4: Added  "aarch64" support !
ref. https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases
build test: FPC Trunk + Laz Trunk + LAMW + cross "aarch64-android"
[Thanks to DonAlfredo!]

« Last Edit: March 12, 2019, 06:12:13 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018