Forum > macOS / Mac OS X

Is there a "known good" combination of macOS silicon + FPC + Lazarus

(1/4) > >>

coda:
For me, the current 4.2 release works "out of the box" for both Windows and Linux.  For macOS, not so much, because of the 15.6.1 update no doubt.

Is there a stable combination of Lazarus/FPC and macOS. One that will build and run the sample projects without any issues?

Thaddy:
No, you have to manually set 15.6.1 ( 12 would do) as linker target as I already explained. The good news is: that's about it..
I would have proposed a merge request, but my mac mini M4 is just a toy (Way further down the line compared to my RPi toys) and I use Apple hardware just too little to be comfortable.

Frankly, I intend to sell it. In my household nobody but me uses it. It is a 2024 model.

coda:
Hi,

so just to be clear.  You're saying that there is no earlier version of silicon macOS that when combined with some specific release of Lazarus will just 'work'? 

By work I mean you download, install, start the ide, load one of the sample projects and build it and and it will run. Much like what the current Linux/Windows releases do.

Not trying to knock anything here.  I know it's not trivial to develop for a target that's constantly moving and what's been achieved so far is a major and imo very much unappreciated accomplishment.  And thanks for that.

Just looking for a known good combination that can be reverted to.

Jeff_t:
aplogies for postig about this in a couple of different posts.
I have a Mac M2, and struggled after downloading the latest Lazarus.
At first, nothing would run in debug.
I was eventually advised to add compiler options (which are not obvious to a newbie like me)
You find that in

Project/ Project Options /Custom Options
In there, adding -WM10.15   got me to a point where I could run Hello World level apps in debug.

But as soon as I tried to compile a stand alone version, that failed, and I almost deleted the whole thing as a bad job.
However, on a whim, I changed the option to say -WM10.14 and it now builds.
Give that a try?

(Despite the widespread posts about how it is possible to cross compile for Mac, Windows, Android... I can find no way to achieve that yet, but baby steps...)

rossh_lz:
I have just gone through the update experience from older versions.  This is what I have now:

MacOS 15.7.1
XCode 26.1
Lazarus 4.2
On an M1

Then edit and add to the /etc/fpc.cfg

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---#IFDEF Darwin#ifdef cpuaarch64-WM10.15#else-WM10.11#endif#ENDIF
That works everywhere for me.

The 10.15 actually gets adjusted by the linker to 11.0 because all AARCH code starts at API 11.  But due to some fpc compiler issue for AARCH, it doesn't like specifying 11.0

The 10.11 is for compiling x86_64 code.   This 10.11 is a min API version for the file signing process of older x86 programs.

I installed fpc 3.2.4rc1, but that didn't seem to help any with this issue

Navigation

[0] Message Index

[#] Next page

Go to full version