Skip to content

Build instructions

Chiara Carminati edited this page Feb 14, 2020 · 20 revisions

After installing the build environment and libraries described in the prerequisites for building for the imagingsuite, set the environment variable and install the dependencies described in the build instructions for the imagingsuite.

Dependencies

The ToFImaging library currently depends on the imagingsuite library kipl and ImagingAlgorithms, and from the external lmfit library.

Kipl and ImagingAlgorithms are part of the core components for the imagingsuite project.

The lmfit is C library available from here, implementing the Levenberg-Marquardt least-squares minimization and curve fitting. A copy of the source code is copied in imagingsuite/external/src/lmfit . The building of this library is based on cmake.

Build in QtCreator

Building in Qt Creator is best done by creating a session including the required projects. The following projects are needed:

  • kipl from imagingsuite
  • ImagingAlgorithms from imagingsuite
  • ToF_ImagingAlgorithm

Build external dependency with cmake

In unix systems, the lmfit has to be build using cmake, and changing the CMAKE_INSTALL_PREFIX so that the installation path matches the lib folder of the project (in /myuser/git/lib). For windows system, the lmfit library is already included as pre-compiled binary.

Build scripts

The build scripts in ToFImaging/build are setup to build the ToFImaging library and call the build scripts for the imagingsuite dependencies and the external lmfit from scratch.

It is possible to call the build scripts independently for each component:

  • imagingsuite/build/build_core_kipl
  • imagingsuite/build/core_algorithms
  • imagingsuite/build/build_lmfit (only relevant for unix systems)
  • ToFImaging/build/build_tofimagingalgorithms

The build_all script builds all components in the right order.

Building and releasing

Clone this wiki locally