gpsim CVS

If you need to be on the bleeding edge, you can get the code straight from gpsim's CVS repository on gpsim's SourceForge Page , which is of course hosted by SourceForge. But BE WARNED, the CVS is development code and may be unstable!

Getting the source

First you have to 'login' anonymously to the SorceForge CVS server. This doesn't do anything fancy other than to tell SorceForge that you want to estabilish a link:

cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/gpsim login
When prompted for a password, just press return. You don't need a pass word for anonymous access.

next, you need to checkout the files:

cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/gpsim checkout .

Don't forget the '.' (period) on the end of the command. This tells cvs that you want everything. Keep in mind that this will download the code on your local computer in the directory from which the command was launched. So you may wish to create a special directory (mkdir gpsim_cvs) and download the code there.

Compiling your CVS copy the first time

When you get the code from CVS this first time, you'll have to go through a couple of extra steps to build it. But those steps are really simple. In the directory you downloaded gpsim from CVS, enter these commands:

$ libtoolize --force
$ aclocal
$ autoheader
$ automake --force-missing --add-missing
$ autoconf
$ ./configure
$ make

Go get a cup of coffee and read /. as your computer cranks through compiling gpsim. When it's done, you can then install it:


$ su root
# make install
# exit

And you should be ready to go!

Libraries and Modules

The instructions given above are suitable for building gpsim. However, it's possible to embed gpsim into a custom simulation environment (see KTechLab). Chances are you'll want to build a shared library instead of a static one. This can be accomplished by specify --enable-shared as an option to the configure:

$ ./configure --enable-shared

Getting updates from CVS

If one of the developers makes a change to CVS and you just want to update your local copy, then all you need to do is this:

cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/gpsim update

The 'update' command will compare your local copy with the master CVS copy and then update your's with the differences. It's a whole faster than re-downloading everything.

Links

gpsim

gpsim's CVS repository

SourceForge


This page is maintained by Scott Dattalo. You can reach me at home: scott@dattalo.com
Last modified on 14JUN04.