Ups, overlapped replies.
No problem. I started redoing the install as you were replying
What I've done... Completely deleted the Lazarus install then ...
svn co https://svn.freepascal.org/svn/lazarus/trunk .
make bigide LCL_PLATFORM=carbon CPU_TARGET=i386
Though it completed without errors, I did get a bunch of warnings like this ..
ld: warning: text-based stub file /System/Library/Frameworks//Foundation.framework/Foundation.tbd and library file /System/Library/Frameworks//Foundation.framework/Foundation are out of sync. Falling back to library file for linking.
I created a basic project as you suggested ..
program project1;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Interfaces, // this includes the LCL widgetset
Forms, Unit1
{ you can add units after this };
{$R *.res}
begin
RequireDerivedFormResource:=True;
Application.Scaled:=True;
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs;
type
{ TForm1 }
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
public
end;
var
Form1: TForm1;
implementation
{$R *.lfm}
{ TForm1 }
procedure TForm1.FormCreate(Sender: TObject);
begin
TObject.Create;
end;
end.
But the build "errored" with a bunch of these ..
Error: ld: warning: text-based stub file /System/Library/Frameworks//OpenGL.framework/OpenGL.tbd and library file /System/Library/Frameworks//OpenGL.framework/OpenGL are out of sync. Falling back to library file for linking.
That said, it does run!, but with no trc file that I can find. So I added SetHeapTraceOutput ...
SetHeapTraceOutput('/Users/andy/Desktop/memleak.trc');
TObject.Create;
But the compile fails "unit1.pas(33,3) Error: Identifier not found "SetHeapTraceOutput"
I thought SetHeapTraceOutput was part of the Heaptrc unit automatically included when building with -gh, which it is ...
/usr/local/bin/fpc
-MObjFPC
-Scaghi
-CirotR
-gw2
-gl
-gh
-gt
-k-framework
-kCocoa
-l
-vewnhibq
-Filib/x86_64-darwin
-Fu/Developer/lazarus/lcl/units/x86_64-darwin/cocoa
-Fu/Developer/lazarus/lcl/units/x86_64-darwin
-Fu/Developer/lazarus/components/lazutils/lib/x86_64-darwin
-Fu/Developer/lazarus/packager/units/x86_64-darwin
-Fu.
-FUlib/x86_64-darwin
-FE.
-oproject1
-dLCL
-dLCLcocoa
Cheers