Skip to content

Latest commit

 

History

History
50 lines (36 loc) · 2.32 KB

CompilingMacOS.md

File metadata and controls

50 lines (36 loc) · 2.32 KB

Compiler

  • iSEG has been successfully built using clang++ version 9.1.0

3rd Party Libraries compilation instructions

  • Boost: Boost 1.64, or newer

    1. Install using homebrew: brew install boost
  • HDF5: v1.10.1, or newer

    1. Install using homebrew: brew install hdf5
  • ITK source code: v5.0, or newer

    1. Download and unzip the ITK folder
    2. CMake (source ITK folder, build in separate folder), press Configure
    • "-DCMAKE_CXX_FLAGS=-std=c++11"
    1. Press configure and select the Unix Makefile generator
    2. Press Advanced checkbox and select BUILD_SHARED_LIBS , press configure again (CMake will find the ZLib library installed with the HDF5 package above)
    3. Press Generate
    4. In build directory type make
  • VTK source code: v7.1.0, or newer

    1. Install using homebrew: brew install vtk
  • Qt: v4.8.7 (min 4.8.6)

    1. Qt4 is not a standard package in homebrew
    2. To install it via homebrew follow these instructions
    brew tap cartr/qt4
    brew tap-pin cartr/qt4
    brew install qt@4
    

Compiling iSEG

  1. Clone the repository
  2. Using CMake GUI (source root folder, build in separate folder), press Configure
  3. Select the generator, e.g. Xcode or Unix Makefile
  4. Define BOOST_ROOT as the folder where Boost library was installed (e.g. /usr/local/Cellar/boost/1.67.0_1), press Configure
  5. Define HDF5_ROOT as the folder where HDF5 was installed (e.g. /usr/local/Cellar/hdf5/1.10.2_1), press Configure
  6. Define ITK_DIR as the folder where ITK was built (e.g. ITK_BUILD_DIR), press Configure
  7. Define QT_QMAKE_EXECUTABLE by selecting qmake.exe in the folder where Qt was compiled/Installed (e.g. /usr/local/Cellar/qt@4/4.8.7_3), press Configure
  8. Define VTK_DIR as the folder where VTK was built (e.g. VTK_BUILD_DIR), press Configure
  9. Press Generate, then Open Project
  10. Build the solution (e.g. type make if you are using the Unix Makefiles generator)