Lazarus

Installation => Windows (32/64) => Topic started by: cov on November 05, 2007, 09:59:01 am

Title: Subversion
Post by: cov on November 05, 2007, 09:59:01 am
How do you set up subversion in Windows?

Does it need to be from a compiled version of Lazarus, or can it be done from the windows binaries? I'm assuming that Freepascal is used to compile the executable?


1. Download Binaries.

2. Download Source Code.

3. Use fpc to compile the new executable.

4. Use Subversion to check the Source Code against the daily Snapshots.

5. Recompile with fpc as required....

I'm assuming that this is what happens? If so, are there any detailed instructions on how to set up the SVN?
Title: RE: Subversion
Post by: gerardus on November 05, 2007, 10:08:53 am
What I do:
Get the latest stable binaries of FPC (2.2.0) and install them.
Get TortoiseSVN (http://tortoisesvn.tigris.org)
Checkout the latest SVN sources on your PC, and rebuild with FPC.

See: http://wiki.lazarus.freepascal.org/index.php/Getting_Lazarus for more detailed instruciotns

Regards,

Gerard.
Title: RE: Subversion
Post by: cov on November 05, 2007, 03:41:50 pm
Gerard,

Thanks for the pointer.

I now have a directory with the Lazarus source. I presume that I now need to compile against this, using the Tools->Build Lazarus menu.

Where do I tell the compiler where my Lazarus source is?
Title: RE: Subversion
Post by: gerardus on November 05, 2007, 05:02:25 pm
I just open a command line, go to the main lazarus source directory and execute MAKE CLEAN ALL.
In my case, FPC is in c:\fpc and lazarus sources are in c:\lazarus,
so:

cd  \lazarus
c:\FPC\2.2.0\bin\i386-win32\make clean all

HTH,

Gerard
Title: RE: Subversion
Post by: Zaher on November 05, 2007, 10:53:25 pm
Make sure your PATH to c:\FPC\2.2.0\bin\i386-win32
set path=c:\FPC\2.2.0\bin\i386-win32;%path%
then
cd c:\lazarus
make clean all
Title: RE: Subversion
Post by: Bart on November 06, 2007, 12:49:50 pm
If you do this on a Win9x machine, put a copy of cpp.exe in Lazarus\ide or else make will fail.

Bart
Title: RE: Subversion
Post by: cov on November 06, 2007, 01:25:09 pm
Many thanks guys.

I did as per the instruction and then searched for the executable, which I couldn't find. So does the Lazarus executable generated by 'make clean all' overwrite the existing installation?
Title: RE: Subversion
Post by: Marc on November 06, 2007, 01:28:59 pm
it overwrites the exe already there
Title: RE: Subversion
Post by: cov on November 06, 2007, 02:50:19 pm
Great!

So next time I start up Lazarus, it's compiled against the latest svn?

That really is incredibly easy.

Thank you to all who have assisted me here.

Best Regards,

Dave Coventry
Title: Re: RE: Subversion
Post by: gerardus on November 06, 2007, 03:31:46 pm
Quote from: "cov"

So next time I start up Lazarus, it's compiled against the latest svn?


Yes, enjoy. :wink:
Title: Subversion
Post by: cov on November 10, 2007, 07:58:48 am
It was all going swimingly, but now I'm getting the following error:
Code: [Select]
Compiling resource lazarus.rc
gcc: installation problem, cannot exec 'cpp': No such file or directory
C:\Programs\lazarus\fpc\2.2.1\bin\i386-win32\windres.exe:no resources
lazarus.pp(114,1) Error: Error while linking
lazarus.pp(114,1) Fatal: there were 1 errors compiling module, stopping
Fatal: Compilation aborted


Can anyone help?
Title: Subversion
Post by: Vincent Snijders on November 10, 2007, 09:04:20 am
Use a recent fpc 2.2.1 or add the compiler directory (which contains cpp.exe) to the PATH.
Title: Subversion
Post by: Bart on November 10, 2007, 12:24:59 pm
Or see my remark above on solving this on Win9x machines.
Adding the compiler dir to the path wil not work for this problem on win9x platform.

Bart
Title: Subversion
Post by: cov on November 10, 2007, 04:23:19 pm
Nope, it's totally broken.

I'm not sure what's going on, but it is no longer overwriting the lazarus executable.
Title: Subversion
Post by: Bart on November 11, 2007, 12:17:35 pm
Well, I had this kind of troubles too when the SVN version needed fpc 2.2.0 instead of 2.0.4.

Here's an alternative approach.

Download a Lazarus snapshot with fpc 2.2.0 (or 2.2.1 if you want).
Install this instead of your old copy (just remove the Laz and fpc directory).

You now have a working Lazarus with the new fpc with all the paths and config files setup properly.

Now you can use svn to update the source and rebuild lazarus.

There is a problem with windres and the path to cpp.exe under Win9x. Vincent describes this in another thread where I described my problems with the buildprocess (http://www.lazarus.freepascal.org/index.php?name=PNphpBB2&file=viewtopic&t=4390&highlight=). Reading that thread might help you in some way?

Some questions to make it easier for us to help:


Don't give up ;-)

Bart
Title: Subversion
Post by: cov on November 12, 2007, 06:52:43 am
>      What OS are you running?

On this box it's XP

>      What is your PATH when you do the build?

Changed to include path to the fpc 2.2.1 executables.

>      In what directory is your fpc.exe, make.exe and windres.exe?

"C:\Programs\lazarus\fpc\2.2.1\bin\i386-win32\make.exe"

>      How dou you invoke the make command (what parameters)?

"C:\Programs\lazarus\fpc\2.2.1\bin\i386-win32\make.exe" clean all

>      What errormessages were displayed when you last tried to make >Lazarus (when you said: "Nope it's totally broken")?

Sorry, it's not 'totally broken', it just doesn't compile over the top of the existing Lazarus install any more. With a bit of fudging and manual deletion of files, doing searches for the executables, etc, I can get it to work.

But it's not as elegant as it used to be ;)


>Don't give up

I won't!

Thanks for your help.
Title: Subversion
Post by: BrainChemistry on November 18, 2007, 01:28:17 pm
On compiling the newest revision (12913) I get this:

(http://unterhaltung.freepage.de/tycoon/sam/error.GIF)

FPC: 2.0.4 (would like to stick to it for personal reasons)
OS: WinXP

Any ideas?
Title: Subversion
Post by: Marc on November 19, 2007, 12:26:26 pm
iirc should be fixed now
Title: Subversion
Post by: Bart on November 19, 2007, 09:05:56 pm
As far as I understood it Lazarus SVN needs fpc 2.2.0 or it will not compile?

Bart
Title: Subversion
Post by: Marc on November 20, 2007, 11:52:48 am
I try to stay compatible with 2.0.4, but since it isn't use in active development, it might break sometimes
Title: Subversion
Post by: BrainChemistry on November 21, 2007, 05:44:10 pm
Hi there!

Tx for the fast reply and fixing Marc!

Well... now I receive a further error on compiling later on.

Code: [Select]

make -C lcl all
make[1]: Entering directory `C:/FPC/lazarus/lcl'
C:/FPC/2.0.4/bin/i386-Win32/rm.exe -f units/i386-win32/alllclunits.ppu
C:/FPC/2.0.4/bin/i386-Win32/ppc386.exe -gl -Fu. -Fuforms -Fuwidgetset -Fiinclude -FE. -FUunits/i386-win32 -di386 alllclunits.pp
Free Pascal Compiler version 2.0.4 [2006/08/21] for i386
Copyright (c) 1993-2006 by Florian Klaempfl
Target OS: Win32 for i386
Compiling alllclunits.pp
72 Lines compiled, 1.0 sec
make -C interfaces all
make[2]: Entering directory `C:/FPC/lazarus/lcl/interfaces'
make -C win32 all
make[3]: Entering directory `C:/FPC/lazarus/lcl/interfaces/win32'
C:/FPC/2.0.4/bin/i386-Win32/rm.exe -f ../../units/i386-win32/win32/interfaces.ppu \
../../units/i386-win32/win32/interfaces.o
C:/FPC/2.0.4/bin/i386-Win32/ppc386.exe -gl -Fu../../units/i386-win32 -Fu. -FE. -FU../../units/i386-win32/win32 -di386 interfaces.pp
Free Pascal Compiler version 2.0.4 [2006/08/21] for i386
Copyright (c) 1993-2006 by Florian Klaempfl
Target OS: Win32 for i386
Compiling interfaces.pp
Compiling Win32Int.pp
Win32Int.pp(27,26) Warning: User defined: Fix implicit pointer conversions
Fatal: Can't find unit CommCtrl
Fatal: Compilation aborted
make[3]: Leaving directory `C:/FPC/lazarus/lcl/interfaces/win32'
make[2]: Leaving directory `C:/FPC/lazarus/lcl/interfaces'
make[1]: Leaving directory `C:/FPC/lazarus/lcl'


Same system at all :).
Title: Subversion
Post by: Leledumbo on November 23, 2007, 06:00:55 am
Is that unit in your fpc path? It's a part of winunits.
Title: Subversion
Post by: BrainChemistry on November 23, 2007, 02:22:44 pm
Quote from: "Leledumbo"
Is that unit in your fpc path? It's a part of winunits.


Thx for your reply.

Well. Actually any subdirectory of the unit folder is included in FPC by default, isn't it? - Checked the winunits directory and didn't find any file called "CommCtrl" there. Is this a new unit to Ver. 2.2.0 of FPC?
Title: Subversion
Post by: Vincent Snijders on November 23, 2007, 03:17:20 pm
The CommCtrl unit is now part of the FPC.

Old situation (0.9.22 + fpc 2.0.4). CommCtrl unit in the LCL used by all platforms.

New situation (fpc 2.2.0 + Lazrus 0.9.24): A more complete CommCtrl in the fpc winunits package, windows only. For other platforms the types that the LCL needs can be found in the LCLTypes unit.

Conclusion: You cannot use fpc 2.0.4 to compile Lazarus 0.9.24 on windows.
Title: Subversion
Post by: BrainChemistry on November 24, 2007, 03:06:43 pm
Thanks though.
TinyPortal © 2005-2018