Recent

Author Topic: Subversion  (Read 16339 times)

cov

  • Full Member
  • ***
  • Posts: 231
Subversion
« 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?

gerardus

  • Jr. Member
  • **
  • Posts: 84
RE: Subversion
« Reply #1 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.

cov

  • Full Member
  • ***
  • Posts: 231
RE: Subversion
« Reply #2 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?

gerardus

  • Jr. Member
  • **
  • Posts: 84
RE: Subversion
« Reply #3 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

Zaher

  • Hero Member
  • *****
  • Posts: 604
    • parmaja.com
RE: Subversion
« Reply #4 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

Bart

  • Hero Member
  • *****
  • Posts: 4045
    • Bart en Mariska's Webstek
RE: Subversion
« Reply #5 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

cov

  • Full Member
  • ***
  • Posts: 231
RE: Subversion
« Reply #6 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?

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2514
RE: Subversion
« Reply #7 on: November 06, 2007, 01:28:59 pm »
it overwrites the exe already there
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

cov

  • Full Member
  • ***
  • Posts: 231
RE: Subversion
« Reply #8 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

gerardus

  • Jr. Member
  • **
  • Posts: 84
Re: RE: Subversion
« Reply #9 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:

cov

  • Full Member
  • ***
  • Posts: 231
Subversion
« Reply #10 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?

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Subversion
« Reply #11 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.

Bart

  • Hero Member
  • *****
  • Posts: 4045
    • Bart en Mariska's Webstek
Subversion
« Reply #12 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

cov

  • Full Member
  • ***
  • Posts: 231
Subversion
« Reply #13 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.

Bart

  • Hero Member
  • *****
  • Posts: 4045
    • Bart en Mariska's Webstek
Subversion
« Reply #14 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. Reading that thread might help you in some way?

Some questions to make it easier for us to help:
    What OS are you running?
    What is your PATH when you do the build?
    In what directory is your fpc.exe, make.exe and windres.exe?
    How dou you invoke the make command (what parameters)?
    What errormessages were displayed when you last tried to make Lazarus (when you said: "Nope it's totally broken")?


Don't give up ;-)

Bart

 

TinyPortal © 2005-2018