I'm trying to get Lazarus to work on my Mac(specs at bottom of post). I've followed this set of instructions
https://wiki.freepascal.org/Installing_Lazarus_on_macOS#Step_2:_Xcode_Command_Line_Tools, tested the compiler with a hello-world program, its ok.
I've installed from binary, and the IDE runs, but it refuses to build anything. These are the messages I get. The project is just the initial blank form. Adding a button and code for the button to show a hello world message box produces this same error.
> Compile Project, Target: /Users/leon/tmp/project1: Exit code 1, Errors: 4
> Error: linker: Undefined symbols for architecture x86_64:
> Error: linker: "_OBJC_CLASS_$_NSMenuToolbarItem", referenced from:
> Error: ld: symbol(s) not found for architecture x86_64
> An error occurred while linking
> Error: Error while linking
Changing the compiler from /usr/local/bin/fpc to /usr/local/lib/fpc/3.2.2/ppcx64 in the IDE options as suggested on another page doesn't help.
It looks like the linker is broken. Has anyone any ideas?
My Mac, in case this matters:
Mac Mini 2012
MacOS Mojave 10.14.6
16GB RAM
~500GB SSD with about 80GB free
Lazarus 4.2, FreePascal 3.2.2
I used Delphi a lot in the 90s, but have been away for a while.