microsoft / vcpkg

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

[opencv] build failure with NVIDIA video codec #40393

Open kauai68 opened 2 months ago

kauai68 commented 2 months ago

Operating system

Windows 10, x64

Compiler

MSVC

Steps to reproduce the behavior

Download and copy include and lib files to your CUDA toolkit directory from here: https://developer.nvidia.com/nvidia-video-codec-sdk/download

.\vcpkg install opencv[OPENMP,CUDA,CUDNN]:x64-windows
build fails with a bug in NvEncoder.cpp (patch is attached)

Failure logs

fix_nvencoder.patch

Additional context

No response

greenozon commented 2 months ago

Please include logs files with errors as well

kauai68 commented 2 months ago

I don't have the error log available, but the attribute pixelBitDepthMinus8 doesn't exist in hevcConfig anymore. 

pIntializeParams->encodeConfig->encodeCodecConfig.hevcConfig.pixelBitDepthMinus8

JonLiu1993 commented 2 months ago

@kauai68, Could you please provide the steps to reproduce your error?

github-actions[bot] commented 1 month ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.