Forum > macOS / Mac OS X

M1 MacOS V13.1 Tool Setup

(1/2) > >>

I followed the instructions about installing the fpc packages before the lazarus ones. These are the ones I used

I started the IDE and went to configure the output to use carbon rather than cocoa. When trying to save the options, I got the following message

Compiler "/usr/local/bin/fpc" does not support target aarch64-macos

That seems to be a bit of a show stopper. Have I missed a step (or three)

Jonas Maebe:
The name of the target OS is Darwin. "macos" is classic MacOS in FPC (because it was being worked on back when the current macOS was still called Mac OS X).

Ok. I set the Target OS to Darwin and the CPU family to 'arm'. When I save the options, I get the message

Compiler "/usr/local/bin/fpc" does not support target arm-darwin

A couple of things:

1) You can no longer use Carbon as Apple have removed most if not all 32 bit libraries from macOS after macOS 10.15 (Catalina), you must use Cocoa.

2) If you have an Apple Silicon Processor (eg M1 or M2 and variants) then the arhitecture to choose is not arm but aarch64.

Thanks for that. I set the value to Cocoa. I get a whole load of errors and warnings when I compile the project
"Compile package LCL 2.2.4: Success, Errors 108, Warnings: 35, Hints: 470"

Then at the end, I get the line
"Compile Project, CPU: aarch64, Target /Users/me/tmp/project1: success"

Something does not seem right. I've been using Lazarus on MacOS with Cocoa for years and Delphi before that. It looks like I'll have to run it under a Linux VM in future.


[0] Message Index

[#] Next page

Go to full version