-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
vulkan: Find Vulkan libraries in non-standard locations #14557
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
Open
amolenaar
wants to merge
3
commits into
mesonbuild:master
Choose a base branch
from
amolenaar:vulkan-non-standard-path
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f893b2e
to
bad0f56
Compare
bad0f56
to
000fab9
Compare
eli-schwartz
requested changes
May 4, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Commit message should include a description of why this fixes the problem.
VULKAN_SDK is the preferred environment variable to point to the Vulkan installation. With this change the old variable (VK_SDK_PATH) is made optional.
000fab9
to
7e7d4ba
Compare
I separated the change in 2 smaller commit, and added a rationale for the change. |
592fcaa
to
7905244
Compare
eli-schwartz
requested changes
May 5, 2025
dcbaker
reviewed
May 5, 2025
This change ensures that Vulkan will be found in the path defined by the VULKAN_SDK env var. This is the case when the Vulkan SDK is not installed in a well-known location (/usr, /usr/local), but in a user's home folder.
Add test cases that target the Vulkan system dependeny resolver explicitly.
9ad77d1
to
5f65c2b
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm trying to make Vulkan work for GTK on macOS.
On macOS, the Vulkan SDK can be installed in a user's home folder. If not installed system-wide (e.i. in
/usr/local
), Meson is not able to do a proper version check for Vulkan.Current behavior
The (obsolete) environment variable
VK_SDK_PATH
has to be set, or theVULKAN_SDK
will not be used at all.Vulkan version check fails, even if both
VK_SDK_PATH
andVULKAN_SDK
are set:New behavior
VULKAN_SDK
can be set withoutVK_SDK_PATH
The include path (based on
VULKAN_SDK
) is now provided to the version-check command, sovulkan.h
can be found, and a version check can be done.