Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-08

Mac OS X L : TPrintDialog missing from Dialogs tab...

17 messages · 5 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dominique Louis

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

Dominique.

Reply by email

Dominique Louis
to Mattias Gaertner
Mattias Gaertner wrote 8 lines
On Sat, 16 Aug 2008 19:25:04 +0100 Dominique Louis wrote: > 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?

Hmm, it used to be installed by default. Has that changed?

I'll check again.

Dominique.

Reply by email

Dominique Louis
to Mattias Gaertner: On Sat, 16 Aug 2008 19:25:04 +0100 Have you installed the printer4lazarus package? Mattias
Mattias Gaertner wrote 8 lines
On Sat, 16 Aug 2008 19:25:04 +0100 Dominique Louis wrote: > 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?

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.

Reply by email

Dominique Louis
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 7 lines
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.

Reply by email

Dominique Louis
to Mattias Gärtner

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.

Mattias G?rtner wrote 32 lines
Zitat von Dominique Louis : > Felipe Monteiro de Carvalho wrote: >> 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? Yes if using 0.9.25, no if using 0.9.24. > Also when building > via the command line, how can I ensure that Printer4Lazarus is installed > without "bigide"? 'make bigide' _is_ building via command line. It builds an IDE with a set of common packages. With 0.9.25 you can also build the IDE with 'your' set of packages via command line: ./lazbuild --build-ide= Mattias

Reply by email

Dominique Louis
to Vincent Snijders
Vincent Snijders wrote
Turn 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.

Reply by email

Dominique Louis
to Mattias Gärtner
Mattias G?rtner wrote
Have 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.

Reply by email

Mattias Gaertner
to Dominique Louis
Show quoted text 6 lines
Mattias G?rtner wrote: > Have 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?

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

Reply by email

Dominique Louis
to Mattias Gaertner
Mattias Gaertner wrote 5 lines
Do you mean cd lazarus/lcl make LCL_PLATFORM=carbon CPU_TARGET=powerpc PP=fpc ? Was there any error?

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.

Reply by email

Mattias Gaertner
to Dominique Louis
Show quoted text 18 lines
Mattias Gaertner wrote: > Do you mean > cd lazarus/lcl > make LCL_PLATFORM=carbon CPU_TARGET=powerpc PP=fpc > ? > Was there any error? 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.

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

Reply by email

Dominique Louis
to Mattias Gaertner

Hi Mattias,

Mattias Gaertner wrote
If 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 .

Show quoted text 7 lines
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 Log.txt file is about 100MB? Should I search for anything in

particular? I'm not sure what I should be looking for exactly.

Dominique

Reply by email

Dominique Louis
to Mattias Gaertner: On Wed, 20 Aug 2008 19:42:10 +0100 If you can share it, I can try it. Compile with -vut.…
Mattias Gaertner wrote 9 lines
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 think I may have spotted why there is a differenc between i386 and

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.

Reply by email