[Lazarus] OSX 64 bit Cocoa + Catalina Installer

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Oct 26 12:30:08 CEST 2019


On Fri, 25 Oct 2019 10:23:29 -0500
Dan Star via lazarus <lazarus at lists.lazarus-ide.org> wrote:

>[...]
> Same error now:
> 
> Build IDE: Exit code 2, Errors: 3
> Error: ld: framework not found Cocoa
> make[2]: *** [lazarus] Error 1
> make[1]: *** [idepkg] Error 2
> Error: make: *** [idepkg] Error 2
> Linking ../lazarus
> An error occurred while linking
> Error: Error while linking
> 
> so something with config.  Will look up details on how to build from 
> command line and try that.  Thanks.

The Cocoa LCL passes "-k-framework Cocoa" to fpc.
Check your /etc/fpc.cfg for -XR and -Fl options.
The -XR prepends a path to all -Fl paths.
I don't have Catalina to test, but maybe this works:
-Fl/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk


Mattias


More information about the lazarus mailing list