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