[Lazarus] OSX 64 bit Cocoa + Catalina Installer

Dan Star dan2329s at gmail.com
Sun Oct 27 18:04:42 CET 2019


On 10/26/19 5:30 AM, Mattias Gaertner via lazarus wrote:
> 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
I have 2 fpc.cfg files and the one in /etc is from year 2017 so I think 
that one only applies to Laz 32.   The other fpc.cfg is in ~/ 
Development/FreePascal/fpc/bin/x86_64-darwin/fpc.cfg and is from October 
18th 2019.   So inspecting this second file I find:

#ifndef cpupowerpc64
-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk

#ifdef cpui386
-Fl/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib

# searchpath for libraries
#-Fl/Users/danstar/Development/FreePascal/fpc/lib
#-Fl/lib;/usr/lib
-Fl/Users/danstar/Development/FreePascal/fpc/lib/$FPCTARGET

# library search path
-Fl/usr/lib/$FPCTARGET;/usr/lib/$FPCTARGET-gnu;/lib/$FPCTARGET;/lib/$FPCTARGET-gnu;/usr/lib/gcc/

And my reading of this is -Fl only applies to PowerPC cpu hardware.   So 
I am confused what to change.  Any help appreciated.




More information about the lazarus mailing list