Skip to content

Fix cudacodec compilation with HAVE_NVCUVID=HAVE_NVCUVENC=OFF#4066

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
antonio-rojas:fix-cudacodec-build
Jan 21, 2026
Merged

Fix cudacodec compilation with HAVE_NVCUVID=HAVE_NVCUVENC=OFF#4066
asmorkalov merged 1 commit intoopencv:4.xfrom
antonio-rojas:fix-cudacodec-build

Conversation

@antonio-rojas
Copy link
Contributor

After the dependencies refactor in d8222d3 cudacodec no longer builds if HAVE_NVCUVID and HAVE_HVCUVENC are OFF, since the cuda header path is not being added to the include dirs.

Fixes #4045

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

After the dependencies refactor in opencv@d8222d3 cudacodec no longer builds if HAVE_NVCUVID and HAVE_HVCUVENC are OFF, since the cuda header path is not being added to the include dirs.

Fixes opencv#4045
Copy link
Contributor

@asmorkalov asmorkalov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed the issue and the fix locally with Ubuntu 24.04.

@asmorkalov asmorkalov merged commit abaddbc into opencv:4.x Jan 21, 2026
10 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build error in cudacodec

2 participants