Skip to content

lxgwd1983/itksnap-v2

 
 

Repository files navigation

ITK-SNAP README

📄   To see the implemented Documentation click here.
💾   To download executable only, click here (might not work).

Installation

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

ITK download

  1. Download src file as .zip or .tar.gz
  2. Move the source file to ITK-SNAP/itk/src and Compile itk.
# in ITK-SNAP/itk/build
cmake ../src
  1. Build itk
# in ITK-SNAP/itk/build
make -j7                # depends on RAM size

VTK download

  1. Download src file as .zip or .tar.gz
  2. Move the source file to ITK-SNAP/vtk/src and Compile vtk.
# in ITK-SNAP/vtk/build
cmake ../src
  1. Build itk
# in ITK-SNAP/vtk/build
make -j7                # depends on RAM size

QT5 download

  1. 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
  1. Download all submodule in qt5
# in ITK-SNAP/qt5/src
perl init-repository
  1. Use qmake to create build make file.
# in ITK-SANP/qt5/build
../src/configure -developer-build -opensource -nomake examples -nomake tests -skip webengine
  1. Build qt5
make -j7

This will take a LONG time.

ITK-SNAP Donwload

  1. Clone this project.
# in ITK-SNAP
git clone https://github.com/donghakang/itksnap-v2.git
  1. Download submodule
cd itksnap-v2           # in ITK-SNAP/itksnap
git submodule init
git submodule update
  1. Build the itksnap by using CMake.app or ccmake
    • CMake.app
    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
    cmake sample Both Unix Configuration and XCode configuration works (MacOS)
    • 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
  2. Build
make -j7  # in ITK-SNAP/build

For the source code/documentation of ITKSNAP click here (Link to ITKSNAP github)

About

LAMIS.inc and SNUHPIA Project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 92.2%
  • CMake 2.4%
  • HTML 2.2%
  • C 1.7%
  • MATLAB 0.9%
  • Shell 0.3%
  • Other 0.3%