I’m compiling opencv with cuda enabled for gpu acceleration. I installed cuda stuff, I have anaconda already installed, installed vs2022 with c++ and build tools. After using generate in cmake-gui, I recieved an error(Error 1: OpenCV does not recognize MSVC_VERSION 1924). I proceeded regardless and tried to build in vs2022 but its failing with most of the issues relating to syntax errors. Can someone guide me in the right direction?
OS: Windows 11 22H2
Conda Python: 3.9
Visual studio: 2022
cmake logs: cmake_logs.txt - Google Drive
vs logs: logs.txt - Google Drive
This doesn’t look like it has anything to do with CUDA being enabled.
OpenCV 4.5.2 was released before Visual Studio 2022 (vc17)
Try using OpenCV >= 4.54
after cleaning your build directory to see if this resolves your issue.