From 6155ce825c7063358f34bc31ca93640862bcc56d Mon Sep 17 00:00:00 2001 From: nacimoualla Date: Sat, 29 Aug 2026 12:38:57 +0100 Subject: [PATCH] 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. --- src/launcher/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/launcher/CMakeLists.txt b/src/launcher/CMakeLists.txt index 9a18959a3..da74b08bb 100644 --- a/src/launcher/CMakeLists.txt +++ b/src/launcher/CMakeLists.txt @@ -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")