Sign in Join
Wiki copytemporary

Other macOS installation options: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11## Official FPC and Lazarus Installation Options
22
33For the officially supported FPC and Lazarus installation options, please see [[Installing Lazarus on macOS]]. It is recommended that new users use the officially supported options.
44
55## Other FPC Installation Options
66
77### Fink
88
99You could also consider using [Fink](http://finkproject.org/), a package manager for macOS to install FPC. Fink also offers numerous [[Cross compiling|Free Pascal crosscompilers]] for many processors and operating systems. An extra bonus is easy installation as well as clean removal of FPC and a huge number of other open source software packages.
1010
1111### fpcupdeluxe
1212
1313You could also consider using [[fpcupdeluxe]] to install FPC.
1414
1515### MacPorts
1616
1717You could also consider using [MacPorts](https://www.macports.org), to install FPC. An extra bonus is easy installation as well as clean removal of FPC and a huge number of other open source software packages.
1818
1919### Daily development version
2020
2121An automated daily build of the development version of FPC for aarch64 (Apple M1 processor) can be downloaded from [SourceForge](https://sourceforge.net/projects/macos-lazarus-snapshots/files/arm64/).
2222
23231\. Move fpc-src to your home directory
2424
25252\. Install with a script like:
2626
2727``` bash
2828#!/bin/sh
2929cd ~/fpc-src
3030sudo make FPC=$PWD/ppca64 OPT="-ap -FD/Library/Developer/CommandLineTools/usr/bin
3131-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk" install
3232```
3333
3434The highlighted lines should be all on one line.
3535
3636## Other Lazarus IDE installation options
3737
3838### Fink
3939
4040You could also consider using [Fink](http://finkproject.org/), a package manager for macOS to install Lazarus. Note at the time of writing (Early 2020) Fink offers Lazarus 2.0.6. The extra bonus of Fink is easy installation as well as clean removal of a huge number of other open source software packages, including [[Cross compiling|Free Pascal cross-compilers]] for many processors and systems. The choice for Lazarus is between a Carbon or Cocoa look, a gtk2 look, a Qt4-based and a Qt5-based version:
4141
4242``` bash
4343$ fink install lazarus-aqua
4444// or
4545$ fink install lazarus-cocoa
4646// or
4747$ fink install lazarus-gtk2
4848// or
4949$ fink install lazarus-qt4
5050// or
5151$ fink install lazarus-qt5
5252```
5353
5454You will be asked, whether to install a number of dependencies, including the Free Pascal Compiler, the Lazarus sources. Simply hit RETURN at the prompt and go for a coffee. It may take quite some time to build all packages, in particular on older Macs.
5555
5656After installation, Lazarus can be started from the folder /Applications/Fink/. The actual details of FPC and Lazarus are in subdirectories of /sw
5757
5858With any Lazarus package from Fink, these widget sets are supported for your program on macOS:
5959
6060carbon (Aqua), cocoa, gtk2, qt4 (Aqua), qt5 (Aqua), nogui, win32, win64 and wince.
6161
6262If you install FPC from Fink, you will be fine downloading Lazarus source and compiling as detailed below. However, it is possibly not a good idea to mix Fink FPC with the Sourceforge binary install of Lazarus.
6363
6464### fpcupdeluxe
6565
6666You could also consider using [[fpcupdeluxe]] to install Lazarus.
6767
6868### MacPorts
6969
7070MacPorts also has a package description of the cocoa-64 bit Intel and ARM version of Lazarus. Install it with:
7171
72-`$ sudo port install lazarus`
72+```text
73+$ sudo port install lazarus
74+```
7375
7476### Daily development version
7577
7678An automated daily build of the development version of the Lazarus IDE for aarch64 (Apple M1 processor) can be downloaded from [SourceForge](https://sourceforge.net/projects/macos-lazarus-snapshots/files/arm64/) and for Intel x86_64 also from [SourceForge](https://sourceforge.net/projects/macos-lazarus-snapshots/files/intel/).
7779
78801\. Move lazarus-src to your home directory
7981
80822\. Use a script to start Lazarus like:
8183
8284``` bash
8385#!/bin/sh
8486open ~/lazarus-src/lazarus.app --args "--pcp=~/.laz_dev"
8587```
8688
8789---
8890*From the Free Pascal wiki, page "Other macOS installation options", as it stood on 2023-03-20 after a change by Mischi, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history