nvpro-samples / vk_video_samples

Vulkan video samples
Apache License 2.0
237 stars 40 forks source link

Errors on Windows 11 / MSVC 2022 / Vulkan SDK 1.3.239.0 / NV 3060 latest drivers #56

Closed ar-visions closed 10 months ago

ar-visions commented 10 months ago

I get about 250 errors in vk_video_samples:

VkVideoCore/VkVideoCoreProfile.h(171,47): error C2065: 'VK_STRUCTURE _TYPE_VIDEO_DECODE_H265_PROFILE_INFO_KHR': undeclared identifier (compiling source file vk_video_samples\vk_video_encoder\NvEncodeApp.cpp) [vk_video_samples\build\vk_video_encoder.vcxproj]

error C2065: 'm_h265DecodeProfile': undeclared identifier (compiling source file vk_video_samples\vk_video_encoder\VkCodecUtils\N vPictureBuffer.cpp)

this is after a build_all clone, and clone_all.bat.

I need to get an encoder example working is all.

I'm unclear why vulkan headers exist in this example when you request VulkanSDK be installed? Anyway its not looking at the headers installed on the system -- its looking at nvidia's headers local to project: "vulkan/vulkan.h"

ar-visions commented 10 months ago

Are there cmake build args I need to pass for vk_video_encoder?

image

MSBuild version 17.7.2+d6990bcfa for .NET Framework 17.7.2.37605

cmake --version cmake version 3.27.1

ar-visions commented 10 months ago

I actually think this is because I didnt cd ../nvpro_core/nvvk and run the generator script there. I just went to linux and did so and it built. Closing before I forget. If its not the issue on Windows I'll comment on how to resolve