<div dir="ltr"><div><div><div><div><div><div><div>Hi all CTK developers.<br><br></div>I have been using CTK for a few months now, integrating the DICOM and plugins modules into our (still) in-house navigation system CustusX. We are all very enthusiastic about the project, and we are in the process of converting our codebase to the CTK plugin framework.<br><br></div>Lately we have ported our system to Qt5, and thus did the same change in CTK. I found a few minor issues that broke the build and submitted a pull request for them (#509).<br><br><br></div>There is one problem left: The DICOM examples won't run from the build tree, when on MacOSX10.8. Ubuntu 14.04 works fine.<br><br></div>I build with the cmake command (using my own branch git@github.com:SINTEFMedisinskTeknologi/CTK.git, branch CTK-CX-modifications):<br><br>cmake ../CTK -DCTK_QT_VERSION:STRING=5 -DCTK_ENABLE_PluginFramework:BOOL=ON -DCTK_ENABLE_DICOM:BOOL=ON -DCTK_BUILD_EXAMPLES:BOOL=ON<br><br></div>When running the ctkDICOM example app, it fails with the message<br><br>dyld: Library not loaded: libdcmpstat.dylib<br>  Referenced from: /Users/christiana/dev/CTK/build/CTK-build/bin/./ctkDICOM<br>  Reason: image not found<br>Trace/BPT trap: 5<br><br></div>Running otool gives:<br><br>[21:34:37 ~/dev/CTK/build/CTK-build/bin]$ otool -L ./ctkDICOM<br>./ctkDICOM:<br>    /Users/christiana/dev/CTK/build/CTK-build/bin/libCTKDICOMWidgets.0.1.dylib (compatibility version 0.1.0, current version 0.1.0)<br>    /Users/christiana/dev/CTK/build/CTK-build/bin/libCTKDICOMCore.0.1.dylib (compatibility version 0.1.0, current version 0.1.0)<br>    libdcmpstat.dylib (compatibility version 0.0.0, current version 0.0.0)<br>    libdcmsr.dylib (compatibility version 0.0.0, current version 0.0.0)<br>    libdcmtls.dylib (compatibility version 0.0.0, current version 0.0.0)<br>    libdcmqrdb.dylib (compatibility version 0.0.0, current version 0.0.0)<br>    libdcmnet.dylib (compatibility version 0.0.0, current version 0.0.0)<br>    libdcmjpeg.dylib (compatibility version 0.0.0, current version 0.0.0)<br>    libdcmimage.dylib (compatibility version 0.0.0, current version 0.0.0)<br>    libdcmimgle.dylib (compatibility version 0.0.0, current version 0.0.0)<br>    libdcmdata.dylib (compatibility version 0.0.0, current version 0.0.0)<br>    liboflog.dylib (compatibility version 0.0.0, current version 0.0.0)<br>    libofstd.dylib (compatibility version 0.0.0, current version 0.0.0)<br>    libijg12.dylib (compatibility version 0.0.0, current version 0.0.0)<br>    libijg16.dylib (compatibility version 0.0.0, current version 0.0.0)<br>    libijg8.dylib (compatibility version 0.0.0, current version 0.0.0)<br>    /opt/local/Library/Frameworks/QtSql.framework/Versions/5/QtSql (compatibility version 5.3.0, current version 5.3.1)<br></div>... (more OK libs)<br><div><br></div><div>As you can see, the DICOM libs are missing full paths and are thus not found, while the CTK libs load normally.<br><br></div><div>I suspect the error is somehow connected to the new way of definining cmake targets in cmake 2.11 and up (i use 3.0.2), but I cannot find the problem in the CTK source, with which I am only somewhat familiar. Any help or suggestions on how to proceed are welcome.<br><br></div><div>Best Regards,<br><br>Christian Askeland<br></div></div>