Skip to content

Compiling

Hal Clark edited this page Dec 6, 2021 · 5 revisions

Compile from source to get all functionality and ensure compatibility with your system.

Dependencies

Dependencies are listed in PKGBUILD using Arch Linux package naming conventions, and in CMakeLists.txt using Debian package naming conventions.

There are scripts (meant to be run inside Docker containers) to install all dependencies, but these are not recommended for end-users. See docker/build_bases/ for the 'implementation' scripts.

Notably, DICOMautomaton depends on the author's Ygor, Explicator, and YgorClustering projects which are hosted at:

Compiling

DICOMautomaton uses CMake. Use the usual commands to compile on Linux:

 $>  git clone https://gitlab.com/hdeanclark/DICOMautomaton/ && cd DICOMautomaton/ # or
 $>  git clone https://github.com/hdclark/DICOMautomaton/ && cd DICOMautomaton/
 $>  mkdir build && cd build/

Then, if building for Debian:

 $>  cmake ../ -DCMAKE_INSTALL_PREFIX=/usr
 $>  make && make package
 $>  sudo apt install -f ./*.deb

Or, if building for Arch Linux:

 $>  rsync -aC --exclude build ../ ./
 $>  makepkg --syncdeps --noconfirm # Optionally also [--install].

Otherwise, if installing directly (i.e., bypassing your package manager):

 $>  cmake ../ -DCMAKE_INSTALL_PREFIX=/usr
 $>  make && sudo make install

Direct installation on non-Linux systems is not officially supported. However, Docker images can be built that are portable across non-Linux systems.

Clone this wiki locally