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

Fixed IncompatibleDriver error while building examples by installing the Vulkan SDK #436

Open
cies opened this issue Dec 11, 2019 · 2 comments
Labels

Comments

@cies
Copy link

cies commented Dec 11, 2019

When trying to build+run an example (my first attempt to get going with Nannou) I got the following error:

thread 'main' panicked at 'failed to create vulkan instance: IncompatibleDriver', src/libcore/result.rs:1165:5

The suggested fixes in this issue tracker did not help. I found a someone saying: if you can get a vulkan thing to build in C then you should be able to get it to build in Rust. That sounded wise. It also pointed to the Vulkan SDK...

https://vulkan.lunarg.com/doc/sdk

...that contains some examples. So I got going. Had to upgrade cmake and install some sys deps (some x11 shizzle) in the process. After I got ./vulkansdk samples to succeed (did not even run any of 'm) I also managed to get the Nannou example to build.

I'm just reporting this for someone else to maybe get a pointer in the right direction.

Keywords: linux (old ubuntu version, 16.04), cmake, vulkan, driver, IncompatibleDriver, build error, examples.

@cies
Copy link
Author

cies commented Dec 11, 2019

Extra info: specifically the source $PATH_TO_ROOT_OF_VULKAN_SDK/setup-env.sh step of the vulkan sdk story seems to be important. Without it it I still get the same error.

@mitchmindtree
Copy link
Member

Thanks a lot for the issue @cies!

I just wanted to give you an update that we're hoping to resolve a lot of the macOS Vulkan issues in #438 by targeting metal directly from gfx-hal, rather than going through MoltenVK. I'll likely revisit this once that has been addressed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants