Recent

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

mrmaxmusterman

  • Newbie
  • Posts: 1
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: 870
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: 1474
  • 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.1 r65182 FPC 3.3.1 r49223 macOS 11.4 aarch64 Xcode 12.4
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: 26
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

 

TinyPortal © 2005-2018