Difference between revisions of "Documentation/Nightly/Developers/Build Instructions/CheckoutSourceCode"

From Slicer Wiki
Jump to: navigation, search
m
Line 51: Line 51:
 
}}
 
}}
 
   </li>
 
   </li>
 +
 +
 +
''If you plan to compile Slicer to develop your own extensions and test these extensions on Slicer releases, it is convenient to download the source code directly from SVN and specify the revision number corresponding to the release you want.''
 +
<pre>
 +
svn co http://svn.slicer.org/Slicer4/trunk Slicer-r23774 -r 23774
 +
</pre>
 +
 +
  '''Release'''        '''SVN revision#'''
 +
  4.4                23774
 +
  4.3.1              22599
 +
  4.3.0              22408
 +
 +
''More correspondance can be found [http://slicer.kitware.com/midas3/slicerpackages/view here]''
 +
 +
 
</ol>
 
</ol>
 
 
<!--
 
<!--
 
=== Svn ===
 
=== Svn ===

Revision as of 20:29, 6 November 2014

Home < Documentation < Nightly < Developers < Build Instructions < CheckoutSourceCode


For the latest Slicer documentation, visit the read-the-docs.


CHECKOUT slicer source files


Check out the code using git and configure the git svn bridge:

  1. While it is not enforced, we strongly recommend you to AVOID the use of SPACES for both the source directory and the build directory. We mean it.
  1. Clone the github repository

    cd MyProjects
    git clone git://github.com/Slicer/Slicer.git

    The Slicer directory is automatically created after cloning Slicer.

  2. Setup the development environment:

    cd Slicer
    ./Utilities/SetupForDevelopment.sh

    For more details see Development With Git.

  3. Configure the git svn bridge to ensure the mapping with svn revision.

    cd Slicer
    git svn init http://svn.slicer.org/Slicer4/trunk
    git update-ref refs/remotes/git-svn refs/remotes/origin/master
    git checkout master
    git svn rebase
  4. If you plan to compile Slicer to develop your own extensions and test these extensions on Slicer releases, it is convenient to download the source code directly from SVN and specify the revision number corresponding to the release you want.
    svn co http://svn.slicer.org/Slicer4/trunk Slicer-r23774 -r 23774
    
     Release         SVN revision#
     4.4                 23774
     4.3.1               22599
     4.3.0               22408
    

    More correspondance can be found here