Recent

Author Topic: Aarch64+libs+android+lazarus  (Read 2566 times)

Karamultuk

  • New Member
  • *
  • Posts: 10
Aarch64+libs+android+lazarus
« on: August 28, 2018, 07:37:52 am »
Hi!! tell me, please, how to compile libraries in arm64I tried it, but my lazarus gives me an error. Compiler fpc.exe do not support aarch64-linux.How to solve this problem?Thank you.

jmpessoa

  • Hero Member
  • *****
  • Posts: 1479
Re: Aarch64+libs+android+lazarus
« Reply #1 on: August 28, 2018, 07:48:53 am »
What about "fpcupdelux" ??

You can try to produce    CPU/aarch64 <-->  OS/android ]   cross compile ....


P.S:

http://freepascal.ru/forum/viewtopic.php?t=40008&view=unread#unread
« Last Edit: August 28, 2018, 07:52:32 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Karamultuk

  • New Member
  • *
  • Posts: 10
Re: Aarch64+libs+android+lazarus
« Reply #2 on: August 28, 2018, 08:02:02 am »
just put it yesterday. I get the same error. maybe someone has something to work on fpc for arm64.?
This is just a link to my post.
« Last Edit: August 28, 2018, 08:25:02 am by Karamultuk »

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1170
Re: Aarch64+libs+android+lazarus
« Reply #3 on: August 28, 2018, 08:37:27 am »
Please state your error in more detail.
I just used fpcupdeluxe to install a cross-compiler for linux-aarch64 with 100% success on trunk.

Karamultuk

  • New Member
  • *
  • Posts: 10
Re: Aarch64+libs+android+lazarus
« Reply #4 on: August 28, 2018, 09:03:48 am »
OK. Today I'll come back from work and then I'll attach a photo of the screen.

Karamultuk

  • New Member
  • *
  • Posts: 10
Re: Aarch64+libs+android+lazarus
« Reply #5 on: August 28, 2018, 08:40:03 pm »
Please state your error in more detail.
I just used fpcupdeluxe to install a cross-compiler for linux-aarch64 with 100% success on trunk.

Error

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1170
Re: Aarch64+libs+android+lazarus
« Reply #6 on: August 28, 2018, 09:51:42 pm »
FPC does not support aarch64-android.
FPC does support aarch64-linux.

Karamultuk

  • New Member
  • *
  • Posts: 10
Re: Aarch64+libs+android+lazarus
« Reply #7 on: August 29, 2018, 07:49:11 am »
FPC does not support aarch64-android.
FPC does support aarch64-linux.
good afternoon. means, if I compile the library under aarch64-linux then it will work under arm64 android?

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1170
Re: Aarch64+libs+android+lazarus
« Reply #8 on: August 29, 2018, 09:45:52 am »
AFAIK nope.
Android's C runtime (bionic) is not binary compatible with the linux GNU libc.

Karamultuk

  • New Member
  • *
  • Posts: 10
Re: Aarch64+libs+android+lazarus
« Reply #9 on: August 29, 2018, 11:04:08 am »
AFAIK nope.
Android's C runtime (bionic) is not binary compatible with the linux GNU libc.
You can then prompt as in apk written in the android studio download the library arm under the system arm64?

yuriy_sydorov

  • Full Member
  • ***
  • Posts: 152
Re: Aarch64+libs+android+lazarus
« Reply #10 on: August 30, 2018, 01:34:50 pm »
aarch64 and x86_64 CPUs are not supported for the android target yet.
I plan implement it soon.

Karamultuk

  • New Member
  • *
  • Posts: 10
Re: Aarch64+libs+android+lazarus
« Reply #11 on: August 30, 2018, 02:48:21 pm »
aarch64 and x86_64 CPUs are not supported for the android target yet.
I plan implement it soon.
how do i download 32 bit lib.so in 64 bit os android?
« Last Edit: August 30, 2018, 03:11:42 pm by Karamultuk »

yuriy_sydorov

  • Full Member
  • ***
  • Posts: 152
Re: Aarch64+libs+android+lazarus
« Reply #12 on: September 01, 2018, 01:04:26 pm »
aarch64 and x86_64 CPUs are not supported for the android target yet.
I plan implement it soon.
how do i download 32 bit lib.so in 64 bit os android?

32-bit libraries are transparently loaded and work even on 64 bit android. But an application's apk must not contain any 64-bit libs. This will change soon and newer version of android will require 64-bit libs on 64-bit android. That's why it is needed to add support for 64-bit android in FPC as soon as possible.