Difference between revisions of "Documentation/4.0/Developers/Build Instructions"
From Slicer Wiki
Line 5: | Line 5: | ||
* '''Prerequisites''' - Download (and if required compile) Qt - Use one of the link provided below: | * '''Prerequisites''' - Download (and if required compile) Qt - Use one of the link provided below: | ||
+ | |||
{| border="1" | {| border="1" | ||
Line 39: | Line 40: | ||
|} | |} | ||
+ | ''How to build Qt ?'' | ||
+ | |||
+ | Configure options common to all platform: | ||
+ | |||
+ | Check our different tutorials: | ||
+ | - Build Qt on Windows | ||
+ | - Build Qt on Linux | ||
+ | - Build Qt on Mac | ||
* '''Step1''' : Checkout slicer sources using subversion | * '''Step1''' : Checkout slicer sources using subversion | ||
Line 67: | Line 76: | ||
{| border="1" | {| border="1" | ||
|- bgcolor="#FFFFCC" | |- bgcolor="#FFFFCC" | ||
+ | ! rowspan="2"| Description | ||
! colspan="4"| Options | ! colspan="4"| Options | ||
! colspan="3"| Platform | ! colspan="3"| Platform | ||
Line 78: | Line 88: | ||
!| windows | !| windows | ||
|- | |- | ||
+ | |align="center"| Kww-Python '''DEFAULT''' | ||
|align="center" bgcolor="lightgreen"| ON | |align="center" bgcolor="lightgreen"| ON | ||
|align="center" bgcolor="lightgreen"| ON | |align="center" bgcolor="lightgreen"| ON | ||
Line 86: | Line 97: | ||
|align="center" bgcolor="lightgreen"| Y | |align="center" bgcolor="lightgreen"| Y | ||
|- | |- | ||
+ | |align="center"| Kww-NoPython | ||
|align="center" bgcolor="lightgreen"| ON | |align="center" bgcolor="lightgreen"| ON | ||
|align="center"| OFF | |align="center"| OFF | ||
Line 94: | Line 106: | ||
|align="center" bgcolor="lightgreen"| Y | |align="center" bgcolor="lightgreen"| Y | ||
|- | |- | ||
+ | |align="center"| KwwAndQt-Python | ||
|align="center" bgcolor="lightgreen"| ON | |align="center" bgcolor="lightgreen"| ON | ||
|align="center" bgcolor="lightgreen"| ON | |align="center" bgcolor="lightgreen"| ON | ||
Line 102: | Line 115: | ||
|align="center" bgcolor="lightgreen"| Y | |align="center" bgcolor="lightgreen"| Y | ||
|- | |- | ||
+ | |align="center"| Qt-NoPythonQt | ||
|align="center"| OFF | |align="center"| OFF | ||
|align="center"| OFF | |align="center"| OFF | ||
Line 110: | Line 124: | ||
|align="center" bgcolor="lightgreen"| Y | |align="center" bgcolor="lightgreen"| Y | ||
|- | |- | ||
+ | |align="center"| Qt-PythonQt | ||
|align="center"| OFF | |align="center"| OFF | ||
|align="center"| OFF | |align="center"| OFF | ||
Line 118: | Line 133: | ||
|align="center" bgcolor="lightgreen"| Y | |align="center" bgcolor="lightgreen"| Y | ||
|} | |} | ||
+ | |||
+ | ''what is the difference between Python and PythonQt ?'' | ||
* '''Step3''': Configure and Generate the solution files | * '''Step3''': Configure and Generate the solution files | ||
+ | |||
* '''Step4''': Build | * '''Step4''': Build | ||
== Supported platform and options == | == Supported platform and options == |
Revision as of 23:07, 1 June 2010
Home < Documentation < 4.0 < Developers < Build InstructionsOverview
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) | - |
How to build Qt ?
Configure options common to all platform:
Check our different tutorials: - Build Qt on Windows - Build Qt on Linux - Build Qt on Mac
- 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:
Description | Options | Platform | |||||
---|---|---|---|---|---|---|---|
Slicer3_USE_KWWIDGETS | Slicer3_USE_PYTHON | Slicer3_USE_QT | Slicer3_USE_PYTHONQT | Linux | Mac | windows | |
Kww-Python DEFAULT | ON | ON | OFF | OFF | Y | Y | Y |
Kww-NoPython | ON | OFF | OFF | OFF | Y | Y | Y |
KwwAndQt-Python | ON | ON | ON | OFF | Y | N | Y |
Qt-NoPythonQt | OFF | OFF | ON | OFF | Y | Y | Y |
Qt-PythonQt | OFF | OFF | ON | ON | Y | Y | Y |
what is the difference between Python and PythonQt ?
- Step3: Configure and Generate the solution files
- Step4: Build