📄 To see the implemented Documentation click here.
💾 To download executable only, click here (might not work).
First, below is the folder structure.
.
ITK-SNAP
├── itk # v4.13.3
│ ├── src # source folder of itk
│ └── build # build directory of itk
├── vtk # v6.3.0
│ ├── src # source folder of vtk
│ └── build # build directory of vtk
├── qt5 # v5.12.0 // seems like newest version also works.
│ ├── src # source folder of qt5
│ └── build # build directory of qt5
├── build # build directory of itksnap
└── itksnap-v2 # source folder of itksnap
...
└── cmake # version seems not matter. Works in v3.16.0-rc3
# in ITK-SNAP/itk/build
cmake ../src
- Build itk
# in ITK-SNAP/itk/build
make -j7 # depends on RAM size
# in ITK-SNAP/vtk/build
cmake ../src
- Build itk
# in ITK-SNAP/vtk/build
make -j7 # depends on RAM size
- Clone src file from and change the branch or download the v5.12.0 version.
# to clone and change the branch
git clone https://github.com/qt/qt5.git
git fetch
git checkout -b 5.12 origin/5.12
- Download all submodule in qt5
# in ITK-SNAP/qt5/src
perl init-repository
- Use qmake to create build make file.
# in ITK-SANP/qt5/build
../src/configure -developer-build -opensource -nomake examples -nomake tests -skip webengine
- Build qt5
make -j7
This will take a LONG time.
- Clone this project.
# in ITK-SNAP
git clone https://github.com/donghakang/itksnap-v2.git
- Download submodule
cd itksnap-v2 # in ITK-SNAP/itksnap
git submodule init
git submodule update
- Build the itksnap by using CMake.app or
ccmake
- CMake.app
Both Unix Configuration and XCode configuration works (MacOS)ITK_DIR | <absolute dir>/ITK-SNAP/itk/build VTK_DIR | <absolute dir>/ITK-SNAP/vtk/build CMAKE_PREFIX_PATH | <absolute dir>/ITK-SNAP/qt5/build/qtbase/lib/cmake
ccmake
# in ITK-SNAP/build ccmake ../itksnap-v2 -D ITK_DIR:FILEPATH=<absolute dir>/ITK-SNAP/itk/build -D VTK_DIR:FILEPATH=<absolute dir>/ITK-SNAP/vtk/build -D CMAKE_PREFIX_DIR:FILEPATH=<absolute dir>/ITK-SNAP/qt5/build/qtbase/lib/cmake
- Build
make -j7 # in ITK-SNAP/build
For the source code/documentation of ITKSNAP click here (Link to ITKSNAP github)