Lazarus

Installation => macOS / Mac OS X => Topic started by: lestroso on March 23, 2021, 10:14:14 pm

Title: (Solved)Problem compiling with lazarus and big sur but before was working
Post by: lestroso on March 23, 2021, 10:14:14 pm
HI, I got this error...I was working with my app when is appeared this error... I tried to reinstall all Lazarus, install Xcode tools command line..with Big Sur11.2.3 but nothing works here...anybody can help me?? please?? any idea?? Lazarus 2.0.12  seems unstable....best regards, Lestroso. :-[


Compila il progetto, Destinazione: project1: Codice di uscita 1, Errori: 1
Linking /Users/saverio/Desktop/TEST-LAZARUS/project1
ld: framework not found Cocoa
An error occurred while linking
Error: Error while linking
Title: Re: Problem compiling with lazarus and big sur but before was working
Post by: trev on March 24, 2021, 05:23:07 am
HI, I got this error...I was working with my app when is appeared this error... I tried to reinstall all Lazarus, install Xcode tools command line..with Big Sur11.2.3 but nothing works here...anybody can help me?? please?? any idea??

You probably need to delete the the /etc/fpc.cfg file and reinstall FPC so that it finds the command line tools and the framework SDKs. As mentioned in the Wiki article Installing Lazarus on macOS (https://wiki.freepascal.org/Installing_Lazarus_on_macOS) "Installing Lazarus on a Mac is not particularly difficult but it is critical that you do the install in the correct order. Skipping steps will almost certainly end in tears.".

Quote
Lazarus 2.0.12  seems unstable....best regards, Lestroso. :-[

This has nothing to do with Lazarus :-)
Title: Re: Problem compiling with lazarus and big sur but before was working
Post by: Jonas Maebe on March 24, 2021, 08:12:59 am
You probably need to delete the the /etc/fpc.cfg file and reinstall FPC
FWIW, reinstalling FPC will always regenerate and overwrite /etc/fpc.cfg, so there is no need to first delete it.
Title: Re: Problem compiling with lazarus and big sur but before was working
Post by: trev on March 24, 2021, 01:34:36 pm
Linking /Users/saverio/Desktop/TEST-LAZARUS/project1
ld: framework not found Cocoa

Do you have this directory:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Cocoa.framework

If so, does your /etc/fpc.cfg file include this line:
-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
Title: Re: Problem compiling with lazarus and big sur but before was working
Post by: lestroso on March 24, 2021, 04:13:28 pm
Thank you to everybody!! I have solved my problem simply  Reinstalling this as you told me!!: fpc-3.2.0.intel-macosx

Thanks again, but I'm still convinced that Lazarus 2.0.12 is a little unstable...

Thanks a lot again! Lestroso :-[
TinyPortal © 2005-2018