Cannot find DCMTK_BASE_DIR from DICOM example

I could not find where the libraries and binaries were with that installation method so the solution I used was to sudo apt remove dcmtk and build it instead from source using cmake. Everything now works.

Special care to build with shared libraries and after that to set the environment library DCMDICTPATH to the full path of the dicom.dic file. see here