Skip to content

donghakang/itksnap-v2

Repository files navigation

Build ITK-SNAP

📄   To see the implemented Documentation click here.

⚙️ Version control

Library Version Source
ITK 4.13.3 zip, tar.gz
VTK 6.3.0 zip, tar.gz
QT 5.6.3 download link

🗂 Folder Structure

    .
    ITK-SNAP              
    ├── itk
    │   ├── src           # source folder of itk
    │   └── build         # build directory of itk  
    ├── vtk
    │   ├── src           # source folder of vtk
    │   └── build         # build directory of vtk 
    ├── qt5               # downloaded qt5
    ├── build             # build directory of itksnap
    └── itksnap-v2        # source folder of itksnap   
    ...
    └── cmake             # version seems not matter. Works in v3.16.0-rc3

👷🏼‍♂️ Installation

Windows

Visual Studio 2015

ITK download

  1. Download src file as .zip or .tar.gz
  2. Move the source file to ITK-SNAP/itk/src and Compile itk using CMAKE GUI :warning: Make sure to check Visual Studio 2015 and x64 (depends on machine) when Configure
  3. Build itk using Visual Studio

VTK download

  1. Download src file as .zip or .tar.gz
  2. Move the source file to ITK-SNAP/vtk/src and Compile vtk using CMAKE GUI :warning: Make sure to check Visual Studio 2015 and x64 (depends on machine) when Configure
  3. Build vtk using Visual Studio

Qt download

  1. Download Qt with a link

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

    • 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/5.6.3/clang_64/lib/cmake
  2. Build using Visual Studio

  3. Package using Visual Studio ⚠️ Sometimes, Visual Studio gives error message saying "vtkxxxx.dll" not found, just simply copy & paste all the dll files in vtk build library to project folder

MacOS

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

Qt download

  1. Download Qt with a link

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/5.6.3/clang_64/lib/cmake
    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/5.6.3/clang_64/lib/cmake
  2. Build
make -j7  # in ITK-SNAP/build
  1. Package
make package 

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