Recent

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

lestroso

  • Full Member
  • ***
  • Posts: 123
    • 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: 1590
  • 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 :-)
Lazarus 2.3 2021-08-10 FPC 3.3.1 r49223 macOS 10.14.6 Xcode 11.3.1
Lazarus 2.3 r65500 FPC 3.3.1 r49634 macOS 11.5.2 aarch64 Xcode 12.5.1
Lazarus 2.3 2021-08-11 FPC 3.2.2 FreeBSD 13.0 amd64 VMware VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 Parallels VM
Lazarus 2.0.10 FPC 3.2.0 Win10 Parallels VM

Jonas Maebe

  • Hero Member
  • *****
  • Posts: 900
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: 1590
  • 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
Lazarus 2.3 2021-08-10 FPC 3.3.1 r49223 macOS 10.14.6 Xcode 11.3.1
Lazarus 2.3 r65500 FPC 3.3.1 r49634 macOS 11.5.2 aarch64 Xcode 12.5.1
Lazarus 2.3 2021-08-11 FPC 3.2.2 FreeBSD 13.0 amd64 VMware VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 Parallels VM
Lazarus 2.0.10 FPC 3.2.0 Win10 Parallels VM

lestroso

  • Full Member
  • ***
  • Posts: 123
    • 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