I am using the dcmtk-3.6.1_20150924 snapshot on Ubuntu Linux. I am using other libraries as well which are not affected by the problem I am going to describe. All dcmtk shared libraries are affected, I am just using dcmdata here in my description to keep it short.
After
Code: Select all
sudo make install
If find the following files in /usr/local/bin:
Code: Select all
libdcmdata.so -> libdcmdata.so.7
libdcmdata.so.3.6.1
libdcmdata.so.7 -> libdcmdata.so.3.6.1
Even if I remove all softlinks and link to /usr/lib/libdcmdata.so.3.6.1 explicitly, ldd tells me, that I am still linking to libdcmdata.so.7 and to my surprise by nothing but liniking to libdcmdata.so.3.6.1 this link seems to be implicitly re-created in the file system. I tried to find the clue in the CMake configuration options, but I cannot find anything suspicious.
I suspect this is not a bug but a feature - probably realted to the fact that different snapshots of 3.6.1 can exist. My goal is to ship the dcmtk libraries with my application without having to create softlinks in the installation proccess. Can someone give me an advice please?
Thank you
Markus