Lazarus

Installation => macOS / Mac OS X => Topic started by: AL on March 31, 2020, 04:37:45 pm

Title: Minimum OS version to run apps made with Cocoa
Post by: AL on March 31, 2020, 04:37:45 pm
What is the minimum MacOS version to run apps made with Lazarus Cocoa widgetset?
I have tested my app on Mojave, but wonder if it would run on previous versions.
Especially since I use AudioQueue to input the Mic.
Title: Re: Minimum OS version to run apps made with Cocoa
Post by: jwdietrich on March 31, 2020, 06:41:40 pm
As far as I can find out they run well on macOS 10.12 Sierra (and, of course 10.13 High Sierra, 10.14 Mojave and 10.15 Catalina), but they don't run on macOS 10.6 Snow Leopard. I am not sure about the versions in between.
Title: Re: Minimum OS version to run apps made with Cocoa
Post by: skalogryz on March 31, 2020, 06:55:02 pm
Cocoa widgetset code is macOS 10.6 compatible.

However, when compiling on a newer macOS, it might be necessary to specify compatibility framework during linking the project.

By default, the linker uses the "current" macOS system.
Meaning a project compiled on a certain macOS version will run on the version, and likely will run on future versions.

Yet, it's not guaranteed to run on previous macOS versions.
Title: Re: Minimum OS version to run apps made with Cocoa
Post by: AL on March 31, 2020, 08:42:35 pm
Cocoa widgetset code is macOS 10.6 compatible.
However, when compiling on a newer macOS, it might be necessary to specify compatibility framework during linking the project.

How do we do that?
Title: Re: Minimum OS version to run apps made with Cocoa
Post by: skalogryz on March 31, 2020, 09:34:20 pm
try to add "-WM10.6" to your FPC command-line parameter.
(which specifies the minimal macOS version to 10.6)
Title: Re: Minimum OS version to run apps made with Cocoa
Post by: AL on March 31, 2020, 10:00:39 pm
Thank you
Title: Re: Minimum OS version to run apps made with Cocoa
Post by: jwdietrich on March 31, 2020, 10:33:10 pm
try to add "-WM10.6" to your FPC command-line parameter.
(which specifies the minimal macOS version to 10.6)

Good to know. Thanks.
Title: Re: Minimum OS version to run apps made with Cocoa
Post by: skalogryz on March 31, 2020, 10:55:13 pm
Good to know. Thanks.
https://wiki.freepascal.org/FPC_New_Features_2.6.2#Support_for_specifying_and_querying_the_deployment_version
https://wiki.freepascal.org/User_Changes_3.2#Default_Target_macOS_version

IF it doesn't work you, you might need to explicitly specify SDK folder . (SDK folder will look like /Developer/SDKs/macOS10.6.sdk) using "-XR" parameter. as well as "-FD" for utility binaries (pretty much the linker)



TinyPortal © 2005-2018