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:
nacimoualla
2026-08-29 12:38:57 +01:00
parent f294799b22
commit 6155ce825c
+2
View File
@@ -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")