Difference between revisions of "Documentation/4.0/Developers/Build Instructions"

From Slicer Wiki
Jump to: navigation, search
m
Line 3: Line 3:
  
 
== How to get started ? ==
 
== How to get started ? ==
* Prerequisites: Download QT >= 4.62
+
 
* Step1 : Checkout  
+
* '''Prerequisites''' - Download (and if required compile) Qt - Use one of the link provided below:
 +
 
 +
{| border="1"
 +
|- bgcolor="#FFFFCC"
 +
!rowspan="3"|
 +
!colspan="2" rowspan="2"|Linux
 +
!colspan="4"|Mac
 +
!colspan="2" rowspan="2"|Windows
 +
|- bgcolor="#FFFFCC"
 +
!colspan="2"|Tiger
 +
!colspan="2"|SnowLeopard
 +
|- bgcolor="#FFFFCC"
 +
!|32bits
 +
!|64bits
 +
!|32bits
 +
!|64bits
 +
!|32bits
 +
!|64bits
 +
!|32bits
 +
!|64bits
 +
|-
 +
! bgcolor="#FFFFCC" | [http://get.qt.nokia.com/qt/source/ Qt source link]
 +
|align="center" colspan="4"| [http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.6.2.tar.gz 4.6.2]
 +
|align="center" colspan="2"| [http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.0-beta1.tar.gz 4.7 beta]
 +
|align="center" colspan="2"| [http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.6.2.zip 4.6.2]
 +
|-
 +
! bgcolor="#FFFFCC" | [http://get.qt.nokia.com/qt/source/  Qt binary link]
 +
|align="center" colspan="1"| [http://get.qt.nokia.com/qtsdk/qt-sdk-linux-x86-opensource-2010.02.bin 4.6.2]
 +
|align="center" colspan="1"| [http://get.qt.nokia.com/qtsdk/qt-sdk-linux-x86_64-opensource-2010.02.bin 4.6.2]
 +
|align="center" colspan="2"| [http://get.qt.nokia.com/qtsdk/qt-sdk-mac-opensource-2010.02.dmg 4.6.2]
 +
|align="center" colspan="2"| [http://get.qt.nokia.com/qt/source/qt-mac-opensource-4.7.0-beta1.dmg 4.7 beta]
 +
|align="center" colspan="1"| [http://get.qt.nokia.com/qt/source/qt-win-opensource-4.6.2-vs2008.exe 4.6.2 (vs2008)]
 +
|align="center" colspan="1"| -
 +
|}
 +
 
 +
 
 +
* '''Step1''' : Checkout slicer sources using subversion
 +
For example:
 
<pre>
 
<pre>
 
cd MyProjects
 
cd MyProjects
svn co http://svn.slicer.org/Slicer3/
+
svn co http://svn.slicer.org/Slicer3/trunk
 +
</pre>
 +
 
 +
 
 +
* '''Step2''' : Configure slicer project using either ccmake or cmake-gui - The grids displayed below summarized the available options
 +
 
 +
''Using ccmake'':
 +
<pre>
 
mkdir Slicer3-SuperBuild
 
mkdir Slicer3-SuperBuild
 
cd Slicer3-SuperBuild
 
cd Slicer3-SuperBuild
Line 13: Line 57:
 
</pre>
 
</pre>
  
* Step2: Enable options
+
''Using cmake-gui''
 +
<pre>
 +
Where is the source code: C:/MyProjects/Slicer3/SuperBuild
 +
Where to build the binaries: C:/MyProjects/Slicer3-Superbuild
 +
</pre>
 +
 
 +
Set of options and supported plateforms:
 +
 
 +
{| border="1"
 +
|- bgcolor="#FFFFCC"
 +
! colspan="4"| Options
 +
! colspan="3"| Platform
 +
|- bgcolor="#FFFFCC"
 +
!| Slicer3_USE_KWWIDGETS
 +
!| Slicer3_USE_PYTHON
 +
!| Slicer3_USE_QT
 +
!| Slicer3_USE_PYTHONQT
 +
!| Linux
 +
!| Mac
 +
!| windows
 +
|-
 +
|align="center" bgcolor="lightgreen"| ON
 +
|align="center" bgcolor="lightgreen"| ON
 +
|align="center"| OFF
 +
|align="center"| OFF
 +
|align="center" bgcolor="lightgreen"| Y
 +
|align="center" bgcolor="lightgreen"| Y
 +
|align="center" bgcolor="lightgreen"| Y
 +
|-
 +
|align="center" bgcolor="lightgreen"| ON
 +
|align="center"| OFF
 +
|align="center"| OFF
 +
|align="center"| OFF
 +
|align="center" bgcolor="lightgreen"| Y
 +
|align="center" bgcolor="lightgreen"| Y
 +
|align="center" bgcolor="lightgreen"| Y
 +
|-
 +
|align="center" bgcolor="lightgreen"| ON
 +
|align="center" bgcolor="lightgreen"| ON
 +
|align="center" bgcolor="lightgreen"| ON
 +
|align="center"| OFF
 +
|align="center" bgcolor="lightgreen"| Y
 +
|align="center" bgcolor="lightgray"| N
 +
|align="center" bgcolor="lightgreen"| Y
 +
|-
 +
|align="center"| OFF
 +
|align="center"| OFF
 +
|align="center" bgcolor="lightgreen"| ON
 +
|align="center"| OFF
 +
|align="center" bgcolor="lightgreen"| Y
 +
|align="center" bgcolor="lightgreen"| Y
 +
|align="center" bgcolor="lightgreen"| Y
 +
|-
 +
|align="center"| OFF
 +
|align="center"| OFF
 +
|align="center" bgcolor="lightgreen"| ON
 +
|align="center" bgcolor="lightgreen"| ON
 +
|align="center" bgcolor="lightgreen"| Y
 +
|align="center" bgcolor="lightgreen"| Y
 +
|align="center" bgcolor="lightgreen"| Y
 +
|}
  
* Step3: Configure and Generate
+
* '''Step3''': Configure and Generate the solution files
  
* Step4: Build
+
* '''Step4''': Build
  
 
== Supported platform and options ==
 
== Supported platform and options ==

Revision as of 22:58, 1 June 2010

Home < Documentation < 4.0 < Developers < Build Instructions

Overview

Superbuild is a new

How to get started ?

  • Prerequisites - Download (and if required compile) Qt - Use one of the link provided below:
Linux Mac Windows
Tiger SnowLeopard
32bits 64bits 32bits 64bits 32bits 64bits 32bits 64bits
Qt source link 4.6.2 4.7 beta 4.6.2
Qt binary link 4.6.2 4.6.2 4.6.2 4.7 beta 4.6.2 (vs2008) -


  • Step1 : Checkout slicer sources using subversion

For example:

cd MyProjects
svn co http://svn.slicer.org/Slicer3/trunk


  • Step2 : Configure slicer project using either ccmake or cmake-gui - The grids displayed below summarized the available options

Using ccmake:

mkdir Slicer3-SuperBuild
cd Slicer3-SuperBuild
ccmake -DQT_QMAKE_EXECUTABLE:FILEPATH=/home/myself/qt-4.6.2/qt/bin/qmake ../Slicer3/SuperBuild

Using cmake-gui

Where is the source code: C:/MyProjects/Slicer3/SuperBuild
Where to build the binaries: C:/MyProjects/Slicer3-Superbuild

Set of options and supported plateforms:

Options Platform
Slicer3_USE_KWWIDGETS Slicer3_USE_PYTHON Slicer3_USE_QT Slicer3_USE_PYTHONQT Linux Mac windows
ON ON OFF OFF Y Y Y
ON OFF OFF OFF Y Y Y
ON ON ON OFF Y N Y
OFF OFF ON OFF Y Y Y
OFF OFF ON ON Y Y Y
  • Step3: Configure and Generate the solution files
  • Step4: Build

Supported platform and options