Forum > macOS / Mac OS X

Current State of Lazarus on Apple Silicon + Future Plans ?

<< < (3/3)

mrmaxmusterman:

--- Quote from: Igor Kokarev on August 02, 2021, 05:12:41 pm ---It's a very simple installation process now.
...
I compiled Lazarus Trunk from source code (it's really simple - just one command in Terminal).
...

--- End quote ---

Could you go into further detail as far as installation goes? I know that there is a forum post about installing on macOS with some annotations for Apple Silicon but I think that a "install script" or at least an Apple Silicon only guide would help a lot of users out.

Igor Kokarev:
I recently installed FPC 3.2.2 on M1 Mac from this SF page (Lazarus 2.2.0 RC1):
https://sourceforge.net/projects/lazarus/files/Lazarus%20macOS%20x86-64/Lazarus%202.2RC1/
Firstly, I installed FPC compiler and then FPC sources package. Then you'll have FPC compilers for Intel and M1 Macs.

2. Lazarus. I installed earlier Trunk version of Lazarus. In a new folder in Terminal I typed:
git clone https://gitlab.com/freepascal.org/lazarus/lazarus
Then compiled it:
make bigide
Now lazarus.app can be launched in Finder.

trev:

--- Quote from: mrmaxmusterman on August 02, 2021, 05:52:21 pm ---Could you go into further detail as far as installation goes? I know that there is a forum post about installing on macOS with some annotations for Apple Silicon but I think that a "install script" or at least an Apple Silicon only guide would help a lot of users out.
--- End quote ---

* Lazarus 2.2 RC1 has proper installation packages for the macOS Installer. It installs universal binaries for FPC, but currently an Intel Lazarus binary. I expect/hope a universal Lazarus binary will be in the next release candidate or the official release of 2.2. The only issue with the Intel Lazarus binary is that it produces Intel binaries by default - you need to change the target CPU family from Default to aarch64 for each new project.

* Jonas has had detailed steps to compile a native aarch64 FPC from source in the Wiki since July last year.

* I have a daemon script to build native aarch64 FPC and Lazarus binaries from source which is currently inoperative while both FPC and Lazarus transition from using svn to git.

So, by far the easiest path currently is to simply install the Lazarus 2.2 RC1 packages. You can then compile a native Lazarus IDE from within the IDE using the installed FPC or keep using the Intel Lazarus IDE.

Navigation

[0] Message Index

[*] Previous page

Go to full version