Old build instructions for GNU/Linux

This page summarizes the GNU/Linux build instructions that were used up to Orthanc 0.7.0 (inclusive). Instructions for Orthanc above 0.7.0 can be found directly inside the source package.

Static linking

In general, the static linking should work on any GNU/Linux distribution (in particular, this works on Debian Squeeze):


Peter Somlo provides detailed instructions to statically build Orthanc on a minimal Ubuntu installation.

Dynamic linking against system-wide libraries

If you want to dynamically link against the system libraries, the following CMake configurations have been reported to work.

Dynamic Linking on Ubuntu 11.10


Explanation: You have to manually link against the wrap and oflog shared libraries because of a packaging error in libdcmtk.

Dynamic Linking on Ubuntu 12.04 LTS


Dynamic Linking on Ubuntu 12.10


Dynamic Linking on Debian Sid


This is the configuration from the official Debian package.

Dynamic Linking on Fedora 18 and 19


This is the configuration from the official Fedora package.

Static Linking on CentOS 6.3 and 6.4

You have to build and install CMake 2.8 from source, or you can use the cmake28 package from EPEL. The STATIC_BUILD=ON option will then work:

$ /usr/local/bin/cmake -DSTATIC_BUILD:BOOL=ON -DCMAKE_BUILD_TYPE=Debug

Thanks to Will Ryder.