Hi all...I have recently inherited a fairly large Lazarus project and am having some trouble with the linker:
"Compiling package URLLabel 1.5" completed
"Compiling package LazControls 0.0" completed
ld: framework not found Carbon
ld: framework not found Carbon
An error occurred while linking
rcadvm.lpr(25,38) Error: Error while linking
rcadvm.lpr(25,38) Fatal: There were 1 errors compiling module, stopping
Currently installed:
OS X 10.7.4
XCode 4.3
FPC 2.6
Laz 9.30.4
Things tried so far:
Fresh installs, Xcode first...
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer //point to correct Xcode 4.3 install
Made sure to manually install Xcode command line tools before installing FPC 2.6
Read Carbon wiki:
http://wiki.freepascal.org/Carbon_InterfaceTools > Configure "Build Lazarus" > Clean/build all with the following options: -k-framework -kCarbon -k-framework -kOpenGL (Build successful)
Set Project > Compiler Options > Paths > LCL Widget Type to carbon
Anyway, none of these approaches have worked. Project builds fine on Windows though! "It just works." Any suggestions?
Edit: Under Project Options > Inherited entry for LCL 1.0
LCL unit path ="/Developer/lazarus/lcl/units/i386-darwin
/Developer/lazarus/lcl/units/i386-darwin/carbon" //both present on my system
custom options = "-dLCL -dLCLcarbon"