Sign in Join

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

Mailing lists / lazarus / 2003-03

Printers unit ...

16 messages · 7 people ·

Reply by email Subscribe to this list Your subscription

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

olivier Guilbaud

Hello !

The printers unit it's very interresting but it is not in the sources of lazarus (CVS). it is possible to put it? (it is better to maintain it)

Regards
Olivier

Reply by email

Tony Maro
to Mattias Gaertner: On 25 Mar 2003 12:19:55 -0600 I have added printers.pas and postscriptprinter.pas. Mattias

I'm an idiot, I know, but I've just installed FPC in Windows XP and attempting to build Lazarus.

Here's where I've gotten to so far... Quite a bit of stuff scrolls by during the Lazarus make and then it fails here:

c:/fpc/bin/win32/rm.exe -f ../units/jitform.ppw
c:/fpc/bin/win32/ppc386.exe -gl -Fu../../lcl/units/win32 -Fu../../lcl/units -Fu. -FU../units -di386 jitform.pas Free Pascal Compiler version 1.0.7 [2003/03/24] for i386 Copyright (c) 1993-2003 by Florian Klaempfl
Target OS: Win32 for i386
Compiling jitform.pas
94 Lines compiled, 0.3 sec
make[2]: Leaving directory `C:/lazarus/lazarus/designer/jitform' make[1]: Leaving directory `C:/lazarus/lazarus/designer' make lazarus.res
make[1]: Entering directory `C:/lazarus/lazarus'
windres -i lazarus.rc -o lazarus.res --preprocessor process_begin: CreateProcess((null), windres -i lazarus.rc -o lazarus.res --preprocessor, ...) failed.
make (e=2): The system cannot find the file specified. make[1]: *** [lazarus.res] Error 2
make[1]: Leaving directory `C:/lazarus/lazarus'
make: *** [ide] Error 2

C:\lazarus\lazarus>

Reply by email

Tony Maro
to Unknown author: It should be included nevertheless, and should be installed in the <fpc-root>/bin/win32…
Show quoted text 12 lines
-----Original Message----- From: On Behalf Of > > I've searched everywhere and don't see an asw.exe file either in the > huge download of 1.0.6 or inside the files for 1.0.8 that I've > downloaded. It should be included nevertheless, and should be installed in the <fpc-root>/bin/win32 directory ?

I think I've found the problem.

My searching zips in zips wasn't finding it in the huge 1.0.6 single file distro, but it is there.

The individual file downloads for 1.0.8 do NOT appear to include it. I'll check a little deeper.

Thanks,
TOny

Reply by email

Unknown author
to Tony Maro: Okay, I was able to do that from the command prompt to compile my lazarus icon resource. …
Tony Maro wrote 41 lines
> -----Original Message----- > From: On Behalf Of > No. It needs a preprocessor, which is gcc by default. > However, you can use 'fprcp' for that, this comes with FPC. > > Usage: > windres --preprocessor fprcp.exe ... > > Michael. > Okay, I was able to do that from the command prompt to compile my lazarus icon resource. Unfortunately the makefile was adding the --preprocessor option but not adding fprcp.exe after it. By the way I never did find windres.exe on the FPC site... I had to google it. Now I get: Compiling debugmanager.pas Compiling mainbar.pas Compiling .\debugger\callstackdlg.pp Compiling viewunit_dlg.pp Compiling aboutfrm.pas Compiling resource lazarus.res Linking .\lazarus.exe lazarus.pp(86,1) Error: Util asw.exe not found, switching to external linking Closing script .\ppas.bat make[1]: *** [lazarus.exe] Error 1 make[1]: Leaving directory `C:/lazarus/lazarus' make: *** [ide] Error 2 C:\lazarus\lazarus> I've searched everywhere and don't see an asw.exe file either in the huge download of 1.0.6 or inside the files for 1.0.8 that I've downloaded.

It should be included nevertheless, and should be installed in the <fpc-root>/bin/win32 directory ?

Michael.

Reply by email

Unknown author
to Tony Maro: You're right about that... It's not there. I found a copy on someone's website but when I…
Tony Maro wrote 17 lines
> -----Original Message----- > From: andrew johnson > Subject: Re: [lazarus] Building Lazarus in Winblows > > sounds like you are missing windres.exe, which should be in > the fpc/win32/bin dir I think... need to reseupt fpc and > lazarus on a windows machine myself to start testing out the > new improvements.. > > andrew You're right about that... It's not there. I found a copy on someone's website but when I try to use it windres.exe complains that gcc is not present. I don't need gcc do I?

No. It needs a preprocessor, which is gcc by default. However, you can use 'fprcp' for that, this comes with FPC.

Usage:
windres --preprocessor fprcp.exe ...

Michael.

Reply by email

Tony Maro
to Tony Maro: I think I've found the problem. My searching zips in zips wasn't finding it in the huge…

Okay, now I'm another step closer...

It compiled and linked.

When I start it I get "Free Pascal Sources Not Found" then all the windows open up, gray.
I have a flashing cursor on the gray source editor. There are no icons in the toolbox. None of the menu options work. If you click inside the code editor suddenly the default unit1 code appears. Same with the object inspector. It finally paints when you click inside it. I tried to open the environment variables in Lazarus to set them, but the menus don't respond.

After a few moments Windows reports that it has stopped responding.

Have I missed a step somewhere?

Here's the console output:

C:\lazarus\lazarus>lazarus
Note: environment config file not found - using defaults NOTE: editor options config file not found - using defaults NOTE: miscellaneous options file not found - using defaults NOTE: codetools config file not found - using defaults

NOTE: Compiler Filename not set! (see Environment Options)

NOTE: FPC Source Directory not set! (see Environment Options)

NOTE: Could not create Define Template for Free Pascal Compiler

NOTE: Could not create Define Template for Free Pascal Sources TMainIDE.DoNewProject A
TMainIDE.DoNewEditorFile A NewFilename=
TPascalParserTool.BuildTree B OnlyIntf=FALSE project1.lpr [TCustomFormEditor.CreateComponent] Class='TFORM'
TMainIDE.DoNewEditorFile end unit1.pas
TMainIDE.DoNewProject end 0
TPascalParserTool.BuildTree B OnlyIntf=FALSE unit1.pas ************************************************************ MouseDownOnControl Form1:TForm1 No Shift down, No CTRL down [TDesigner.MouseDownOnControl] END
************************************************************ MouseUpOnControl Form1:TForm1
[TDesigner.MouseLeftUpOnControl] END
### TCodeToolManager.HandleException: "cursor pos outside of code" at Line=1 Col=6 in "unit1.pas"
### TCodeToolManager.HandleException: "cursor pos outside of code" at Line=1 Col=6 in "unit1.pas"
### TCodeToolManager.HandleException: "cursor pos outside of code" at Line=1 Col=6 in "unit1.pas"

Reply by email

Mattias Gaertner
to olivier Guilbaud: Hello ! The printers unit it's very interresting but it is not in the sources of lazarus…
Sure.

I have added printers.pas and postscriptprinter.pas.

Mattias

Show quoted text 40 lines
Thanks, Tony On Tue, 2003-03-25 at 02:30, Mattias Gaertner wrote: > On Sun, 23 Mar 2003 18:06:50 +0100 > olivier Guilbaud wrote: > > > Hello ! > > > > The printers unit it's very interresting but it is not in the sources > > of lazarus (CVS). it is possible to put it? (it is better to maintain > > it) > > Yes. > If Tony allows it. > > Tony, printers.pas has no header. Should I add the standard LCL header > (modified LGPL) with you as author? > > > Mattias > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives -- Thanks, Tony Maro Need a Linux replacement for Microsoft Money? Check out CheckBook Tracker! http://tony.maro.net/ _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Tony Maro
to Unknown author: No. It needs a preprocessor, which is gcc by default. However, you can use 'fprcp' for…
Show quoted text 11 lines
-----Original Message----- From: On Behalf Of No. It needs a preprocessor, which is gcc by default. However, you can use 'fprcp' for that, this comes with FPC. Usage: windres --preprocessor fprcp.exe ... Michael.

Okay, I was able to do that from the command prompt to compile my lazarus icon resource. Unfortunately the makefile was adding the --preprocessor option but not adding fprcp.exe after it. By the way I never did find windres.exe on the FPC site... I had to google it.

Now I get:

Compiling debugmanager.pas
Compiling mainbar.pas
Compiling .\debugger\callstackdlg.pp
Compiling viewunit_dlg.pp
Compiling aboutfrm.pas
Compiling resource lazarus.res
Linking .\lazarus.exe
lazarus.pp(86,1) Error: Util asw.exe not found, switching to external linking
Closing script .\ppas.bat
make[1]: *** [lazarus.exe] Error 1
make[1]: Leaving directory `C:/lazarus/lazarus'
make: *** [ide] Error 2

C:\lazarus\lazarus>

I've searched everywhere and don't see an asw.exe file either in the huge download of 1.0.6 or inside the files for 1.0.8 that I've downloaded.

Thanks,
Tony

Reply by email

Unknown author

My copy of fpc 1.0.6 does have a copy of windres.exe and asw.exe. Just let me know if you need one.

Yoyong

Internet Mail Message
Received from host:
svcr-216-37-230-2.dsl.svcr.epix.net
[216.37.230.2]

From: "Tony Maro" on 03/25/2003 10:03 PM GMT

"Tony Maro" To:
Cc: (bcc: Yoyong Hernan-ET/PGI)
Subject: RE: [lazarus] Building Lazarus in
Winblows
03/26/2003 06:03 AM
Please respond to

Show quoted text 11 lines
-----Original Message----- From: On Behalf Of No. It needs a preprocessor, which is gcc by default. However, you can use 'fprcp' for that, this comes with FPC. Usage: windres --preprocessor fprcp.exe ... Michael.

Okay, I was able to do that from the command prompt to compile my lazarus icon resource. Unfortunately the makefile was adding the --preprocessor option but not adding fprcp.exe after it. By the way I never did find windres.exe on the FPC site... I had to google it.

Now I get:

Compiling debugmanager.pas
Compiling mainbar.pas
Compiling .\debugger\callstackdlg.pp
Compiling viewunit_dlg.pp
Compiling aboutfrm.pas
Compiling resource lazarus.res
Linking .\lazarus.exe
lazarus.pp(86,1) Error: Util asw.exe not found, switching to external linking
Closing script .\ppas.bat
make[1]: *** [lazarus.exe] Error 1
make[1]: Leaving directory `C:/lazarus/lazarus'
make: *** [ide] Error 2

C:\lazarus\lazarus>

I've searched everywhere and don't see an asw.exe file either in the huge download of 1.0.6 or inside the files for 1.0.8 that I've downloaded.

Thanks,
Tony

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

andrew johnson
to Tony Maro: I'm an idiot, I know, but I've just installed FPC in Windows XP and attempting to build…

sounds like you are missing windres.exe, which should be in the fpc/win32/bin dir I think... need to reseupt fpc and lazarus on a windows machine myself to start testing out the new improvements..

andrew

Tony Maro wrote 34 lines
I'm an idiot, I know, but I've just installed FPC in Windows XP and attempting to build Lazarus. Here's where I've gotten to so far... Quite a bit of stuff scrolls by during the Lazarus make and then it fails here: c:/fpc/bin/win32/rm.exe -f ../units/jitform.ppw c:/fpc/bin/win32/ppc386.exe -gl -Fu../../lcl/units/win32 -Fu../../lcl/units -Fu. -FU../units -di386 jitform.pas Free Pascal Compiler version 1.0.7 [2003/03/24] for i386 Copyright (c) 1993-2003 by Florian Klaempfl Target OS: Win32 for i386 Compiling jitform.pas 94 Lines compiled, 0.3 sec make[2]: Leaving directory `C:/lazarus/lazarus/designer/jitform' make[1]: Leaving directory `C:/lazarus/lazarus/designer' make lazarus.res make[1]: Entering directory `C:/lazarus/lazarus' windres -i lazarus.rc -o lazarus.res --preprocessor process_begin: CreateProcess((null), windres -i lazarus.rc -o lazarus.res --preprocessor, ...) failed. make (e=2): The system cannot find the file specified. make[1]: *** [lazarus.res] Error 2 make[1]: Leaving directory `C:/lazarus/lazarus' make: *** [ide] Error 2 C:\lazarus\lazarus> _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Tony Maro
to olivier Guilbaud: Hello ! The printers unit it's very interresting but it is not in the sources of lazarus…

Sure.

Thanks,
Tony

Mattias Gaertner wrote 21 lines
On Sun, 23 Mar 2003 18:06:50 +0100 olivier Guilbaud wrote: > Hello ! > > The printers unit it's very interresting but it is not in the sources of > lazarus (CVS). it is possible to put it? (it is better to maintain it) Yes. If Tony allows it. Tony, printers.pas has no header. Should I add the standard LCL header (modified LGPL) with you as author? Mattias _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Thanks, Tony Maro Need a Linux replacement for Microsoft Money? Check out CheckBook Tracker! http://tony.maro.net/

Reply by email

Tony Maro
to andrew johnson: sounds like you are missing windres.exe, which should be in the fpc/win32/bin dir I…
Show quoted text 10 lines
-----Original Message----- From: andrew johnson Subject: Re: [lazarus] Building Lazarus in Winblows sounds like you are missing windres.exe, which should be in the fpc/win32/bin dir I think... need to reseupt fpc and lazarus on a windows machine myself to start testing out the new improvements.. andrew

You're right about that... It's not there.

I found a copy on someone's website but when I try to use it windres.exe complains that gcc is not present.

I don't need gcc do I?

-T

Reply by email

Tony Maro
to Tony Maro: Okay, now I'm another step closer... It compiled and linked. When I start it I get "Free…
Martin Smat wrote 7 lines
Tony Maro wrote: > When I start it I get "Free Pascal Sources Not Found" then all the > windows open up, gray. Did you use the latest CVS version? I sent a patch to Mattias 25.3.2003 which fixes this bug. All windows were redrawn with background color after LM_PAINT message.

I downloaded the zipped snapshot. It's my work computer and I've been off work for almost a week due to illness, but I'll try again on Tuesday.

Thanks,
Tony

Reply by email

Martin Smat
to Tony Maro: Okay, now I'm another step closer... It compiled and linked. When I start it I get "Free…
Tony Maro wrote 6 lines
Okay, now I'm another step closer... It compiled and linked. When I start it I get "Free Pascal Sources Not Found" then all the windows open up, gray.

Did you use the latest CVS version? I sent a patch to Mattias 25.3.2003 which fixes this bug. All windows were redrawn with background color after LM_PAINT message.

Show quoted text 6 lines
I have a flashing cursor on the gray source editor. There are no icons in the toolbox. None of the menu options work. If you click inside the code editor suddenly the default unit1 code appears. Same with the object inspector. It finally paints when you click inside it. I tried to open the environment variables in Lazarus to set them, but the menus don't respond.

Menus work nice for me.

After a few moments Windows reports that it has stopped responding.

Yes, you are right. Windows version is very unstable. The Source Editor is not usable. Nothing cannot be written in it.

Martin Smat.

Reply by email