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

About vs2022 and Vulkan build error on windows #30

Open
yjszzx opened this issue Mar 3, 2024 · 12 comments
Open

About vs2022 and Vulkan build error on windows #30

yjszzx opened this issue Mar 3, 2024 · 12 comments

Comments

@yjszzx
Copy link

yjszzx commented Mar 3, 2024

Hello, I get the clone of github on vs2022 and install the vulkan 1.3.275.0 at C:\VulkanSDK\1.3.275.0 on Windows.
I set the project at D:\Desktop\ogldev-master. Then build the solution and find the error.

1709473306625
@yjszzx
Copy link
Author

yjszzx commented Mar 3, 2024

And it is occur on windows 11

@emeiri-intel
Copy link
Contributor

Did you setup the environment variable VULKAN_SDK ?

@yjszzx
Copy link
Author

yjszzx commented Mar 3, 2024

Well, i didn't set it. Based on the https://ogldev.org/www/tutorial50/tutorial50.html , it tell me that "I suggest you install the SDK under c:\VulkanSDK to make it compatible with the Visual Studio solution that I provide". So ,how can i set it?

@yjszzx
Copy link
Author

yjszzx commented Mar 3, 2024

I check that i think the VULKAN environment variable has been set.
1709475788365

@emeiri
Copy link
Owner

emeiri commented Mar 4, 2024

Yes it looks ok. Can you please provide the full build log of the VulkanCore library?
Also note that the visual studio solution is now more in sync with the video tutorials. Have you watched https://youtu.be/EsEP9iJKBhU and followed all the instructions?

@yjszzx
Copy link
Author

yjszzx commented Mar 24, 2024

Well i have only see the tutorial 50 video. And i find that i don't have VulkanCore.lib at .\ogldev\Windows\Lib. Is this matter?

@yjszzx
Copy link
Author

yjszzx commented Mar 24, 2024

I mention there are some different between the github code and the video. And how can i get the OGLCompilerd.lib and VulkanCore.lib' ?

@emeiri
Copy link
Owner

emeiri commented Mar 24, 2024

The differences are because the code is constantly evolving. In the video description you can find a tag (usually VULKAN_01, VULKAN_02, etc) that you can checkout if you want the code to match exactly the version in the video. VulkanCore.lib is built by the VS solution. OGLCompilerd.lib is in c:\VulkanSDK<version>\Lib.

@yjszzx
Copy link
Author

yjszzx commented Mar 25, 2024

Thank you. My Vulkan version is 1.3.280.0, I install on windows 11. I can find vulkan-1.lib etc, but I don't find the OGLCompilerd.lib at the C:\VulkanSDK\1.3.280.0\Lib folder. I select all at the install step. What Vulkan version is you using? Is this the matter?

@yjszzx
Copy link
Author

yjszzx commented Mar 25, 2024

image

@emeiri
Copy link
Owner

emeiri commented Mar 25, 2024

I'm using 1.3.268. Perhaps they removed this library? A quick google check didn't reveal anything about it but perhaps it is mentioned in one of their release notes. Anyway, you are not supposed to see a problem until we get to shader compilation. At some point I'll upgrade my SDK and see if the problems reproduces.

@yjszzx
Copy link
Author

yjszzx commented Mar 26, 2024

Thank you, I have back the vulkan version to 1.3.268 and check that the OGLCompilerd.lib exist. But there are other problem, i will try to solve them!

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

No branches or pull requests

3 participants