<?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.4%2FDevelopers%2FBuild_Instructions%2FConfigure</id>
	<title>Documentation/4.4/Developers/Build Instructions/Configure - 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.4%2FDevelopers%2FBuild_Instructions%2FConfigure"/>
	<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Documentation/4.4/Developers/Build_Instructions/Configure&amp;action=history"/>
	<updated>2026-04-21T17:30:38Z</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.4/Developers/Build_Instructions/Configure&amp;diff=40187&amp;oldid=prev</id>
		<title>UpdateBot: Nightly -&gt; 4.4</title>
		<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Documentation/4.4/Developers/Build_Instructions/Configure&amp;diff=40187&amp;oldid=prev"/>
		<updated>2014-12-25T06:43:31Z</updated>

		<summary type="html">&lt;p&gt;Nightly -&amp;gt; 4.4&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;
== CONFIGURE and generate Slicer solution files ==&lt;br /&gt;
You can configure and generate Slicer solution files using either &amp;lt;code&amp;gt;ccmake&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;cmake-gui&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--&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;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Per-platform instructions===&lt;br /&gt;
==== Windows ====&lt;br /&gt;
*'''Recommended''': &amp;lt;code&amp;gt;cmake-gui&amp;lt;/code&amp;gt;&lt;br /&gt;
** Configure using default options.&lt;br /&gt;
** Set the build directory. For example: &amp;lt;code&amp;gt;C:\Slicer-SuperBuild-Debug&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;C:\Slicer-SuperBuild-Release&amp;lt;/code&amp;gt;.&lt;br /&gt;
* '''Remarks''':&lt;br /&gt;
#If you downloaded the Qt binary then &amp;lt;code&amp;gt;qmake&amp;lt;/code&amp;gt; will be detected and all paths will be set automatically.  &lt;br /&gt;
#If you built your own Qt (e.g. in Debug mode for use with the designer) set the &amp;lt;code&amp;gt;QT_QMAKE_EXECUTABLE&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;cmake-gui&amp;lt;/code&amp;gt;.&amp;lt;code&amp;gt;QT_QMAKE_EXECUTABLE&amp;lt;/code&amp;gt; should be set to the path of the qmake.exe file, which is inside the bin directory (for example, &amp;lt;code&amp;gt;\path\to\qt-everywhere-opensource-build-4.8.6\bin\qmake.exe&amp;lt;/code&amp;gt;). &lt;br /&gt;
#You cannot use the same build tree for both release or debug mode builds. If both build types are needed, then the same source directory can be used, but a separate build directory should be created and configured for each build type.&lt;br /&gt;
#SimpleITK has to be disabled for building in debug mode. See more information at http://www.na-mic.org/Bug/view.php?id=3816 (you get this error if you attempt it: LINK : fatal error LNK1104: cannot open file 'python27_d.lib')&lt;br /&gt;
#Windows [http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx#maxpath doesn't support path longer than 260 characters], please make sure that the total path name of your &amp;lt;code&amp;gt;Slicer-build&amp;lt;/code&amp;gt; directory is no longer than 50 characters ( for example &amp;lt;code&amp;gt;c:\work\Slicer\Slicer-SuperBuild&amp;lt;/code&amp;gt; (32 characters) is fine)&lt;br /&gt;
#Visual Studio will select Debug build configuration by default when you first open the solution in the Visual Studio GUI. If you build Slicer in release mode and accidentally forget to switch the build configuration to Release then the build will fail. If you are making a release build, then you can avoid the need for a manual build configuration switching by setting your CMAKE_CONFIGURATION_TYPES to Release.&lt;br /&gt;
# [[Documentation/{{documentation/version}}/Developers/Tutorials/Debug_Instructions|Step-by-step debug instuctions]]&lt;br /&gt;
&lt;br /&gt;
==== Unix-like ====&lt;br /&gt;
*'''Recommended''': &amp;lt;code&amp;gt;ccmake&amp;lt;/code&amp;gt;&lt;br /&gt;
** Configure using the following commands. By default '''CMAKE_BUILD_TYPE''' is set to '''Debug'''.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir Slicer-SuperBuild-Debug&lt;br /&gt;
cd Slicer-SuperBuild-Debug&lt;br /&gt;
cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DQT_QMAKE_EXECUTABLE:FILEPATH=/path/to/QtSDK/Desktop/Qt/486/gcc/bin/qmake ../Slicer&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where you replace ''/path/to/QtSDK'' with the real path on your machine where QtSDK is located&lt;br /&gt;
* '''Remarks''':&lt;br /&gt;
# Using top-level directory name like &amp;lt;code&amp;gt;Slicer-SuperBuild-Release&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;Slicer-SuperBuild-Debug&amp;lt;/code&amp;gt; is recommended.&lt;br /&gt;
# [[Documentation/{{documentation/version}}/Developers/Tutorials/Debug_Instructions|Step-by-step debug instuctions]]&lt;br /&gt;
&lt;br /&gt;
=== General information ===&lt;br /&gt;
&lt;br /&gt;
Two projects are generated by either &amp;lt;code&amp;gt;cmake&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ccmake&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;cmake-gui&amp;lt;/code&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
One of them is in the top-level bin directory &amp;lt;code&amp;gt;Slicer-SuperBuild&amp;lt;/code&amp;gt; and the other one is in the subdirectory &amp;lt;code&amp;gt;Slicer-build&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Slicer-SuperBuild/Slicer-build&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# The first project in &amp;lt;code&amp;gt;Slicer-SuperBuild&amp;lt;/code&amp;gt; manages all the external dependencies of Slicer (VTK, ITK, Python, ...). To build Slicer for the first time, run make (or build the solution file in Visual Studio) in &amp;lt;code&amp;gt;Slicer-SuperBuild&amp;lt;/code&amp;gt;, which will update and build the external libraries and if successful will then build the subproject Slicer-build.&amp;lt;br&amp;gt;&lt;br /&gt;
# The second project in &amp;lt;code&amp;gt;Slicer-SuperBuild/Slicer-build&amp;lt;/code&amp;gt; is the &amp;quot;traditional&amp;quot; build directory of Slicer.  After local changes in Slicer (or after an svn update on the source directory of Slicer), only running make (or building the solution file in Visual Studio) in &amp;lt;code&amp;gt;Slicer-SuperBuild/Slicer-build&amp;lt;/code&amp;gt; is necessary (the external libraries are considered built and up to date). &amp;lt;br&amp;gt;&lt;br /&gt;
#'''Warning''': An significant amount of disk space is required to compile Slicer in Debug (&amp;gt;10GB on Windows)&lt;br /&gt;
&lt;br /&gt;
=== Workaround firewall blocking git protocol ===&lt;br /&gt;
* Some firewall will be blocking the git protocol, a possible workaround is to configure Slicer disabling the option &amp;lt;code&amp;gt;Slicer_USE_GIT_PROTOCOL&amp;lt;/code&amp;gt;. Then http protocol will be used instead. Consider also reading https://github.com/commontk/CTK/issues/33&lt;br /&gt;
&lt;br /&gt;
=== Notes for advanced users ===&lt;br /&gt;
* By default, if CMake finds Java on your machine, it automatically builds Java CLIs. If you don't want any Java in your Slicer (or if you don't want to install Java on your Mac Os X), you can pass &amp;lt;code&amp;gt;-DCMAKE_DISABLE_FIND_PACKAGE_Java:BOOL=TRUE&amp;lt;/code&amp;gt; when configuring Slicer.&lt;br /&gt;
* Same applies for OpenSSL: &amp;lt;code&amp;gt;CMAKE_DISABLE_FIND_PACKAGE_OpenSSL:BOOL=TRUE&amp;lt;/code&amp;gt; can be passed when building Slicer for packaging.&lt;/div&gt;</summary>
		<author><name>UpdateBot</name></author>
		
	</entry>
</feed>