Check out projects: Difference between revisions

From VrlWiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
== Checking out a project ==
== Checking out a project ==
Before checking out a project, be sure that your development environment is [[$G in practice|set up for $G]].
Before checking out a project, be sure that your development environment is [[$G in practice|set up for $G]].


$G uses CVS for source control and you can read more about it [http://www.nongnu.org/cvs/ on its official site] or [[w:Concurrent Versions System|on Wikipedia]].
$G uses CVS for source control and you can read more about it [http://www.nongnu.org/cvs/ on its official site] or [[w:Concurrent Versions System|on Wikipedia]].


So, for example, if your user id is "goo" and you wanted to check out the "wrist" project, you should type:
After you have your Sandbox set up you can checkout a project.  If you wanted to check out the '''"wrist"''' project, you would type:


<pre>
<pre>
  > mkdir  /map/gfx0/users/goo
   > cd    /map/gfx0/users/$USER  # Go into your Sandbox.
   > cd    /map/gfx0/users/goo
   > cvs  co  project/wrist        # Creates:  /map/gfx0/users/goo/project/wrist/...
   > cvs  co  project/wrist        # Creates:  /map/gfx0/users/goo/project/wrist/...
</pre>
</pre>
Line 21: Line 21:
  > cp -R /map/gfx0/tools/linux/import/blitz/  /map/gfx0/users/$USER/import/blitz/
  > cp -R /map/gfx0/tools/linux/import/blitz/  /map/gfx0/users/$USER/import/blitz/


The wrist project is a large project composed of several programs and libraries.  It follows the convention of using a Makefile in the top level directory to build the entire project.  Each project developer decides how their projects are organized and how they are built.  You'll need to look at documentation for a project to determine how to build it.
The wrist project is a large project composed of several programs and libraries.  It follows the convention of using a '''Makefile''' in the top level directory to build the entire project.  Each project developer decides how their projects are organized and how they are built.  You'll need to look at documentation for a project to determine how to build it.


Continuing the wrist project example from above, you would type:
Continuing the wrist project example from above, you would type:
Line 27: Line 27:
  > cd  /map/gfx0/users/goo/project/wrist
  > cd  /map/gfx0/users/goo/project/wrist
  > make  all
  > make  all


== Building a Project on Linux ==
== Building a Project on Linux ==

Revision as of 13:15, 21 April 2010

Checking out a project

Before checking out a project, be sure that your development environment is set up for $G.

$G uses CVS for source control and you can read more about it on its official site or on Wikipedia.

After you have your Sandbox set up you can checkout a project. If you wanted to check out the "wrist" project, you would type:

   > cd     /map/gfx0/users/$USER  # Go into your Sandbox.
   > cvs  co  project/wrist        # Creates:  /map/gfx0/users/goo/project/wrist/...

Please do not waste space and retain only the files you need. When you are done with your account please be sure to delete it.


Building a Project on Linux

Before a project can be built any dependent packages need to be in the import/ directory. The wrist project depends on Blitz.

> cp -R /map/gfx0/tools/linux/import/blitz/  /map/gfx0/users/$USER/import/blitz/

The wrist project is a large project composed of several programs and libraries. It follows the convention of using a Makefile in the top level directory to build the entire project. Each project developer decides how their projects are organized and how they are built. You'll need to look at documentation for a project to determine how to build it.

Continuing the wrist project example from above, you would type:

> cd  /map/gfx0/users/goo/project/wrist
> make  all


Building a Project on Linux

Type "make all" to build a project. Continuing the wrist project example from above, you would type:

   > cd/d  Y:\map\gfx0\users\goo\project\wrist
   > make  all


By convention simple projects that build a single program or library can be built just by typing "make".