I get a compilation failure 'project1.lpr(1,1) Fatal: Can't find unit CarbonDef'
This appears to be a Free Pascal bug. For now this is what I did to work around it:
- Edit file carbonutils.pas and carbonproc.pp in /lazarus/lcl/interfaces/carbon and comment out all the inline directives. For example, change:
function AsControlRef(Handle: HWND): ControlRef; inline;
to this:
function AsControlRef(Handle: HWND): ControlRef; //inline;
Now rebuild the Carbon widgetset:
- Tools | Configure
- Set everything to None except Build LCL.
- Set LCL Interface to Carbon.
- Click Build.
After it's done rebuilding the widgetset, try compiling your project and see if that doesn't fix it.