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

vkconfig3: $VULKAN_SDK on macOS #2199

Closed
richard-lunarg opened this issue Nov 25, 2024 · 4 comments
Closed

vkconfig3: $VULKAN_SDK on macOS #2199

richard-lunarg opened this issue Nov 25, 2024 · 4 comments
Assignees
Labels
bug OS - Apple Mac, iOS, etc. issue P0 - Must Fix Must Fix / Critical feature Project - vkconfig3

Comments

@richard-lunarg
Copy link
Contributor

Under the system diagnostic tab on macOS, near the top is this line:

  • ${VULKAN_SDK}: /usr/local/share/vulkan

This is confusing to me, as $VULKAN_SDK (actually all environment variables) are not set for GUI applications. When it is set via
source setup-env.sh it is actually something like:
/Users/lunarg/VulkanSDK/1.3.302.0/macOS

This could be clearer for macOS users what this is representing.

@christophe-lunarg
Copy link
Contributor

The diagnostic tab only reflect on how the system is setup.

So it looks like that when you are running Vulkan Configurator here, ${VULKAN_SDK} is set to /usr/local/share/vulkan, not /Users/lunarg/VulkanSDK/1.3.302.0/macOS

Something is most likely wrong somewhere.

@christophe-lunarg
Copy link
Contributor

Launching vkconfig3 from qtcreator, I am also getting:
Vulkan Configurator 3.0.0 - 20241127:

  • Build: macOS Release
  • Vulkan API version: 1.3.298
  • ${VULKAN_SDK}: /usr/local/share/vulkan

From the console, I am getting:
christophe@Christophes-Air 1.3.302.0 % echo $VULKAN_SDK
/Users/christophe/Documents/vulkan-sdk-1.2.154/macOS

Shouldn't the installer do something for this?

@richard-lunarg
Copy link
Contributor Author

macOS, like Linux does not set a system wide $VULKAN_SDK environment variable. Even if it did, GUI apps would not "see it". Perhaps on macOS just reflect that this is the default path for the SDK components, but as you even got surprised, $VULKAN_SDK is potentially misleading and confusing.

@christophe-lunarg
Copy link
Contributor

This issue should be fixed with this PR:
#2205

When $VULKAN_SDK is set on Linux and macOS, Vulkan Configurator should find the layers, the default executables (vkconfig, vulkaninfo) and profiles
When is $VULKAN_SDK unset, Vulkan Configurator should use the default executables (vkconfig, vulkaninfo) and profiles, and installed layers in system path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug OS - Apple Mac, iOS, etc. issue P0 - Must Fix Must Fix / Critical feature Project - vkconfig3
Projects
Status: No status
Development

No branches or pull requests

2 participants