View Issue Details

IDProjectCategoryView StatusLast Update
0003827Slicer4Core: Packagingpublic2018-05-23 04:30
Reporterpieper Assigned Tojcfr  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
Product Version 
Target VersionSlicer 4.4.0Fixed in VersionSlicer 4.4.0 
Summary0003827: library paths incorrect on mac install package - can't run dicom executables
Description

When you try to turn on the DICOM Listener on mac you get an error message about libdcmnet.3.dylib not being found. The file is part of the package, but it is not in the spot expected by the application.

Additional Information

starting DICOM listener
(u'Starting /Users/pieper/Desktop/Slicer-4.3.1-2014-09-03.app/Contents/bin/storescp with ', ['11112', '--output-directory', u'/Users/pieper/bt/data/NSCLC-Radiomics+Genomics/dicom-database/incoming', '--exec-sync', '--exec-on-reception', u'/Users/pieper/Desktop/Slicer-4.3.1-2014-09-03.app/Contents/bin/dcmdump --load-short --print-short --print-filename --search PatientName "/Users/pieper/bt/data/NSCLC-Radiomics+Genomics/dicom-database/incoming/#f"'])
process /Users/pieper/Desktop/Slicer-4.3.1-2014-09-03.app/Contents/bin/storescp now in state Starting
process /Users/pieper/Desktop/Slicer-4.3.1-2014-09-03.app/Contents/bin/storescp now in state Running
process /Users/pieper/Desktop/Slicer-4.3.1-2014-09-03.app/Contents/bin/storescp now in state NotRunning
error code is: 1
standard out is:
standard error is: dyld: Library not loaded: @rpath/lib/Slicer-4.3/libdcmnet.3.dylib
Referenced from: /Users/pieper/Desktop/Slicer-4.3.1-2014-09-03.app/Contents/bin/storescp
Reason: image not found

TagsNo tags attached.

Relationships

related to 0003831 closedjcfr Add rpath to all executable bundled in Slicer.app/Contents/bin 
related to 0004554 closedjcfr rpath not set for macOS binaries in 4.9.0 

Activities

pieper

pieper

2014-09-07 12:07

administrator   ~0012476

Note that a workaround for this is to set the path manually:

export DYLD_LIBRARY_PATH=/Users/pieper/Desktop/Slicer-4.3.1-2014-09-03.app/Contents/lib/Slicer-4.3

jcfr

jcfr

2014-09-07 12:11

administrator   ~0012477

Thanks for the report.

I think the fix will be to build the DCMTK executable with flag like "-Wl,-rpath,@loader_path/../../../" as it is already done for the CLIs [1]

Will have to determine the number of "../" to specify ..

[1] https://github.com/Slicer/Slicer/blob/1c9a2e15be5a5867030d377cbd294aad34d095f7/SuperBuild/External_SlicerExecutionModel.cmake#L25

pieper

pieper

2014-09-07 12:12

administrator   ~0012478

Thanks Jc!

jcfr

jcfr

2014-09-10 08:31

administrator   ~0012489

Fixed in r23666
See http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=23666

Related Changesets

Import 2017-06-07 23:51:09: master a7d724b3

2014-09-10 12:17:24

jcfr

Details Diff
BUG: Add rpath to DCMTK application when building MacOSX package. Fixes 0003827

While commit addresses issue 0003827, the problem applies for the other
executable bundled in the ./Slicer.app/Contents/bin directory. A more
general solution would have to be implemented to also fix these. This
is captured by issue 0003831

git-svn-id: http://svn.slicer.org/Slicer4/trunk@23666 3bd1e089-480b-0410-8dfb-8563597acbee
mod - CMake/SlicerBlockInstallDCMTKApps.cmake Diff File

Issue History

Date Modified Username Field Change
2014-09-07 12:02 pieper New Issue
2014-09-07 12:02 pieper Status new => assigned
2014-09-07 12:02 pieper Assigned To => jcfr
2014-09-07 12:07 pieper Note Added: 0012476
2014-09-07 12:11 jcfr Note Added: 0012477
2014-09-07 12:11 jcfr Status assigned => acknowledged
2014-09-07 12:12 pieper Note Added: 0012478
2014-09-10 08:30 jcfr Relationship added related to 0003831
2014-09-10 08:31 jcfr Note Added: 0012489
2014-09-10 08:31 jcfr Status acknowledged => resolved
2014-09-10 08:31 jcfr Fixed in Version => Slicer 4.4.0
2014-09-10 08:31 jcfr Resolution open => fixed
2014-09-17 22:57 jcfr Status resolved => closed
2017-06-10 08:51 jcfr Changeset attached => Slicer master a7d724b3
2018-05-23 04:30 jcfr Relationship added related to 0004554