There a number of RPATH problems masked behind the qt plugin loader.
Slicer.app inorton$ QT_DEBUG_PLUGINS=1 ./Contents/MacOS/Slicer
QFactoryLoader::QFactoryLoader() checking directory path "/private/tmp/Slicer.app/Contents/lib/QtPlugins/platforms" ...
QFactoryLoader::QFactoryLoader() looking at "/private/tmp/Slicer.app/Contents/lib/QtPlugins/platforms/libqcocoa.dylib"
Found metadata in lib /private/tmp/Slicer.app/Contents/lib/QtPlugins/platforms/libqcocoa.dylib, metadata=
{
"IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
"MetaData": {
"Keys": [
"cocoa"
]
},
"className": "QCocoaIntegrationPlugin",
"debug": false,
"version": 330240
}
Got keys from plugin meta data ("cocoa")
QFactoryLoader::QFactoryLoader() checking directory path "/private/tmp/Slicer.app/Contents/MacOS/platforms" ...
Cannot load library /private/tmp/Slicer.app/Contents/lib/QtPlugins/platforms/libqcocoa.dylib: (dlopen(/private/tmp/Slicer.app/Contents/lib/QtPlugins/platforms/libqcocoa.dylib, 133): Library not loaded: /Volumes/Dashboards/Support/qt-everywhere-build-5.10.0/lib/QtGui.framework/Versions/5/QtGui
Referenced from: /private/tmp/Slicer.app/Contents/lib/QtPlugins/platforms/libqcocoa.dylib
Reason: image not found)
QLibraryPrivate::loadPlugin failed on "/private/tmp/Slicer.app/Contents/lib/QtPlugins/platforms/libqcocoa.dylib" : "Cannot load library /private/tmp/Slicer.app/Contents/lib/QtPlugins/platforms/libqcocoa.dylib: (dlopen(/private/tmp/Slicer.app/Contents/lib/QtPlugins/platforms/libqcocoa.dylib, 133): Library not loaded: /Volumes/Dashboards/Support/qt-everywhere-build-5.10.0/lib/QtGui.framework/Versions/5/QtGui\n Referenced from: /private/tmp/Slicer.app/Contents/lib/QtPlugins/platforms/libqcocoa.dylib\n Reason: image not found)"
This application failed to start because it could not find or load the Qt platform plugin "cocoa"
in "".
Available platform plugins are: cocoa.
Reinstalling the application may fix this problem.
Abort trap: 6