Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.5.2
-
None
Description
Built an app and fired macdeployqt. This is the otool output
_CPack_Packages/Darwin/DragNDrop/albert/albert.app/Contents/PlugIns/platforms/libqcocoa.dylib cmd LC_RPATH cmdsize 40 path @loader_path/../../lib (offset 12) -- cmd LC_RPATH cmdsize 40 path @loader_path/../../lib (offset 12) _CPack_Packages/Darwin/DragNDrop/albert/albert.app/Contents/PlugIns/platforms/libqcocoa.dylib (architecture x86_64): […] @rpath/QtGui.framework/Versions/A/QtGui (compatibility version 6.0.0, current version 6.5.2) […] @rpath/QtCore.framework/Versions/A/QtCore (compatibility version 6.0.0, current version 6.5.2) […] _CPack_Packages/Darwin/DragNDrop/albert/albert.app/Contents/PlugIns/platforms/libqcocoa.dylib (architecture arm64): […] @rpath/QtGui.framework/Versions/A/QtGui (compatibility version 6.0.0, current version 6.5.2) […] @rpath/QtCore.framework/Versions/A/QtCore (compatibility version 6.0.0, current version 6.5.2) […]
LC_RPATH @loader_path/../../lib
This make sense in the QT_DIR but the correct path of libraries in a macos bundle is @loader_path/../../Frameworks where macdepoyqt puts the libraries. ofc running the app fails due to the missing library.