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

Mailing lists / lazarus / 2003-03
16 messages · 7 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
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
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>
It should be included nevertheless, and should be installed in the <fpc-root>/bin/win32…
It should be available in asldw32.zip, just like windres.exe
It should be included nevertheless, and should be installed in the <fpc-root>/bin/win32…
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
Okay, I was able to do that from the command prompt to compile my lazarus icon resource. …
It should be included nevertheless, and should be installed in the <fpc-root>/bin/win32 directory ?
Michael.
You're right about that... It's not there. I found a copy on someone's website but when 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.
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"
Hello ! The printers unit it's very interresting but it is not in the sources of lazarus…
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
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
No. It needs a preprocessor, which is gcc by default. However, you can use 'fprcp' for…
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
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
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
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
Hello ! The printers unit it's very interresting but it is not in the sources of lazarus…
Sure.
Thanks,
Tony
sounds like you are missing windres.exe, which should be in the fpc/win32/bin dir I…
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
Okay, now I'm another step closer... It compiled and linked. When I start it I get "Free…
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
Okay, now I'm another step closer... It compiled and linked. When I start it I get "Free…
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.
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.