Open
Description
System Information
OpenCV 4.12.0
Windows 10 or 11
CMakeGUI 4.0.3
Latest Visual Studio 2019 (16.11.48) or 2022 (17.14.7)
CUDA SDK 12.9 or CUDA SDK 12.9 Update 1
Detailed description
When trying to compile OpenCV 4.12.0 with CUDA module (from opencv_contrib, WITH_CUDA), a lot of compilation errors appear when compiling .cu files
Steps to reproduce
It has been reported in #3965
The problem occurs with MSVC, and it has been identified that ENABLE_CUDA_FIRST_CLASS_LANGUAGE must not be enabled
Issue submission checklist
- I report the issue, it's not a question
- I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- I updated to the latest OpenCV version and the issue is still there
- There is reproducer code and related data files (videos, images, onnx, etc)