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

Paul Ishenin ip at kmiac.ru
Wed May 14 07:48:03 CEST 2008


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.

Best regards,
Paul Ishenin.




More information about the Lazarus mailing list