How to build/install Orthanc from source (Ubuntu)?

  1. I cloned this repostory from bitbucket and copied contents to ~/Orthanc
  2. I followed the instructions from LinuxCompilation.txt

cd ~/OrthancBuild
make doc


cmake was successful but I got the following errors for make

[ 93%] Linking CXX executable UnitTests libCoreLibrary.a(loslib.c.o): In functionos_tmpname’:
~OrthancBuild/lua-5.1.5/src/loslib.c:60: warning: the use of tmpnam' is dangerous, better use mkstemp’
libCoreLibrary.a(ZipWriter.cpp.o): In function Orthanc::ZipWriter::Close()': ~orthanc/Core/Compression/ZipWriter.cpp:107: undefined reference to zipClose’
libCoreLibrary.a(ZipWriter.cpp.o): In function Orthanc::ZipWriter::Open()': ~orthanc/Core/Compression/ZipWriter.cpp:142: undefined reference to zipOpen64’
~orthanc/Core/Compression/ZipWriter.cpp:146: undefined reference to zipOpen' libCoreLibrary.a(ZipWriter.cpp.o): In function Orthanc::ZipWriter::OpenFile(char const*)‘:
~orthanc/Core/Compression/ZipWriter.cpp:190: undefined reference to zipOpenNewFileInZip64' ~orthanc/Core/Compression/ZipWriter.cpp:200: undefined reference to zipOpenNewFileInZip’
libCoreLibrary.a(ZipWriter.cpp.o): In function Orthanc::ZipWriter::Write(char const*, unsigned long)': ~orthanc/Core/Compression/ZipWriter.cpp:241: undefined reference to zipWriteInFileInZip’
collect2: error: ld returned 1 exit status
CMakeFiles/UnitTests.dir/build.make:564: recipe for target ‘UnitTests’ failed
make[2]: *** [UnitTests] Error 1
CMakeFiles/Makefile2:174: recipe for target ‘CMakeFiles/UnitTests.dir/all’ failed
make[1]: *** [CMakeFiles/UnitTests.dir/all] Error 2
Makefile:129: recipe for target ‘all’ failed
make: *** [all] Error 2



You are using the mainline, that is under active development, and thus unstable.

Please use one of the release branches, for instance:

hg update -c Orthanc-1.4.1


Thanks! It’s working now. Follow up:

  1. Where is the config file?

  2. Data is stored in ‘~/OrthancBuild/OrthancStorage’, right?

  3. What’s the easiest way to install all the plugins at once?



Questions (1) and (2) are answered in the Orthanc Book (check out the configuration options “StorageDirectory” and “IndexDirectory”):

Regarding (3), depending on your OS, you have the following solutions:


Thanks again!