CMake can NOT find Vulkan when building
-
OS: Windows 11
Qt version: 6.6.1CMake always reports missing: Vulkan_INCLUDE_DIR, like this:
This project is generated with a template(Qt Widgets Application) in Qt Creator, and I didn't modify any files.
Here are my questions:
- What is Vulkan?
- Do all Widget Applications need Vulkan?
- How to fix this missing warning?
I am new in QT, please be nice to me :)
-
@PerssonBrown Vulcan is a 3D graphics API, see https://en.wikipedia.org/wiki/Vulkan
On Windows you can ignore this, Qt is using DirectX or OpenGL on Windows. -
@PerssonBrown said in CMake can NOT find Vulkan when building:
Here are my questions:
- What is Vulkan?
It is a library for displaying graphics, much like OpenGL, DirectX or Metal.
- Do all Widget Applications need Vulkan?
No, you can safely ignore this warning. When Vulkan is not present, Qt will use other libraries to draw stuff.
- How to fix this missing warning?
On Windows I'm not sure if you can fix it, but you can ignore it.
-