I've installed most of the dependencies using Homebrew -
brew install openssl dcmtk mongoose boost cmake
brew link openssl
Jsoncpp doesn't seem to be identified by CMake even when present in /usr/local/lib and amending the CMake configuration file, so I'm trying to build a mostly-dynamic build with those caveats using the CMake command
cmake -DSTATIC_BUILD=OFF -DCMAKE_BUILD_TYPE=Debug -DDCMTK_DIR=/usr/local/Cellar/dcmtk/3.6.0/include/dcmtk/ -DUSE_DYNAMIC_JSONCPP=NO -DUSE_DYNAMIC_GOOGLE_TEST=NO ..
Which does work to get all the makefiles built. I've trivially patched the Orthanc source using #elif defined(__APPLE__) for the few platform-specific sections. The compile succeeds but fails linking, apparently due to a failure to find the DCMTK OFLog functions and a couple of iconv symbols (despite having both the system iconv and brew-installed iconv present). I've attached the compiler output.
I'm a bit stuck currently, and can't work out how to complete the compile. I realise the steps above aren't too robust. but was hoping to at least get a proof of concept system running to test the viability of an OS X-based DICOM server.
Does anyone have any bright ideas?
Regards,
Ryan
I've just forked the repository and uploaded patches to the build system and a few of the platform-specific source files to allow compilation on OS X. The unit tests pass and I'm able to access the web interface. I've tried to keep the edits as trivial as possible and rely on system/Homebrew shared libraries where possible.