<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.slicer.org/w/index.php?action=history&amp;feed=atom&amp;title=Documentation%2F4.10%2FDevelopers%2FBuild_Instructions%2FCheckoutSourceCode</id>
	<title>Documentation/4.10/Developers/Build Instructions/CheckoutSourceCode - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.slicer.org/w/index.php?action=history&amp;feed=atom&amp;title=Documentation%2F4.10%2FDevelopers%2FBuild_Instructions%2FCheckoutSourceCode"/>
	<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Documentation/4.10/Developers/Build_Instructions/CheckoutSourceCode&amp;action=history"/>
	<updated>2026-06-10T02:35:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>https://www.slicer.org/w/index.php?title=Documentation/4.10/Developers/Build_Instructions/CheckoutSourceCode&amp;diff=61831&amp;oldid=prev</id>
		<title>Unknown user: Text replacement - &quot;slicerWiki/index.php&quot; to &quot;wiki&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Documentation/4.10/Developers/Build_Instructions/CheckoutSourceCode&amp;diff=61831&amp;oldid=prev"/>
		<updated>2019-11-21T17:05:30Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;slicerWiki/index.php&amp;quot; to &amp;quot;wiki&amp;quot;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 17:05, 21 November 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l81&quot; &gt;Line 81:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 81:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   4.3.0               22408               trunk&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   4.3.0               22408               trunk&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;''More corresponding SVN revision numbers can be found [http://wiki.slicer.org/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;slicerWiki/index.php&lt;/del&gt;/Release_Details here] and [http://slicer.kitware.com/midas3/slicerpackages/view here]''. The &amp;lt;tt&amp;gt;&amp;lt;MARKER&amp;gt;&amp;lt;/tt&amp;gt; can be found at the bottom of this page http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&amp;amp;revision=SVNREVISION by replacing &amp;lt;tt&amp;gt;SVNREVISION&amp;lt;/tt&amp;gt; with the selected revision.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;''More corresponding SVN revision numbers can be found [http://wiki.slicer.org/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;wiki&lt;/ins&gt;/Release_Details here] and [http://slicer.kitware.com/midas3/slicerpackages/view here]''. The &amp;lt;tt&amp;gt;&amp;lt;MARKER&amp;gt;&amp;lt;/tt&amp;gt; can be found at the bottom of this page http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&amp;amp;revision=SVNREVISION by replacing &amp;lt;tt&amp;gt;SVNREVISION&amp;lt;/tt&amp;gt; with the selected revision.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;''For example, to checkout the source code associated with revision &amp;lt;tt&amp;gt;4.8.1&amp;lt;/tt&amp;gt;, you would use the following command:''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;''For example, to checkout the source code associated with revision &amp;lt;tt&amp;gt;4.8.1&amp;lt;/tt&amp;gt;, you would use the following command:''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Unknown user</name></author>
		
	</entry>
	<entry>
		<id>https://www.slicer.org/w/index.php?title=Documentation/4.10/Developers/Build_Instructions/CheckoutSourceCode&amp;diff=59694&amp;oldid=prev</id>
		<title>UpdateBot: Nightly -&gt; 4.10</title>
		<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Documentation/4.10/Developers/Build_Instructions/CheckoutSourceCode&amp;diff=59694&amp;oldid=prev"/>
		<updated>2018-10-19T00:41:20Z</updated>

		<summary type="html">&lt;p&gt;Nightly -&amp;gt; 4.10&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;{{documentation/versioncheck}}&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
== CHECKOUT slicer source files ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
2. Even if you use &amp;lt;code&amp;gt;svn&amp;lt;/code&amp;gt; to check out Slicer source code, you will need to have &amp;lt;code&amp;gt;git&amp;lt;/code&amp;gt; installed to checkout and build other libraries. '''YES''', you need to install the things listed in the [[Documentation/{{documentation/version}}/Developers/Build Instructions/Prerequisites|prerequisites]] !.&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
3. Reading the following page: [[Slicer:git-svn|Slicer guide to &amp;lt;code&amp;gt;git-svn&amp;lt;/code&amp;gt;]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
=== Git ===&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;span id=&amp;quot;Git&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
Checking the code using Git and configuring the &amp;lt;code&amp;gt;git svn&amp;lt;/code&amp;gt; bridge is the way to go. If you plan on contributing code, have a look at [[Documentation/{{documentation/version}}/Developers/Tutorials/ContributePatch|How to contribute a patch ?]]&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Check out the code using &amp;lt;code&amp;gt;git&amp;lt;/code&amp;gt; and configure the &amp;lt;code&amp;gt;git svn&amp;lt;/code&amp;gt; bridge:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:none; border-left:thick solid red; padding-left:1em;&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;While it is not enforced, we strongly recommend you to '''AVOID''' the use of '''SPACES''' for both the &amp;lt;code&amp;gt;source directory&amp;lt;/code&amp;gt; and the &amp;lt;code&amp;gt;build directory&amp;lt;/code&amp;gt;. We mean it.&lt;br /&gt;
  &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol style=&amp;quot;list-style-type:none; border-left:thick solid red; padding-left:1em;&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;li&amp;gt;Due to maximum path length limitations during build the build process, source and build folders must be located in a folder with very short total path length. This is expecially critical on Windows. For example, C:\D\S4 for source and C:\D\S4R for release-mode build folder works.&lt;br /&gt;
  &amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol start=&amp;quot;1&amp;quot; style=&amp;quot;list-style-type: decimal;&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;li&amp;gt;&lt;br /&gt;
    &amp;lt;p&amp;gt;Clone the github repository&amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;pre&amp;gt;cd MyProjects&lt;br /&gt;
git clone git://github.com/Slicer/Slicer.git&amp;lt;/pre&amp;gt;&lt;br /&gt;
The &amp;lt;code&amp;gt;Slicer&amp;lt;/code&amp;gt; directory is automatically created after cloning Slicer.&lt;br /&gt;
  &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;li&amp;gt;&lt;br /&gt;
    &amp;lt;p&amp;gt;Setup the development environment:&amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;pre&amp;gt;cd Slicer&lt;br /&gt;
./Utilities/SetupForDevelopment.sh&amp;lt;/pre&amp;gt;&lt;br /&gt;
    &amp;lt;p&amp;gt;For more details see [[Documentation/Nightly/Developers/DevelopmentWithGit | Development With Git]].&amp;lt;/p&amp;gt;&lt;br /&gt;
    &amp;lt;p&amp;gt;On Windows enter the commands above in to a bash shell, such as Git Bash (part of msysgit) or use a Git client with a graphical user interface.&amp;lt;/p&amp;gt;&lt;br /&gt;
  &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;li&amp;gt;&lt;br /&gt;
    &amp;lt;p&amp;gt;Configure the &amp;lt;code&amp;gt;git svn&amp;lt;/code&amp;gt; bridge to ensure the mapping with svn revision.&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;git-svn is only required for core developers with svn access - other people can skip it.&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
{{pre2|scroll|&lt;br /&gt;
cd Slicer&lt;br /&gt;
git svn init http://svn.slicer.org/Slicer4/trunk&lt;br /&gt;
git update-ref refs/remotes/git-svn refs/remotes/origin/master&lt;br /&gt;
git checkout master&lt;br /&gt;
git svn rebase&lt;br /&gt;
}}&lt;br /&gt;
   &amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note for &amp;lt;b&amp;gt;Mac OSX El Capitan&amp;lt;/b&amp;gt;: &lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
You might need to link SVN from XCode if you find that &amp;lt;code&amp;gt;git svn&amp;lt;/code&amp;gt; is broken. To get correct links and bypass El Capitan's SIP use these commands &amp;lt;/p&amp;gt;&lt;br /&gt;
{{pre2|scroll|&lt;br /&gt;
sudo mkdir /Library/Perl/5.18/auto&lt;br /&gt;
sudo ln -s /Applications/Xcode.app/Contents/Developer/Library/Perl/5.18/darwin-thread-multi-2level/SVN /Library/Perl/5.18/darwin-thread-multi-2level&lt;br /&gt;
sudo ln -s /Applications/Xcode.app/Contents/Developer/Library/Perl/5.18/darwin-thread-multi-2level/auto/SVN /Library/Perl/5.18/auto/&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
''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. To do so, replace &amp;lt;tt&amp;gt;&amp;lt;MARKER&amp;gt;&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;&amp;lt;SVNREVISION&amp;gt;&amp;lt;/tt&amp;gt; in the command below with the selected revision and marker:''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
svn co http://svn.slicer.org/Slicer4/&amp;lt;MARKER&amp;gt; Slicer-r&amp;lt;SVNREVISION&amp;gt; -r &amp;lt;SVNREVISION&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  '''Release'''             '''SVN revision#'''       '''Marker'''&lt;br /&gt;
  4.8.1               26813               branches/Slicer-4-8&lt;br /&gt;
  4.8.0               26489               trunk&lt;br /&gt;
  4.6.2               25516               branches/Slicer-4-6&lt;br /&gt;
  4.5.0-1             24735               trunk&lt;br /&gt;
  4.4                 23774               trunk&lt;br /&gt;
  4.3.1               22599               branches/Slicer-4-3&lt;br /&gt;
  4.3.0               22408               trunk&lt;br /&gt;
&lt;br /&gt;
''More corresponding SVN revision numbers can be found [http://wiki.slicer.org/slicerWiki/index.php/Release_Details here] and [http://slicer.kitware.com/midas3/slicerpackages/view here]''. The &amp;lt;tt&amp;gt;&amp;lt;MARKER&amp;gt;&amp;lt;/tt&amp;gt; can be found at the bottom of this page http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&amp;amp;revision=SVNREVISION by replacing &amp;lt;tt&amp;gt;SVNREVISION&amp;lt;/tt&amp;gt; with the selected revision.&lt;br /&gt;
&lt;br /&gt;
''For example, to checkout the source code associated with revision &amp;lt;tt&amp;gt;4.8.1&amp;lt;/tt&amp;gt;, you would use the following command:''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
svn co http://svn.slicer.org/Slicer4/branches/Slicer-4-8 Slicer-r26813 -r 26813&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
=== Svn ===&lt;br /&gt;
&lt;br /&gt;
To simply build Slicer, getting the code using &amp;lt;code&amp;gt;svn&amp;lt;/code&amp;gt; is a more straight-forward approach.&lt;br /&gt;
&lt;br /&gt;
  svn co http://svn.slicer.org/Slicer4/trunk Slicer&lt;br /&gt;
--&amp;gt;&lt;/div&gt;</summary>
		<author><name>UpdateBot</name></author>
		
	</entry>
</feed>