mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-20 10:56:58 +02:00
launcher: fix bundle rpath for Qt frameworks
The bundle executable had @rpath references to Qt frameworks but no LC_RPATH, causing dyld to abort at launch: Library not loaded: @rpath/QtConcurrent.framework Reason: no LC_RPATH's found Set INSTALL_RPATH to @executable_path/../Frameworks and BUILD_WITH_INSTALL_RPATH so the built and installed bundles resolve Qt from Contents/Frameworks. Verified via otool -l (LC_RPATH now present) and macdeployqt now succeeds without "Cannot resolve rpath" errors.
This commit is contained in:
@@ -87,6 +87,8 @@ if(APPLE)
|
||||
MACOSX_BUNDLE_GUI_IDENTIFIER "org.kytyps5.kytyps5"
|
||||
MACOSX_BUNDLE_BUNDLE_VERSION "${PROJECT_VERSION}"
|
||||
MACOSX_BUNDLE_SHORT_VERSION_STRING "${PROJECT_VERSION}"
|
||||
INSTALL_RPATH "@executable_path/../Frameworks"
|
||||
BUILD_WITH_INSTALL_RPATH TRUE
|
||||
)
|
||||
install(TARGETS launcher BUNDLE DESTINATION .)
|
||||
install(TARGETS kyty_emulator DESTINATION "KytyPS5.app/Contents/MacOS")
|
||||
|
||||
Reference in New Issue
Block a user