<?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.3%2FDevelopers%2FBuild_Instructions%2FConfigure</id>
	<title>Documentation/4.3/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.3%2FDevelopers%2FBuild_Instructions%2FConfigure"/>
	<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Documentation/4.3/Developers/Build_Instructions/Configure&amp;action=history"/>
	<updated>2026-04-12T01:10:25Z</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.3/Developers/Build_Instructions/Configure&amp;diff=35164&amp;oldid=prev</id>
		<title>UpdateBot: Nightly -&gt; 4.3</title>
		<link rel="alternate" type="text/html" href="https://www.slicer.org/w/index.php?title=Documentation/4.3/Developers/Build_Instructions/Configure&amp;diff=35164&amp;oldid=prev"/>
		<updated>2013-09-05T03:31:28Z</updated>

		<summary type="html">&lt;p&gt;Nightly -&amp;gt; 4.3&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;
=== 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.7.4\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;
#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;
#If you are making a release build, set your CMAKE_CONFIGURATION_TYPES to Release.  Otherwise Visual Studio will select Debug by default and your build tree can end up with a mix of release and debug libraries.&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-1.2/Desktop/Qt/474/gcc/bin/qmake ../Slicer&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where you replace ''/path/to'' with the real path on your machine where QtSDK-1.2 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>