-
Notifications
You must be signed in to change notification settings - Fork 437
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
Fail to load vulkan on mac #2120
Comments
It was Macport's problem. I installed directly from the installer and it works. I guess it's your choice to see whether this installtion option should be considered as an additional case |
I don't know anything about Macs. What in Vulkano's code would need to be changed? |
Maybe Vulkano is not responsible for loading the library. Perhaps the issue is elsewhere, maybe Ash. I will give it a look later. |
LunarG Vulkan SDK installs the libraries to the /usr/local/lib path which dlopen does not search in, to fix can just add it to search path in https://github.com/vulkano-rs/vulkano/blob/a1307b6ef8dbcf77c3479c56bd354de7bc297a2e/vulkano/src/library.rs
|
@Soth1985 I don't think absolute paths are the solution. When you install an application or libarary, it's supposed to be on the respective PATH so that it can be loaded by name. |
I can't believe what I'm reading. They mention in the SDK docs (the webside actively hates me trying to link to the specific heading, so scroll to "SDK System Paths" manually) that as of recent, macOS's dynamic linker no londer automatically searches in |
I implemented the above ^ in #2614. |
Closed as the original issue as described is not something that's planned, that being MoltenVK installed in ways other than what volk and/or Vulkan SDK does. |
Template
main.rs
file that demonstrates the issue: just use any exampleIssue
When I try to run a Vulkano program, it fails to load Vulkan:
The library is in fact under
/opt/local/lib
. I don't know why Vulkano doesn't load it, because I have tried using Vulkan in C and that program can load the library normally.The text was updated successfully, but these errors were encountered: