Recent

Author Topic: Current State of Lazarus on Apple Silicon + Future Plans ?  (Read 5772 times)

mrmaxmusterman

  • New member
  • *
  • Posts: 7
Current State of Lazarus on Apple Silicon + Future Plans ?
« on: June 03, 2021, 09:26:46 pm »
So my question is how the current state of Lazarus on Apple Silicon (e.g. Apple M1) looks like and how the future looks like when talking about a native ARM64 version for apple silicon.
IMO (someone that will switch from windows to macos), the install of lazarus (native) on Apple M1 looks quite difficult compared to the windows side of things (+ linux) and therefore should be made easier (e.g. by publishing a native version).

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 881
Re: Current State of Lazarus on Apple Silicon + Future Plans ?
« Reply #1 on: June 03, 2021, 09:30:39 pm »
The first version of FPC with macOS/ARM64 support was only recently released, so it's normal that existing Lazarus releases aren't built with it yet. The next release will probably include it, since there are no known (major) problems.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1503
  • Former Delphi 1-7, 10.2 user
Re: Current State of Lazarus on Apple Silicon + Future Plans ?
« Reply #2 on: June 05, 2021, 11:20:33 am »
You can download a daily snapshot of the Lazarus and FPC development versions from https://sourceforge.net/projects/macos-lazarus-snapshots/ for M1 Macs.

Sample scripts for running Lazarus and installing FPC are provided on that page. I'm not sure if you would consider that "quite difficult".
Lazarus 2.1 r65061 FPC 3.3.1 r49223 macOS 10.14.6 Xcode 11.3.1
Lazarus 2.3 r65500 FPC 3.3.1 r49634 macOS 11.5 aarch64 Xcode 12.5.1
Lazarus 2.1 r61574 FPC 3.3.1 r42318 FreeBSD 12.1 amd64 VMware VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 Parallels VM
Lazarus 2.0.10 FPC 3.2.0 Win10 Parallels VM

ChristianH

  • New Member
  • *
  • Posts: 32
Re: Current State of Lazarus on Apple Silicon + Future Plans ?
« Reply #3 on: June 11, 2021, 08:41:49 pm »
You might try https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases.

What you have to do on an M1 is also to sign the build by hand. Depending where you put your binary is stored it looks like this:

sudo codesign --force --deep --sign - /fpcupdeluxe/fpcupdeluxe-aarch64-darwin-cocoa.app

Then you can select the git trunk for fpc and Lazarus. SVN will require homebrew and a few additional downloads.

Cheers
Christian

mrmaxmusterman

  • New member
  • *
  • Posts: 7
Re: Current State of Lazarus on Apple Silicon + Future Plans ?
« Reply #4 on: July 18, 2021, 03:52:05 pm »
The next release will probably include it, since there are no known (major) problems.

What about the new Lazarus 2.2 Update and it‘s Release candidate? Will there be a stable / native installer of Lazarus + fpc in a complete Package?
« Last Edit: July 18, 2021, 04:12:52 pm by mrmaxmusterman »

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 881
Re: Current State of Lazarus on Apple Silicon + Future Plans ?
« Reply #5 on: July 19, 2021, 11:21:28 am »
The next release will probably include it, since there are no known (major) problems.

What about the new Lazarus 2.2 Update and it‘s Release candidate? Will there be a stable / native installer of Lazarus + fpc in a complete Package?
I assume so, but I don't know. I'm not a Lazarus developer.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 7285
  • Debugger - SynEdit - and more
    • wiki
Re: Current State of Lazarus on Apple Silicon + Future Plans ?
« Reply #6 on: July 19, 2021, 02:10:00 pm »
The last info I had is that there currently is no one with an M1 in the team. So until that changes, there wont be an installer.

I don't know if the Mac-relevant team members are all regularly reading the forum. So it may be hard to get more info here. If there are no answers, I recommend to try the mail list.

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 881
Re: Current State of Lazarus on Apple Silicon + Future Plans ?
« Reply #7 on: July 19, 2021, 08:23:16 pm »
The last info I had is that there currently is no one with an M1 in the team.
Dmitry has one. You also don't need an M1 to create M1 binaries, you can cross-compile from Intel.

PascalDragon

  • Hero Member
  • *****
  • Posts: 3183
  • Compiler Developer
Re: Current State of Lazarus on Apple Silicon + Future Plans ?
« Reply #8 on: July 20, 2021, 10:09:48 am »
The last info I had is that there currently is no one with an M1 in the team. So until that changes, there wont be an installer.

Maybe you can ask trev for help? He has set up a nightly build for the M1 after all.

 

TinyPortal © 2005-2018