-
Notifications
You must be signed in to change notification settings - Fork 391
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
Cannot open include file: 'vulkan/vulkan.h': No such file or directory #38
Comments
You need the Vulkan SDK installed, as listed in Requirements on Walnut page. Then add the path to the project properties in Visual Studio: |
i have a similar issue while compiling OpenGothic, but i dont really understand your answer, some help maybe? O:) |
Which part do you not understand? |
my issue is solved, Vulkan was not properly installed. thanks anyway :) |
Hey guys, I'm also facing the same issue. I have installed the Vulkan SDK dependency and added the path to the .h files to the Additional Include Directories in Project settings. But unfortunately it does not seem to work. Help would be appreciated, thanks. |
Same issue here |
@Assault-OPS @BrenoBDias You shouldn't manually add the path to the headers in project settings, those will get overridden by Premake, the originals are defined in the .lua files. The installation of the Vulkan SDK should add a system-wide environment variable called "VULKAN_SDK", which is used by Premake for includes. Windows tends to not properly resolve new environment variables, without a reboot, so try that after the Vulkan installation. |
Hi, it worked for me adding, the "include" folder using the General section, and adding the lib path and a lib reference itself in the "linker" section. I'm on Win 10 with VS 2022 |
It resolves it perfectly fine, but only from explorer. |
need to add %VULKAN_SDK%\Include to your additional directories path. Even if Vulkan is installed correctly, the project file won't fine the vulkan headers. I'm not sure how to add that to the project file/sln builder, otherwise I'd do a PR. |
No need to do a PR for something that is already present. |
I had this same symptom and I'm writing to describe my solution. I did all of these steps, before installing the Vulkan SDK, which is obviously not going to work:
I installed Vulkan SDK and rebooted, and at this point, even adding the correct include directory in the Project settings did not let the compiler find So Walnut still wouldn't compile. I believe this is because
Hopefully this information helps someone else out there |
When trying to compile. I am getting this error: Cannot open include file: 'vulkan/vulkan.h': No such file or directory
Is something missing, or is there some dependency I am missing?
The text was updated successfully, but these errors were encountered: