I tried several times but now asking for the best solution.
1. I tried Debian first, since there seemed to be an easy path to get Orthanc up and running. I ended up abandoning it since it looked like I was getting into dependency hell to get it installed.
2. I tried CentOS 7 since I am most familiar with it. I see that the compile process is different and you have to use cmake so I installed cmake, python and mercurial and thought I would be OK. I get to the point where I enter the cmake command:
cmake -DCMAKE_TOOLCHAIN_FILE=~/Orthanc/Resources/MinGWToolchain.cmake -DSTATIC_BUILD=ON -DSTANDALONE_BUILD=ON -DCMAKE_BUILD_TYPE=Debug ~/Orthanc
CMake Error: The source directory "/root/Orthanc" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
[root@localhost Orthanc-1.3.0]# cmake -DCMAKE_TOOLCHAIN_FILE=/home/mdz/Desktop/Orthanc-1.3.0/Resources/MinGWToolchain.cmake -DSTATIC_BUILD=ON -DSTANDALONE_BUILD=ON -DCMAKE_BUILD_TYPE=Debug /home/mdz/Desktop/Orthanc-1.3.0
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Check for working C compiler: i586-mingw32msvc-gcc
CMake Error: your C compiler: "i586-mingw32msvc-gcc" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: Internal CMake error, TryCompile configure of cmake failed
-- Check for working C compiler: i586-mingw32msvc-gcc -- broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "i586-mingw32msvc-gcc" is not able to compile a simple test
program.
It fails with the following output:
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
CMake Error: your C compiler: "i586-mingw32msvc-gcc" was not found. Please set CMAKE_C_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "i586-mingw32msvc-g++" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Configuring incomplete, errors occurred!
See also "/home/mdz/Desktop/Orthanc-1.3.0/CMakeFiles/CMakeOutput.log".
See also "/home/mdz/Desktop/Orthanc-1.3.0/CMakeFiles/CMakeError.log".
I did try to resolve as follows:
cmake -D CMAKE_CXX_COMPILER="/usr/bin/gcc/" /home/mdz/Desktop/Orthanc-1.3.0
cmake -D CMAKE_C_COMPILER="/usr/bin/gcc/" /home/mdz/Desktop/Orthanc-1.3.0
Also Gcc is up to date
Package gcc-4.8.5-16.el7.x86_64 already installed and latest version
It would be nice to be able to compile the server in a 64-bit environment, is there some way of dealing with this? I haven't found any relevant cmake-flag that would solve this.
Also, since this seems to work on Ubuntu 16.04 you may want to add that to the instructions. It is good to know that the project is not only in maintenance mode, supporting old distributions.