Installation

You need c++ compiler, git, cmake. Works under linux and mac osx. For Windows ... (it's a joke?).

There are a lot of dependencies, it is not easy to install. Dependencies are: ODB, ITK, DCMTK, Ceres-solver, Boost... But with latest version, we use hunter to handle some dependencies.

Install ODB (without hunter)

Install ITK

  • For image processing
  • See itk.org
  • Work with version >= 4.5.2
  • (Make sure you use BUILD_SHARED_LIBS=ON)
  • because c++11 is needed for syd, you need to compile ITK also with c++11. Use:ccmake -DCMAKE_CXX_FLAGS=-std=c++11 ../InsightToolkit-4.8.0. Note that this option must be set before any ccmake.
  • You must use the option Module_ITKVtkGlue=ON (so with vtk)
  • You may want to set the env variable: export ITK_DIR=/my_path/build-itk

Install DCMTK (without hunter)

  • For Dicom processing
  • See dicom.offis.de
  • Work with version >= 3.6.0
  • DCMTK 3.6.0, latest public version may not compile with latest version of gcc installed in your system. Please consider using newer shapshot of DCMTK.
  • You need to activate BUILD_SHARED_LIBS=ON , consider using CMake instead of the recommended './configure' file

Install Boost (without hunter)

  • boost.org
  • Extended C++ library
  • Version > 1.40
  • Needed modules are: date_time, system and filesystem
  • For building date_time module, you need to install libquadmath-devel package. If this package is not available, you may install boost with your package manager
  • Beware, boost modules installed with your package manager may not work properly for OpenSyd compilation (cases were reported with libboost_filesystem in particular).

Install Ceres-solver

  • ceres-solver.org
  • For fit and optimisation
  • Need eigen and glog
  • Version > 1.11
  • Librairies for Sparse calculation are optional for OpenSyd
  • Be sure you complete installation (ccmake, make, make install)

SYD: download and compile the source

  • git clone https://github.com/OpenSyd/syd.git
  • mkdir build ; cd build
  • ccmake ../syd Provide ITK_DIR, and other path to dependence libraries, then type 'c' and 'g' to configure and generate makefiles). If you download binary version of odb, provide path to odb executable. The path for boost libraries is a little tricky. You can find an example in the next screenshot. Maybe you have to add -fpermissive in the CMAKE_CXX_FLAGS

screenshot syd

  • make -j 4

Once compiled, the libraries are in build/lib and the executable in build/bin. You need to set the environment variable SYD_PLUGIN to point to the libraries, for example:

export SYD_PLUGIN=/my_path/build/lib:${SYD_PLUGIN}

results matching ""

    No results matching ""