I am trying to build opencv with cuda support.
Below are the softwares which I used -
Cmake 3.23.2
Opencv 4.5.5
Opencv contrib 4.x
Visual Studio 17 2022
Python 3.8.13
Cuda 11.7
Cudnn 8.4
libprotoc 3.20.1
I used cmake to create the files by following this tutorial https://www.youtube.com/watch?v=YsmhKar8oOc on an virtual environment.
When i issue this command -> "C:\Program Files\CMake\bin\cmake.exe" --build "C:\opencv\build" --target INSTALL --config Release
I got the below error which says -
C:\opencv\opencv_contrib-4.x\opencv_contrib-4.x\modules\cudaoptflow\src\cuda\pyrlk.cu(936): warning #1215-D: function "tex2D(texture<T, 2, cudaReadModeElementType>, float, float) [with T=float]" [C:\opencv\buil
d\modules\world\opencv_world.vcxproj]
and
C:\opencv\opencv-4.5.5\opencv-4.5.5\modules\dnn\misc\caffe\opencv-caffe.pb.h(17,1): fatal error C1189: #error: This file was generated by an older version of protoc which is (compiling source file C:\opencv\op
encv-4.5.5\opencv-4.5.5\modules\dnn\misc\caffe\opencv-caffe.pb.cc) [C:\opencv\build\modules\world\opencv_world.vcxproj]
Thank You