How do I compile Spring from the current CVS tree ?

How do I compile Spring from the current CVS tree ?

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
colorblind
Spring Developer
Posts: 374
Joined: 14 Mar 2005, 12:32

How do I compile Spring from the current CVS tree ?

Post by colorblind »

I'm not quite sure if this is the right place for my question, but here goes:

With all the frequent bug-hunting going on, I'm interested in obtaining a working copy from the most recently updated sourcecode. My first guess would be to checkout all files from the SF CVS, and then compile them. The only problem is that I don't have the faintest idea how to accomplish this (forgive me, for I am a n00b).
Is there a way to check out all files at once? (If there isn't an easy way, it would perhaps be a good idea to make the nightly tarballs publicly available ...)
And after obtaining the source, what programs do I need (on Windows) to compile the code?
User avatar
mother
Posts: 379
Joined: 04 May 2005, 05:43

Post by mother »

Well I can help with the first part, the second is so far out of my league... :evil:

Ok forget retrieving it using CVS, for the likes of you and I it doesn't buy much.

Assuming :roll: last nights files are good enough for you:
wget http://cvs.sourceforge.net/cvstarballs/ ... ot.tar.bz2

iIf you don't have wget, erm I guess just paste the badboy URL into your browser.

Now as to how to compile it. Im so lost!
This is the first package/project I've come across in I don't know how many years that doesn't use autotools... I really wanna contribute by setting it all up nice ./configure ./make ./make install
But alas Im entirely too inept to do it myself. (I couldn't even get it done for MapConv... I tried :oops: )

Happy code[voyeur]ing
jouninkomiko
Posts: 436
Joined: 26 Aug 2004, 08:11

Post by jouninkomiko »

if you have visual studio .net 2003, you can just load lesson2.sln and compile right from the get go. iirc, there is no means to do so in cygwin/mingw/linux yet, but a team is working on it.
User avatar
mother
Posts: 379
Joined: 04 May 2005, 05:43

Post by mother »

if you have visual studio .net 2003 <snip> there is no means to do so in cygwin/mingw/linux yet
Yeah, which is why ppl use the autotools, as they work on almost every platform (oh and its free as in beer and speach ;).

I can't wait till the x-platform group reaches that milestone... I still really wish I was less inept as a coder...

[Please don't take anything Im saying as criticism, I love you guys!! I just get all confused and scared when there isnt a configure script to run, kinda like a deer in headlights.]
User avatar
GrOuNd_ZeRo
Posts: 1370
Joined: 30 Apr 2005, 01:10

Post by GrOuNd_ZeRo »

the code looks all screwy to me, the extension have ,v added to them and there are various other weird stuff, i'm gonna try to redownload and compile the code...
el_muchacho
Posts: 201
Joined: 30 Apr 2005, 01:06

Post by el_muchacho »

The tarball given is a tarball of CVS patches. One needs the codebase given on the download page of this site and setup a CVS repository.
colorblind
Spring Developer
Posts: 374
Joined: 14 Mar 2005, 12:32

I got the code! On to compiling ...

Post by colorblind »

I don't like setting up my own repository; that's just too much trouble. Luckily the CVS manual on SF.net was good to me and gave me the following:

Code: Select all

cvs -d:pserver:anonymous@cvs.sf.net:/cvsroot/springrts export -Dtomorrow taspring
This does the job just fine (if you have a CVS client at hand). So all that is left is to actually compile the code and figure out what OTA content I need exactly. Any pointers on that last one?
el_muchacho
Posts: 201
Joined: 30 Apr 2005, 01:06

Post by el_muchacho »

colorblind
Spring Developer
Posts: 374
Joined: 14 Mar 2005, 12:32

Post by colorblind »

Many thanks, I got it working (at last).
Post Reply

Return to “Engine”