Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2024-09

Android applications

7 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Larry Dalton

I am trying my first Android app, using lazarus 3.2.2, on Windows 11. When I try to build the application, I get the error
C:\lazarus\fpc\3.2.2\bin\x86_64-win64\fpc.exe does not support target arm-linux. In the configurator "Build Lazarus", the settings I have are 'Profile to Build='Clean up + Build All'
LCL Widget Type=win32/win64
Target OS= linux
Target CPU=arm.
What's my next step to correct this?
Copilot AI says download cross-compiler for arm-linux -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240922/0933b65f/attachment.htm>

Reply by email

Larry Dalton
to Jean SUZINEAU

It?s already loaded and installed. Still get the same error code

On Sun, Sep 22, 2024 at 18:22 Jean SUZINEAU via lazarus <

Show quoted text 15 lines
wrote: May be it would be easier to use LAMW Lazarus for Android module Wizard ? It can install on Windows all the stuff needed to build applications for Android with Lazarus. https://wiki.lazarus.freepascal.org/LAMW -- _______________________________________________ lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240922/7c3aa198/attachment.htm>

Reply by email

Jean SUZINEAU
to Larry Dalton

Usually to build the application with LAMW, I use the? Lazarus menu "Run" /? "[LAMW] Build Android Apk and Run"

The LAMW application consist of a dll project controls.lpr loaded by the android java program through JNI.
For controls.lpr, the target OS is Android, target CPU arm.

Reply by email

Mattias Gaertner
to Larry Dalton: I am trying my first Android app, using lazarus 3.2.2, on Windows 11. When I try to build…
Larry Dalton wrote
I am trying my first Android app, using lazarus 3.2.2, on Windows 11. When I try to build the application, I get the error C:\lazarus\fpc\3.2.2\bin\x86_64-win64\fpc.exe does not support target arm-linux.

You need to install a fpc cross compiler for arm-linux. Copilot was correct here.

In the configurator "Build Lazarus", the settings I have are

'Profile to Build='Clean up + Build All'

The "Build Lazarus" is for building the IDE.
For your project look into Project / Project Options / Compiler Options.

Mattias

Reply by email

Larry Dalton
to Mattias Gaertner

I need to know which cross compiler I need, and where I can download it

On Mon, Sep 23, 2024 at 03:25 Mattias Gaertner via lazarus <

Show quoted text 30 lines
wrote: On 9/22/24 17:49, Larry Dalton via lazarus wrote: > I am trying my first Android app, using lazarus 3.2.2, on Windows 11. When > I try to build the application, I get the error > C:\lazarus\fpc\3.2.2\bin\x86_64-win64\fpc.exe does not support target > arm-linux. You need to install a fpc cross compiler for arm-linux. Copilot was correct here. > In the configurator "Build Lazarus", the settings I have are > 'Profile to Build='Clean up + Build All' The "Build Lazarus" is for building the IDE. For your project look into Project / Project Options / Compiler Options. Mattias -- _______________________________________________ lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240924/99afbf47/attachment.htm>

Reply by email

John Landmesser
to Larry Dalton

Perhaps have a

https://castle-engine.io/fpcupdeluxe#_cross_compilation_to_android

No. i never did that !

Good luck

John Landmesser

Larry Dalton wrote 36 lines
I need to know which cross compiler I need, ?and where I can download it On Mon, Sep 23, 2024 at 03:25 Mattias Gaertner via lazarus wrote: On 9/22/24 17:49, Larry Dalton via lazarus wrote: > I am trying my first Android app, using lazarus 3.2.2, on Windows 11. When > I try to build the application, I get the error > C:\lazarus\fpc\3.2.2\bin\x86_64-win64\fpc.exe does not support target > arm-linux. You need to install a fpc cross compiler for arm-linux. Copilot was correct here. ?> ? In the configurator "Build Lazarus", the settings I have are > 'Profile to Build='Clean up + Build All' The "Build Lazarus" is for building the IDE. For your project look into Project / Project Options / Compiler Options. Mattias -- _______________________________________________ lazarus mailing list https://lists.lazarus-ide.org/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20240925/40cd0296/attachment.htm>

Reply by email