I’ve been daily driving NixOS for a couple of months and recently I changed jobs and started working with medical imaging where Orthanc has been fantastic
To my surprise, Orthanc is not present in the nix package manager, so I wanted to give it a try and contribute it upstream.
I’m not familiar with building C++ projects and I’ve encountering an issue I’ve not been able to get around. Here are the error logs:
CMake Error at /build/hg-archive/OrthancFramework/Resources/CMake/DcmtkConfiguration.cmake:312 (message):
Cannot locate the DICOM dictionary on this system
Call Stack (most recent call first):
/build/hg-archive/OrthancFramework/Resources/CMake/OrthancFrameworkConfiguration.cmake:523 (include)
CMakeLists.txt:80 (include)
I’ve tried a couple of things, mainly to set -DDCMTK_DICTIONARY_DIR
to DCMTK’s dictionary directory:
"-DDCMTK_DICTIONARY_DIR=${pkgs.dcmtk}/share/dcmtk-${pkgs.dcmtk.version}/"
which evaluates to
DDCMTK_DICTIONARY_DIR=/nix/store/wj2r80pwpfndq9xq1v560c5pmgpgsahh-dcmtk-3.6.8/share/dcmtk-3.6.8/"
.
Locally inspecting the directory, it correctly contains the dicom.dic
file, which I think it was it’s searching for?
If you have any suggestion on how to deal with this, it would be very helpful!
Here is a repo if you want to reproduce the error https://github.com/dvcorreia/healthcare-oss-flake.
To build, go to pkgs/orthanc
and run docker build .
.