Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MacOS installation of vkcube #943

Merged
merged 1 commit into from
Dec 20, 2023
Merged

Fix MacOS installation of vkcube #943

merged 1 commit into from
Dec 20, 2023

Conversation

juan-lunarg
Copy link
Contributor

Now the loader is installed in the app so it is self-contained.

Just requires fixing up the RPATH.

closes #921

@ci-tester-lunarg
Copy link

CI Vulkan-Tools build queued with queue ID 104036.

1 similar comment
@ci-tester-lunarg
Copy link

CI Vulkan-Tools build queued with queue ID 104036.

@juan-lunarg
Copy link
Contributor Author

FYI @richard-lunarg please check this fixes the SDK issue you were having. I tested it locally and it fixes the issue for vkcube

@ci-tester-lunarg
Copy link

CI Vulkan-Tools build # 1335 running.

Now the loader is installed in the app so it is self-contained.

Just requires fixing up the RPATH.

closes #921
@ci-tester-lunarg
Copy link

CI Vulkan-Tools build queued with queue ID 104044.

@ci-tester-lunarg
Copy link

CI Vulkan-Tools build # 1336 running.

@ci-tester-lunarg
Copy link

CI Vulkan-Tools build # 1336 passed.

Comment on lines +304 to +309
install(
TARGETS vkcubepp
# Install runtime dependencies like the Vulkan::Loader so the app is self-contained
RUNTIME_DEPENDENCIES DESTINATION "cube/vkcubepp.app/Contents/Frameworks/"
BUNDLE DESTINATION "cube"
)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note until KhronosGroup/Vulkan-Hpp/pull/1755 is merged this will fail for vkcubepp since it uses the hpp dynamic loader.

Only libvulkan.1.dylib and libvulkan.1.3.274.dylib are automatically being detected as a runtime dependency by cmake. And currently hpp only checks for libvulkan.dylib

While Volk checks for libvulkan.dylib and libvulkan.1.dylib

Which is why vkcube installation will now work but vkcubepp doesn't. When I manually added detection for libvulkan.1.dylib vkcubepp also worked

@richard-lunarg
Copy link
Contributor

I can confirm this fixes the SDK build issue. Thanks!

@juan-lunarg juan-lunarg merged commit b42addf into KhronosGroup:main Dec 20, 2023
18 checks passed
@juan-lunarg juan-lunarg deleted the juan/921 branch December 20, 2023 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Broken installation of vkcube
4 participants