[Lazarus] Mac OS X : Overnight build not compiling correctly with printing in project....

Mattias Gaertner nc-gaertnma at netcologne.de
Wed May 14 08:59:05 CEST 2008


On Wed, 14 May 2008 13:48:03 +0800
Paul Ishenin <ip at kmiac.ru> wrote:

> Bee wrote:
> 
> > Using...
> > 
> > make all LCL_PLATFORM=carbon OPT="-k-framework -kcarbon
> > -k-framework -kOpenGL -k'-dylib_file' 
> > -k'/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
> > :/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib' 
> > -dNativePrint -va" bigide
> > 
> > I got this...
> > 
> > [1.311] Back in osprinters.pas
> > [1.311] ENDIF NATIVEPRINT found
> > [1.311] ENDIF LCLCARBON found
> > [1.311] IFDEF LCLQT found, rejected
> > [1.311] Skipping until...
> > [1.311] Handling switch "$ELSE"
> > [1.311] ELSE LCLQT found, accepted
> > [1.311] Handling switch "$I"
> > [1.311] Searching file cupsprinters.inc... not found
> > [1.311] Searching file CUPSPRINTERS.INC... not found
> > [1.311] Searching file cupsprinters.inc... not found
> > [1.311] Searching file CUPSPRINTERS.INC... not found
> > [1.311] Searching file ./unix/cupsprinters.inc... found
> > [1.311] Searching file ./unix/cupsprinters.inc... found
> > [1.311] Start reading includefile ./unix/cupsprinters.inc
> > [1.311] Illegal expression
> > [1.311] Syntax error, ";" expected but "identifier
> > UDLGSELECTPRINTER" found [1.312] ENDIF LCLQT found
> > [1.312] ENDIF UNIX found
> > [1.312] Searching file printersdlgs.pp... found
> > [1.401] Compilation aborted
> > 
> > Obviously the compiler locates for cupsprinters.inc instead of 
> > carbonprinters.inc
> > 
> > Did I do something wrong? TIA.
> 
> Yes. You are recompiling a printers package outside IDE. Thats why 
> LCLCarbon is undefined. Add -dLCLCarbon to your params to overcome
> this problem.

The makefiles already add all options. See prior mails.

The osprinters.pas was wrong for carbon. I fixed it in r15128.

Please test.

Mattias



More information about the Lazarus mailing list