Page 1 of 1

Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!

Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.

Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!

Clear all

Lazarus Pascal - MacOS Mojave - How to get it running

1 Posts
1 Users
Famed Member Admin
Joined: 9 years ago
Posts: 2282
Topic starter  

This is a temporary trick I use to kind-a get Lazarus Pascal to run under macOS Mojave.
Minor refresh issues remain though and compiling your final product under macOS 10.13.x is recommended (I use Parallels Desktop Lite for that, it's free in the Apple App Store and you can install 10.13.x on it without a problem).

Steps to get Lazarus running;

1) Remove the directory "/Library/Developer/CommandLineTools":

sudo rm -rf /Library/Developer/CommandLineTools

2) Download and Install XCode command line tools for XCode 10 for macOS 10.13 (login to before clicking the link).

3) Rename "/Library/Developer/CommandLineTools" to "/Library/Developer/CommandLineTools-10.13":

sudo mv /Library/Developer/CommandLineTools /Library/Developer/CommandLineTools-10.13

4) Download and Install XCode command line tools for XCode 10 for macOS 10.14 (login to before clicking the link).

5) Edit /etc/fpc.cfg and add these lines at the bottom, you'll need to use something like this to edit:

sudo nano /etc/fpc.cfg

Add these lines at the end of fpc.cfg:

#ifdef cpui386 
#ifdef cpux86_64 

Now you can compile the Lazarus IDE, I do this from SVN as such:

cd ~
mkdir freepascal
cd freepascal
mkdir lazarus
svn co lazarus
make LCL_PLATFORM=cocoa CPU_TARGET=x86_64
cd lazarus

This should get you started.
The refresh issues are visible when scrolling through properties in the object inspector, and occasionally in the source-code window. There are a few other places where this occurs, even in your compiled application - hence the advise to compile your final product under macOS 10.13).


Like what you see and you'd like to help out? 

The best way to help is of course by assisting others with their questions here in the forum, but you can also help us out in other ways:

- Do your shopping at Amazon, it will not cost you anything extra but may generate a small commission for us,
- send a cup of coffee through PayPal ($5, $10, $20, or custom amount),
- become a Patreon,
- donate BitCoin (BTC), or BitCoinCash (BCH).