Sign in Join

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

Mailing lists / lazarus / 1999-07

Lazarus-win32-HowTo-0.1

11 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Jeffrey A. Wormsley

Ok, here is my first draft of the Win32 HowTo. Any comments will be appreciated.

-----8< Cut Here >8------

Lazarus-win32-HowTo-0.1

Thanks to:
Cliff Baeseman - For tremndous help getting me started Sergio A. Kessler - For the linux version of this document, which was my guide
Mike Z. - For providing the links to get the TK DLL's and all of the Lazarus development team who endured my seemingly endless questions!

Installing Lazarus on a Windows 95/98 System

This is a decription of the steps that I took to get Lazarus set up on my system. It may seem like a lot more downloads than are absolutely necessary, and it probably is, but it works, and that is the most important thing.

First, you need to download a lot of files. The files you will need and their locations are listed below. I suggest creating a directory to store all of these for future reference. Mine is \Install\Lazarus, with each package getting their own subdirectory under that. These are the latest version as of this writing. You may want to check the parent page/directory to see if newer versions are available.

FPC -
ftp://tflily.fys.kuleuven.ac.be/pub/fpc/dist/Win32/win3209912full.zip GTK DLL's - http://user.sgic.fi/~tml/gimp/win32/gtk+-19990621.zip http://user.sgic.fi/~tml/gimp/win32/glib-19990621.zip CVS -
http://download.cyclic.com/pub/cvs-1.10/windows/cvs-1.10-win.zip

1. Installing the sofware

Extract the FPC installation file to a temporary directory and run Install. Unless you are terminally short on hard drive space, I suggest you install everything. Use the suggested path, but feel free to change the drive letter. At the end of the install, a box will appear telling you to add a directory to your path. Write this down somewhere, we'll come to this later.

Next, extract the GTK DLL files. Where you extract these files is up to you, but it will need to be on your path. If you want, you can extract them to your Windows directory, and it will be there automatically. If you want to keep it seperate for ease of uninstall or update, then add this path to the note you made for FPC.

Finally, extract the CVS zip to the location you want to run it from. Add this path to your list.

2. Updating your AUTOEXEC.BAT file.

You need to add all of the paths noted above to your path statement. If you installed anything into a path with long file names, you need to use the short name to add it to the path. Just open a dos box in the directory above and type DIR /AD /P to get the short directory name. Here is an example of my path line...

path
c:\windows\command;c:\batch;D:\PROGRA~1\CVS;E:\pp\bin\win32;e:\pp\gtkdll

Next, you need to set a few environment variables. These will depend on where you installed things, but aren't hard to figure out.

First, the CVS requires three entries. Here are my settings. The CVSROOT ***must*** be set exactly as shown. The other two depend on where you installed CVS.

SET
SET HOMEDRIVE=D:
SET HOMEPATH=\PROGRA~1\CVS

Last, we need to set the FPCDIR directory. If you followed the anove instructions and let FC install to the \pp directory, all you will need to change here is the drive letter.

SET FPCDIR=e:/pp/source

Note that I used / instead of \. I had problems using the normal DOS style seperator, but they went away when I changed to the /, so since it doesn't matter to FPC, I left them that way. If you use the \, and later have problems building files because they can't be found, change to the / and it should work.

Now, you will need to reboot for these changes to take affect.

3. Downloading the Lazarus code from CVS

In a DOS box, switch to the Free Pascal source directory. For me this was e:\pp\source. Now log on to CVS. You should only need to do this once.

cvs login

You should get a connect message inicating success. If not, double check that your PATH and all three environment variables are set correctly. You can test with the following:

echo %PATH% <ENTER>
echo %HOMEDRIVE% <ENTER>
echo %HOMEPATH% <ENTER>
echo %CVSROOT% <ENTER>
echo %FPCDIR% <ENTER>

Now check out the code modules. See the Lazarus-developer-HowTo for the complete list of modules available, but for now these will be all you need.

cvs -z3 checkout base gtk api fcl docs lazarus

This will take a while.

4. Create a compiled units directory

Starting from your Free Pascal source directory:

md units <ENTER>
cd units <ENTER>
md win32 <ENTER>

5. Create a batch file for rebuilding your compiler.

First, back up your release version of the compiler. Go to the \pp\bin\win32 directory and copy ppc386.exe to ppc386r.exe (r for release). Don't rename, copy.

Now create the following batch file. Here's mine. Change line 2 to reflect the correct drive for your Free Pascal installation.

@echo off
e:
cd \pp\bin\win32
del ppc386.exe
ren ppc386r.exe ppc386.exe
echo y | del \pp\source\units\win32\*.*
cd \pp\source\compiler
make cycle
cd ..
copy rtl\win32\*.o \opt\fpc\units\win32 >NUL
copy rtl\win32\*.ppu \opt\fpc\units\win32 >NUL
cd \pp\bin\win32
ren ppc386.exe ppc386r.exe
copy \pp\source\compiler\ppc386.exe .
copy /Y base\*.* . >NUL

6. Create a batch file for updating your sources.

Each time you do this, you will be on the bleeding edge of development.

@echo off
e:
cd \pp\source
cvs -z3 update base gtk api fcl docs lazarus

7. Compile everything

Now is the time to see if all this has paid off. Here is a batch file that can be handy for automating this task, or just do each step manually.

@echo off
e:
cd \pp\source\fcl
make
cd \pp\source\gtk
make
cd \pp\source\lazarus
make

8. Periodic maintenance

Every so often you may want to get caught up with the current code. To do this, just use the batch file for updating source you created in step 6, then rebuild your compiler with the batch file from step 5, and finally use the batch file from step 7 to put it all together. You may want to archive your setup before you do this, as there may be problems with the new code you download, and you will want a way to get back to where you were.

Good luck,
Jeff

(C) Copyright 1999, Jeffrey Alan Wormsley

Reply by email

Michael A. Hess
to Jeffrey A. Wormsley
Jeffrey A. Wormsley wrote
Ok, here is my first draft of the Win32 HowTo. Any comments will be appreciated.

Great! Much needed How-To. Now would anyone mind if I took this whole shabang and made an honest and for real install.exe out of it so that it would be just point and click.

I'll work on it tonight if you think I should do it. Won't take me but a few minutes. That way it will have graphics and an uninstall as well.

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Jeffrey A. Wormsley
Cliff Baeseman wrote
It might be big but it would sure take the pain out of starting a new user...

And I'll be the first to agree with anything that does that!

Jeff.

Reply by email

Cliff Baeseman

Yes that would be a very nice target indeed one click and away you go...

my pp.zip has everything but the documentation in it. You could use that but you probably already have a source tree to use.

Cliff

Earlier message 30 lines
-----Original Message----- From: Michael A. Hess To: Date: Saturday, July 03, 1999 5:26 PM Subject: Re: [lazarus] Lazarus-win32-HowTo-0.1 >Jeffrey A. Wormsley wrote: >> >> Ok, here is my first draft of the Win32 HowTo. Any comments will be >> appreciated. > >Great! Much needed How-To. Now would anyone mind if I took this whole >shabang and made an honest and for real install.exe out of it so that it >would be just point and click. > >I'll work on it tonight if you think I should do it. Won't take me but a >few minutes. That way it will have graphics and an uninstall as well. > >-- >==== Programming my first best destiny! ==== > >Michael A. Hess Miracle Concepts, Inc. > http://www.miraclec.com > >_________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus >

Reply by email

Jeffrey A. Wormsley
Michael A. Hess wrote 6 lines
Great! Much needed How-To. Now would anyone mind if I took this whole shabang and made an honest and for real install.exe out of it so that it would be just point and click. I'll work on it tonight if you think I should do it. Won't take me but a few minutes. That way it will have graphics and an uninstall as well.

Well, I guess there would be two ways to would be to just package the needed files together as one distribution. The other would be to install everything and then make something to install it all in place.

Personally, I would lean somewhat towards the former, as I wouldn't want installing this to break any other installs. For instance, the CVSROOT environment variable may already be in use, as in for win32 GIMP. If this is a problem, then maybe another batch file to preserve any present value, then restore it later would be useful.

Either way, it will be a big download ;^)

Jeff.

Reply by email

Cliff Baeseman

Great job Jeff can I put that on the web site???

Cliff

Earlier message 199 lines
-----Original Message----- From: Jeffrey A. Wormsley To: Date: Saturday, July 03, 1999 4:57 PM Subject: [lazarus] Lazarus-win32-HowTo-0.1 > >Ok, here is my first draft of the Win32 HowTo. Any comments will be >appreciated. > >-----8< Cut Here >8------ > >Lazarus-win32-HowTo-0.1 > >Thanks to: > Cliff Baeseman - For tremndous help getting me started > Sergio A. Kessler - For the linux version of this document, which was my >guide > Mike Z. - For providing the links to get the TK DLL's > and all of the Lazarus development team who endured my seemingly endless >questions! > > > > Installing Lazarus on a Windows 95/98 System > >This is a decription of the steps that I took to get Lazarus set up on my >system. It may seem like a lot more downloads than are absolutely >necessary, and it probably is, but it works, and that is the most important >thing. > >First, you need to download a lot of files. The files you will need and >their locations are listed below. I suggest creating a directory to store >all of these for future reference. Mine is \Install\Lazarus, with each >package getting their own subdirectory under that. These are the latest >version as of this writing. You may want to check the parent >page/directory to see if newer versions are available. > >FPC - >ftp://tflily.fys.kuleuven.ac.be/pub/fpc/dist/Win32/win3209912full.zip >GTK DLL's - http://user.sgic.fi/~tml/gimp/win32/gtk+-19990621.zip > http://user.sgic.fi/~tml/gimp/win32/glib-19990621.zip >CVS - >http://download.cyclic.com/pub/cvs-1.10/windows/cvs-1.10-win.zip > >1. Installing the sofware > >Extract the FPC installation file to a temporary directory and run Install. > Unless you are terminally short on hard drive space, I suggest you install >everything. Use the suggested path, but feel free to change the drive >letter. At the end of the install, a box will appear telling you to add a >directory to your path. Write this down somewhere, we'll come to this >later. > >Next, extract the GTK DLL files. Where you extract these files is up to >you, but it will need to be on your path. If you want, you can extract >them to your Windows directory, and it will be there automatically. If you >want to keep it seperate for ease of uninstall or update, then add this >path to the note you made for FPC. > >Finally, extract the CVS zip to the location you want to run it from. Add >this path to your list. > >2. Updating your AUTOEXEC.BAT file. > >You need to add all of the paths noted above to your path statement. If >you installed anything into a path with long file names, you need to use >the short name to add it to the path. Just open a dos box in the directory >above and type DIR /AD /P to get the short directory name. Here is an >example of my path line... > >path >c:\windows\command;c:\batch;D:\PROGRA~1\CVS;E:\pp\bin\win32;e:\pp\gtkdll > >Next, you need to set a few environment variables. These will depend on >where you installed things, but aren't hard to figure out. > >First, the CVS requires three entries. Here are my settings. The CVSROOT >***must*** be set exactly as shown. The other two depend on where you >installed CVS. > >SET >SET HOMEDRIVE=D: >SET HOMEPATH=\PROGRA~1\CVS > >Last, we need to set the FPCDIR directory. If you followed the anove >instructions and let FC install to the \pp directory, all you will need to >change here is the drive letter. > >SET FPCDIR=e:/pp/source > >Note that I used / instead of \. I had problems using the normal DOS style >seperator, but they went away when I changed to the /, so since it doesn't >matter to FPC, I left them that way. If you use the \, and later have >problems building files because they can't be found, change to the / and it >should work. > >Now, you will need to reboot for these changes to take affect. > >3. Downloading the Lazarus code from CVS > >In a DOS box, switch to the Free Pascal source directory. For me this was >e:\pp\source. Now log on to CVS. You should only need to do this once. > > cvs login > >You should get a connect message inicating success. If not, double check >that your PATH and all three environment variables are set correctly. You >can test with the following: > > echo %PATH% <ENTER> > echo %HOMEDRIVE% <ENTER> > echo %HOMEPATH% <ENTER> > echo %CVSROOT% <ENTER> > echo %FPCDIR% <ENTER> > >Now check out the code modules. See the Lazarus-developer-HowTo for the >complete list of modules available, but for now these will be all you need. > > cvs -z3 checkout base gtk api fcl docs lazarus > >This will take a while. > >4. Create a compiled units directory > >Starting from your Free Pascal source directory: > > md units <ENTER> > cd units <ENTER> > md win32 <ENTER> > >5. Create a batch file for rebuilding your compiler. > >First, back up your release version of the compiler. Go to the >\pp\bin\win32 directory and copy ppc386.exe to ppc386r.exe (r for release). > Don't rename, copy. > >Now create the following batch file. Here's mine. Change line 2 to >reflect the correct drive for your Free Pascal installation. > > @echo off > e: > cd \pp\bin\win32 > del ppc386.exe > ren ppc386r.exe ppc386.exe > echo y | del \pp\source\units\win32\*.* > cd \pp\source\compiler > make cycle > cd .. > copy rtl\win32\*.o \opt\fpc\units\win32 >NUL > copy rtl\win32\*.ppu \opt\fpc\units\win32 >NUL > cd \pp\bin\win32 > ren ppc386.exe ppc386r.exe > copy \pp\source\compiler\ppc386.exe . > copy /Y base\*.* . >NUL > >6. Create a batch file for updating your sources. > >Each time you do this, you will be on the bleeding edge of development. > > @echo off > e: > cd \pp\source > cvs -z3 update base gtk api fcl docs lazarus > >7. Compile everything > >Now is the time to see if all this has paid off. Here is a batch file that >can be handy for automating this task, or just do each step manually. > > @echo off > e: > cd \pp\source\fcl > make > cd \pp\source\gtk > make > cd \pp\source\lazarus > make > >8. Periodic maintenance > >Every so often you may want to get caught up with the current code. To do >this, just use the batch file for updating source you created in step 6, >then rebuild your compiler with the batch file from step 5, and finally use >the batch file from step 7 to put it all together. You may want to archive >your setup before you do this, as there may be problems with the new code >you download, and you will want a way to get back to where you were. > >Good luck, > Jeff > >(C) Copyright 1999, Jeffrey Alan Wormsley > >_________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus >

Reply by email

Jeffrey A. Wormsley
Cliff Baeseman wrote
Great job Jeff can I put that on the web site???

Sure. Between your full zip, and my piecemeal solution, it should have everyone covered. I am downloading the zip now, but will probably not get much done for the evening and maybe the rest of the weekend, it being a holiday weekend. Parties, beer, barbeque's, that soet of thing.

Code Well,
Jeff.

Reply by email

Cliff Baeseman

It might be big but it would sure take the pain out of starting a new user...

Cliff

Earlier message 35 lines
-----Original Message----- From: Jeffrey A. Wormsley To: Date: Saturday, July 03, 1999 5:39 PM Subject: Re: [lazarus] Lazarus-win32-HowTo-0.1 >On 7/3/99, at 6:10 PM, Michael A. Hess wrote: > >>Great! Much needed How-To. Now would anyone mind if I took this whole >>shabang and made an honest and for real install.exe out of it so that it >>would be just point and click. >> >>I'll work on it tonight if you think I should do it. Won't take me but a >>few minutes. That way it will have graphics and an uninstall as well. > >Well, I guess there would be two ways to would be to just >package the needed files together as one distribution. The other would be >to install everything and then make something to install it all in place. > >Personally, I would lean somewhat towards the former, as I wouldn't want >installing this to break any other installs. For instance, the CVSROOT >environment variable may already be in use, as in for win32 GIMP. If this >is a problem, then maybe another batch file to preserve any present value, >then restore it later would be useful. > >Either way, it will be a big download ;^) > >Jeff. > >_________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus >

Reply by email

Michael A. Hess
to Cliff Baeseman: Yes that would be a very nice target indeed one click and away you go... my pp.zip has…
Cliff Baeseman wrote
Yes that would be a very nice target indeed one click and away you go...

I'm off to the fireworks in a few minutes but will work on it later tonight. :-) Caaboom!

Jeff as to breaking other things. I will be using a professional installation package. Wise if you need to know. It is fully capable of giving the user many, many options one of which would be to not modify any setting that it already finds in use.

I'll make it available on my ftp site when I have something for someone to look at.

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Unknown author
to Cliff Baeseman: yep if i had a copy of wise i would have used that also. I think you can also set the…
Cliff Baeseman wrote 6 lines
yep if i had a copy of wise i would have used that also. I think you can also set the paths and stuff with that. BTW i am using something called jcvs to connect to the cvs and i must say it works great. It is written in java but it is a really nice cvs client.

I can recommend WinCVS on win32. We use it for our Delphi programs here at work. Works great, and eliminates the need for Java.

Michael.

Show quoted text 44 lines
Cliff -----Original Message----- From: Michael A. Hess To: Date: Saturday, July 03, 1999 6:10 PM Subject: Re: [lazarus] Lazarus-win32-HowTo-0.1 >Cliff Baeseman wrote: >> >> Yes that would be a very nice target indeed one click and away you >> go... > >I'm off to the fireworks in a few minutes but will work on it later >tonight. :-) Caaboom! > >Jeff as to breaking other things. I will be using a professional >installation package. Wise if you need to know. It is fully capable of >giving the user many, many options one of which would be to not modify >any setting that it already finds in use. > >I'll make it available on my ftp site when I have something for someone >to look at. > >-- >==== Programming my first best destiny! ==== > >Michael A. Hess Miracle Concepts, Inc. > http://www.miraclec.com > >_________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus > _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Cliff Baeseman

yep if i had a copy of wise i would have used that also.

I think you can also set the paths and stuff with that.

BTW i am using something called jcvs to connect to the cvs and i must say it works great. It is written in java but it is a really nice cvs client.

Cliff

Earlier message 34 lines
-----Original Message----- From: Michael A. Hess To: Date: Saturday, July 03, 1999 6:10 PM Subject: Re: [lazarus] Lazarus-win32-HowTo-0.1 >Cliff Baeseman wrote: >> >> Yes that would be a very nice target indeed one click and away you >> go... > >I'm off to the fireworks in a few minutes but will work on it later >tonight. :-) Caaboom! > >Jeff as to breaking other things. I will be using a professional >installation package. Wise if you need to know. It is fully capable of >giving the user many, many options one of which would be to not modify >any setting that it already finds in use. > >I'll make it available on my ftp site when I have something for someone >to look at. > >-- >==== Programming my first best destiny! ==== > >Michael A. Hess Miracle Concepts, Inc. > http://www.miraclec.com > >_________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus >

Reply by email