Sign in Join
Wiki copytemporary

Other macOS installation options: what changed

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

Title: Other macOS installation options

OldNewLine
1+## Official FPC and Lazarus Installation Options
2+
3+For 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.
4+
5+## Other FPC Installation Options
6+
7+### Fink
8+
9+You 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.
10+
11+### fpcupdeluxe
12+
13+You could also consider using [[fpcupdeluxe]] to install FPC.
14+
15+### MacPorts
16+
17+You 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.
18+
19+### Daily development version
20+
21+An 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/).
22+
23+1\. Move fpc-src to your home directory
24+
25+2\. Install with a script like:
26+
27+``` bash
28+#!/bin/sh
29+cd ~/fpc-src
30+sudo make FPC=$PWD/ppca64 OPT="-ap -FD/Library/Developer/CommandLineTools/usr/bin
31+-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk" install
32+```
33+
34+The highlighted lines should be all on one line.
35+
36+## Other Lazarus IDE installation options
37+
38+### Fink
39+
40+You 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:
41+
42+``` bash
43+$ fink install lazarus-aqua
44+// or
45+$ fink install lazarus-cocoa
46+// or
47+$ fink install lazarus-gtk2
48+// or
49+$ fink install lazarus-qt4
50+// or
51+$ fink install lazarus-qt5
52+```
53+
54+You 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.
55+
56+After installation, Lazarus can be started from the folder /Applications/Fink/. The actual details of FPC and Lazarus are in subdirectories of /sw
57+
58+With any Lazarus package from Fink, these widget sets are supported for your program on macOS:
59+
60+carbon (Aqua), cocoa, gtk2, qt4 (Aqua), qt5 (Aqua), nogui, win32, win64 and wince.
61+
62+If 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.
63+
64+### fpcupdeluxe
65+
66+You could also consider using [[fpcupdeluxe]] to install Lazarus.
67+
68+### MacPorts
69+
70+MacPorts also has a package description of the cocoa-64 bit Intel and ARM version of Lazarus. Install it with:
71+
72+`$ sudo port install lazarus`
73+
74+### Daily development version
75+
76+An 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/).
77+
78+1\. Move lazarus-src to your home directory
79+
80+2\. Use a script to start Lazarus like:
81+
82+``` bash
83+#!/bin/sh
84+open ~/lazarus-src/lazarus.app --args "--pcp=~/.laz_dev"
85+```
86+
87+---
88+*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