microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.13k stars 6.37k forks source link

[vulkan] Build error #32442

Closed ghost closed 1 year ago

ghost commented 1 year ago

Package: vulkan:x64-windows-static -> 1.1.82.1#6

Host Environment

To Reproduce

vcpkg install imgui[vulkan-binding]:x64-windows-static --recurse

Failure logs

-- Found external ninja('1.11.0').
-- Configuring x64-windows-static
CMake Error at ports/vulkan/portfile.cmake:30 (message):
  The Vulkan SDK wasn't found.  Refer to Getting Started with the Windows
  Vulkan SDK:
  https://vulkan.lunarg.com/doc/sdk/latest/windows/getting_started.html
Call Stack (most recent call first):
  scripts/ports.cmake:147 (include)

Additional context

StarGate-One commented 1 year ago

CMake Error at ports/vulkan/portfile.cmake:30 (message): The Vulkan SDK wasn't found. Refer to Getting Started with the Windows Vulkan SDK: https://vulkan.lunarg.com/doc/sdk/latest/windows/getting_started.html

You need to install one of the Vulkan SDKs?

juan-lunarg commented 1 year ago

@Yurichtofen do you have the Vulkan SDK installed? Seems like this port requires it. The fix seems pretty straight forward.

ghost commented 1 year ago

Though that this would be handled via VCPKG automatically, alright.

StarGate-One commented 1 year ago

Though that this would be handled via VCPKG automatically, alright.

Some software SDK packages such as ATLMFC, CUDA, CUDNN, Vulkan and others require the developer to download and install the SDK prior to adding the port to vcpkg due to licensing restrictions. These SDKs are basically an empty port serving as a pointer to the physical location for other ports and their features.

juan-lunarg commented 1 year ago

Though that this would be handled via VCPKG automatically, alright.

Currently the vulkan port just checks that you have the Vulkan SDK installed. I thought it was a bit confusing initially as well.

shyakocat commented 1 year ago

I have the same problem. My solution is sudo run in Administrator.