Recent

Author Topic: (Solved)Problem compiling with lazarus and big sur but before was working  (Read 2991 times)

lestroso

  • Full Member
  • ***
  • Posts: 134
    • FaSasoftware
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
« Last Edit: March 24, 2021, 04:14:00 pm by lestroso »

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: Problem compiling with lazarus and big sur but before was working
« Reply #1 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 "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 :-)

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 1058
Re: Problem compiling with lazarus and big sur but before was working
« Reply #2 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.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: Problem compiling with lazarus and big sur but before was working
« Reply #3 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

lestroso

  • Full Member
  • ***
  • Posts: 134
    • FaSasoftware
Re: Problem compiling with lazarus and big sur but before was working
« Reply #4 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