Hi All,
Under Mac OS X, native Carbon IDE, the TPrintDialog is missing from the Dialogs tab? Is this intentional? If so why?
Dominique.

Mailing lists / lazarus / 2008-08
17 messages · 5 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi All,
Under Mac OS X, native Carbon IDE, the TPrintDialog is missing from the Dialogs tab? Is this intentional? If so why?
Dominique.
Hi All, Under Mac OS X, native Carbon IDE, the TPrintDialog is missing from the Dialogs tab? Is this intentional? If so why?
Have you installed the printer4lazarus package?
Mattias
Hmm, it used to be installed by default. Has that changed?
I'll check again.
Dominique.
On Sat, 16 Aug 2008 19:25:04 +0100 Have you installed the printer4lazarus package? Mattias
Ok I cleaned out the settings from ~/.lazarus and attempted to re-install printer4lazarus. When it try to rebuild the IDE I get an error in Lazarus.pp which says.
"Can't create assembler file:../units/i386/lazarus.s"
As lazarus is installed in
/usr/local/share/lazarus
do I have to do anything special for it to pick up the sudo settings from within the IDE, or can I only do it via the command line?
Thanks,
Dominique.
build it from the command line:
sude make bigide
or something similar. I work with subversion Lazarus, so the code is in my user directory and sudo isn't necessary.
Hi Felipe,
will "bigide" build it as a Carbon application? Also when building via the command line, how can I ensure that Printer4Lazarus is installed without "bigide"?
Thanks,
Dominique.
An embedded and charset-unspecified text was scrubbed... Name: not available
Url: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080818/cb13378f/attachment.pl
I tried building from the command line using bigide, but I'm getting a range check error in guitestrunner.pas so the compilation aborts.
I'm using svn code and 2.3.1 fpc compiler.
Dominique.
Dominique Louis wroteI tried building from the command line using bigide, but I'm getting a range check error in guitestrunner.pas so the compilation aborts.
Turn off rangechecking.
Vincent
Vincent Snijders wroteTurn off rangechecking.
I wasn't sure if that would be a good idea, but it certainly allows it to compile. So thanks for that.
Now when compiling my app, targetting PowerPC, I get a Fatal error in PrintersDlgs.pp saying "Can't find unit LResources used in PrintersDlgs"
While if I compile targetting i386, everything compiles and runs fine.
Any ideas?
Dominique.
An embedded and charset-unspecified text was scrubbed... Name: not available
Url: http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080820/5401dd0e/attachment.pl
Mattias G?rtner wroteHave you compiled the LCL for target powerpc?
I thought that putting LCL_PLATFORM=carbon with CPU_TARGET=powerpc was enough to do that? That does not seem to work. Am I missing something else?
Dominique.
Do you mean
cd lazarus/lcl
make LCL_PLATFORM=carbon CPU_TARGET=powerpc PP=fpc ?
Was there any error?
How did you build the cross compiler for powerpc?
Mattias
Ok I added LCL_PLATFORM etc to the make bigide command thinking that it would build the LCL as well if I specified CPU_TARGET=powerpc.
This also does not explain why this works for i386 and not powerpc, unless there is something slightly different about the powerpc build process.
How did you build the cross compiler for powerpc?
Using an automated script I downloaded from Adriaan van Os. It seems to have worked very well in the past.
Dominique.
If you can share it, I can try it.
Compile with -vut. For example:
cd lazarus
make LCL_PLATFORM=carbon CPU_TARGET=powerpc PP=ppcppc OPT=-vt clean all bigide > log.txt
Take a
Hi Mattias,
Mattias Gaertner wroteIf you can share it, I can try it.
I'm using the FreePascal scripts found here -
http://www.microbizz.nl/fpc-scripts.zip
In particular the fpc-build.command, but I have modified to so that it updates and build directly from /usr/local/share/fpcsrc .
particular? I'm not sure what I should be looking for exactly.
Dominique
On Wed, 20 Aug 2008 19:42:10 +0100 If you can share it, I can try it. Compile with -vut.…
powerpc, when compiling via the IDE. When compiling units from within the IDE using i386, it saves some unit in the
~/.lazarus/lib/Print4Lazarus/i386-darwin/ folder while when setting the target to PowerPC, ~/.lazarus/lib/Print4Lazarus/powerpc-darwin/ does not exist. Where it should be looking is
/usr/local/share/lazarus/components/printers/lib/powerpc-darwin/carbon
When it picks up the units from there, everything compiles the way it should. So there definitely seems to me some difference in the way both i386 and PowerPc compile things.
I hope this helps.
Dominique.