DCM_DICT_DEFAULT_PATH
Hi all,
I finally got around to debugging the plastimatch test failures, and found that libdcmtk-dev seems to ship with an incorrect dictionary path. In osconfig.h, we find DCM_DICT_DEFAULT_PATH is "/usr/share/dicom.dic", but the dictionary is installed to /usr/share/libdcmtk17/dicom.dic. And indeed, setting DCMDICTPATH=/usr/share/libdcmtk17/dicom.dic fixes the plastimatch build.
Looking at patches/03_datadic_insall.patch, this gets set to "${DCMTK_PREFIX}/${CMAKE_INSTALL_DATADIR}/dcmtk/dicom.dic". But rules sets CMAKE_INSTALL_DATADIC. Note those variables differ by only a single letter. CMAKE_INSTALL_DATADIR is never set in rules, and retains its default value.
How best to proceed? It seems editing rules and patches/03_datadic_insall.patch to use CMAKE_INSTALL_DATADIR would make most sense, but I haven't tested it.
Greg Sharp
gregsharp@geocities.com
Reply to: