Could someone please apply the attached patch to carbonprndialogs.inc in SVN.

This is what was stopping me from compiling from both the IDE and via the command line.

I now have a linking issue via the command line which does not occur via the IDE :(. Something to do with undefined symbols for _CGLChoosePixelformat, _CGLClearDrawable and a few other calls which all look like OpenGL calls to me, but I could be wrong.

I'll investigate further before posting more about it here.

PS what is the correct procedure for submitting patches?


Dominique

Dominique Louis wrote:
When trying to build Lazarus from source on Mac OS X I'm running into some problems...

When I do try
sudo make LCL_PLATFORM=carbon OPT="-kframework -kCarbon" CPU_TARGET=i386

I get the following error message...
Fatal: Syntax error, "IMPLEMENTATION" expected but "shl" found
on the file ccodeparsetool.pas(62,1)

Doe anyone know how I can fix this error and proceed?

I'm using FPC version 2.3.1, if that makes any difference and the lazarus code is straight from SVN.

Index: carbonprndialogs.inc
===================================================================
--- carbonprndialogs.inc        (revision 14579)
+++ carbonprndialogs.inc        (working copy)
@@ -46,6 +46,7 @@
   DialogSettings: PMPrintSettings;
   U, V: UInt32;
   PMin, PMax, PFrom, PTo: Integer;
+  B : Boolean;
 begin
   Result := False;
   // TODO: Options, Title
@@ -83,7 +84,8 @@
 
     if Result then
     begin
-      OSError(PMGetCollate(DialogSettings, Collate), Self, SExecute, 
'PMGetCollate');
+      B := Collate;
+      OSError(PMGetCollate(DialogSettings, B), Self, SExecute, 'PMGetCollate');
       
       V := Copies;
       OSError(PMGetCopies(DialogSettings, V), Self, SExecute, 'PMGetCopies');
_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to