### System Information
On Linux(Ubuntu)
- `OS`: Ubuntu 24.04.4
- `complier`: gc…c13.3
- `CUDA VERSION`: 13.2
- `CUDNN version`: 9.20
- `NV driver version`: 590 (I know this doesn't match the cuda 13.2's requirement, but it doesn't matter when building)
- `NV graphic card`: 3090
On Window(windows11)
- `OS`: Windows11 25h2 professional
- `complier`: msvc (both vs2022 and vs2026)
- `CUDA VERSION`: 13.2
- `CUDNN version`: 9.20
- `NV driver version`: 595
- `NV graphic card`: 5070Laptop
### Detailed description
Error logs: (On windows platform, which is the same as on Linux)
```txt
Processing OpenCL kernels (core)
Building NVCC (Device) object modules/world/CMakeFiles/cuda_compile_1.dir/__/core/src/cuda/Debug/cuda_compile_1_generated_gpu_mat.cu.obj
gpu_mat.cu
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\../ptr2d/zip.hpp(182): error : this declaration has no storage class or type specifier
_LIBCUDACXX_BEGIN_NAMESPACE_STD
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\../ptr2d/zip.hpp(184): error : expected a ";"
template< class... Types >
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\../ptr2d/zip.hpp(189): error : tuple is not a template
struct tuple_size< cv::cudev::ZipPtrSz<tuple<Types...> > >
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\../ptr2d/zip.hpp(189): error : a template argument list is not allowed in a declaration of a primary template
struct tuple_size< cv::cudev::ZipPtrSz<tuple<Types...> > >
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\../ptr2d/zip.hpp(190): error : tuple_size is not a template
: tuple_size<tuple<Types...> > { };
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\../ptr2d/zip.hpp(190): error : identifier "tuple" is undefined
: tuple_size<tuple<Types...> > { };
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\../ptr2d/zip.hpp(190): error : type name is not allowed
: tuple_size<tuple<Types...> > { };
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\../ptr2d/zip.hpp(194): error : a template argument list is not allowed in a declaration of a primary template
struct tuple_element<N, cv::cudev::ZipPtr<tuple<Types...> > >
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\../ptr2d/zip.hpp(195): error : tuple_element is not a template
: tuple_element<N, tuple<Types...> > { };
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\../ptr2d/zip.hpp(195): error : type name is not allowed
: tuple_element<N, tuple<Types...> > { };
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\../ptr2d/zip.hpp(198): error : a template argument list is not allowed in a declaration of a primary template
struct tuple_element<N, cv::cudev::ZipPtrSz<tuple<Types...> > >
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\../ptr2d/zip.hpp(199): error : tuple_element is not a template
: tuple_element<N, tuple<Types...> > { };
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\../ptr2d/zip.hpp(199): error : type name is not allowed
: tuple_element<N, tuple<Types...> > { };
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\../ptr2d/zip.hpp(201): error : this declaration has no storage class or type specifier
_LIBCUDACXX_END_NAMESPACE_STD
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\detail/copy.hpp(55): error : expected a ";"
namespace cv { namespace cudev {
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\detail/copy.hpp(77): warning #12-D: parsing restarts here after previous syntax error
copy<<<grid, block, 0, stream>>>(src, dst, mask, rows, cols);
^
Remark: The warnings can be suppressed with "-diag-suppress <warning-number>"
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\detail/copy.hpp(78): error : expected a type specifier
cv::cudev::checkCudaError((cudaGetLastError()), "D:\\software-sourcecode\\opencv_contrib\\modules\\cudev\\include\\opencv2\\cudev\\grid\\detail/copy.hpp", 78, __FUNCTION__) ;
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\detail/copy.hpp(78): error : expected a type specifier
cv::cudev::checkCudaError((cudaGetLastError()), "D:\\software-sourcecode\\opencv_contrib\\modules\\cudev\\include\\opencv2\\cudev\\grid\\detail/copy.hpp", 78, __FUNCTION__) ;
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\detail/copy.hpp(78): error : expected a type specifier
cv::cudev::checkCudaError((cudaGetLastError()), "D:\\software-sourcecode\\opencv_contrib\\modules\\cudev\\include\\opencv2\\cudev\\grid\\detail/copy.hpp", 78, __FUNCTION__) ;
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\detail/copy.hpp(78): error : expected a type specifier
cv::cudev::checkCudaError((cudaGetLastError()), "D:\\software-sourcecode\\opencv_contrib\\modules\\cudev\\include\\opencv2\\cudev\\grid\\detail/copy.hpp", 78, __FUNCTION__) ;
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\detail/copy.hpp(78): error : explicit type is missing ("int" assumed)
cv::cudev::checkCudaError((cudaGetLastError()), "D:\\software-sourcecode\\opencv_contrib\\modules\\cudev\\include\\opencv2\\cudev\\grid\\detail/copy.hpp", 78, __FUNCTION__) ;
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\detail/copy.hpp(78): error : declaration is incompatible with "void cv::cudev::checkCudaError(cudaError_t, const char *, int, const char *)" (declared at line 70 of D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/common.hpp)
cv::cudev::checkCudaError((cudaGetLastError()), "D:\\software-sourcecode\\opencv_contrib\\modules\\cudev\\include\\opencv2\\cudev\\grid\\detail/copy.hpp", 78, __FUNCTION__) ;
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\detail/copy.hpp(80): error : expected a declaration
if (stream == 0)
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\detail/copy.hpp(82): error : expected a declaration
}
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\detail/copy.hpp(95): warning #12-D: parsing restarts here after previous syntax error
};
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\detail/copy.hpp(96): error : Unroll is not a template
template <> struct Unroll<0>
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\detail/copy.hpp(113): error : identifier "Unroll" is undefined
Unroll<tuple_size<SrcPtrTuple>::value>::copy(src, dst, y, x);
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\detail/copy.hpp(113): error : identifier "tuple_size" is undefined
Unroll<tuple_size<SrcPtrTuple>::value>::copy(src, dst, y, x);
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\detail/copy.hpp(113): error : type name is not allowed
Unroll<tuple_size<SrcPtrTuple>::value>::copy(src, dst, y, x);
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\detail/copy.hpp(113): error : the global scope has no "value"
Unroll<tuple_size<SrcPtrTuple>::value>::copy(src, dst, y, x);
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\detail/copy.hpp(113): error : the global scope has no "copy"
Unroll<tuple_size<SrcPtrTuple>::value>::copy(src, dst, y, x);
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev\grid\detail/copy.hpp(128): error : expected a declaration
}
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(79): warning #12-D: parsing restarts here after previous syntax error
const int rows = getRows(src);
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(80): error : identifier "src" is undefined
const int cols = getCols(src);
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(80): error : identifier "getCols" is undefined
const int cols = getCols(src);
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(82): error : expected a declaration
do { if(!!(getRows(dst) == rows && getCols(dst) == cols)) ; else cv::error( cv::Error::StsAssert, "getRows(dst) == rows && getCols(dst) == cols", __FUNCTION__, "D:\\software-sourcecode\\opencv_contrib\\modules\\cudev\\include\\opencv2\\cudev/grid/copy.hpp", 82 ); } while(0) ;
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(83): error : expected a declaration
do { if(!!(getRows(mask) == rows && getCols(mask) == cols)) ; else cv::error( cv::Error::StsAssert, "getRows(mask) == rows && getCols(mask) == cols", __FUNCTION__, "D:\\software-sourcecode\\opencv_contrib\\modules\\cudev\\include\\opencv2\\cudev/grid/copy.hpp", 83 ); } while(0) ;
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(85): error : name followed by "::" must be a class or namespace name
grid_copy_detail::copy<Policy>(shrinkPtr(src), shrinkPtr(dst), shrinkPtr(mask), rows, cols, StreamAccessor::getStream(stream));
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(85): error : expected a ";"
grid_copy_detail::copy<Policy>(shrinkPtr(src), shrinkPtr(dst), shrinkPtr(mask), rows, cols, StreamAccessor::getStream(stream));
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(86): error : expected a declaration
}
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(355): warning #12-D: parsing restarts here after previous syntax error
};
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(358): error : GpuMat_ is not a template
__declspec(__host__) void gridCopy(const SrcPtr& src, GpuMat_<DstType>& dst, const MaskPtr& mask, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(358): error : identifier "Stream" is undefined
__declspec(__host__) void gridCopy(const SrcPtr& src, GpuMat_<DstType>& dst, const MaskPtr& mask, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(358): error : name followed by "::" must be a class or namespace name
__declspec(__host__) void gridCopy(const SrcPtr& src, GpuMat_<DstType>& dst, const MaskPtr& mask, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(360): error : identifier "gridCopy_" is undefined
gridCopy_<DefaultCopyPolicy>(src, dst, mask, stream);
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(364): error : GlobPtrSz is not a template
__declspec(__host__) void gridCopy(const SrcPtr& src, const GlobPtrSz<DstType>& dst, const MaskPtr& mask, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(364): error : identifier "Stream" is undefined
__declspec(__host__) void gridCopy(const SrcPtr& src, const GlobPtrSz<DstType>& dst, const MaskPtr& mask, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(364): error : name followed by "::" must be a class or namespace name
__declspec(__host__) void gridCopy(const SrcPtr& src, const GlobPtrSz<DstType>& dst, const MaskPtr& mask, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(366): error : identifier "gridCopy_" is undefined
gridCopy_<DefaultCopyPolicy>(src, dst, mask, stream);
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(370): error : GpuMat_ is not a template
__declspec(__host__) void gridCopy(const SrcPtr& src, GpuMat_<DstType>& dst, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(370): error : identifier "Stream" is undefined
__declspec(__host__) void gridCopy(const SrcPtr& src, GpuMat_<DstType>& dst, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(370): error : name followed by "::" must be a class or namespace name
__declspec(__host__) void gridCopy(const SrcPtr& src, GpuMat_<DstType>& dst, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(372): error : identifier "gridCopy_" is undefined
gridCopy_<DefaultCopyPolicy>(src, dst, stream);
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(376): error : GlobPtrSz is not a template
__declspec(__host__) void gridCopy(const SrcPtr& src, const GlobPtrSz<DstType>& dst, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(376): error : identifier "Stream" is undefined
__declspec(__host__) void gridCopy(const SrcPtr& src, const GlobPtrSz<DstType>& dst, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(376): error : name followed by "::" must be a class or namespace name
__declspec(__host__) void gridCopy(const SrcPtr& src, const GlobPtrSz<DstType>& dst, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(378): error : identifier "gridCopy_" is undefined
gridCopy_<DefaultCopyPolicy>(src, dst, stream);
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(382): error : identifier "GpuMat_" is undefined
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GpuMat_<D0>&, GpuMat_<D1>& >& dst, const MaskPtr& mask, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(382): error : type name is not allowed
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GpuMat_<D0>&, GpuMat_<D1>& >& dst, const MaskPtr& mask, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(382): error : expected a ")"
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GpuMat_<D0>&, GpuMat_<D1>& >& dst, const MaskPtr& mask, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(384): error : identifier "gridCopy_" is undefined
gridCopy_<DefaultCopyPolicy>(src, dst, mask, stream);
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(388): error : identifier "GlobPtrSz" is undefined
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GlobPtrSz<D0>, GlobPtrSz<D1> >& dst, const MaskPtr& mask, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(388): error : type name is not allowed
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GlobPtrSz<D0>, GlobPtrSz<D1> >& dst, const MaskPtr& mask, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(388): error : expected a ")"
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GlobPtrSz<D0>, GlobPtrSz<D1> >& dst, const MaskPtr& mask, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(390): error : identifier "gridCopy_" is undefined
gridCopy_<DefaultCopyPolicy>(src, dst, mask, stream);
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(394): error : identifier "GpuMat_" is undefined
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GpuMat_<D0>&, GpuMat_<D1>& >& dst, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(394): error : type name is not allowed
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GpuMat_<D0>&, GpuMat_<D1>& >& dst, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(394): error : expected a ")"
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GpuMat_<D0>&, GpuMat_<D1>& >& dst, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(396): error : identifier "gridCopy_" is undefined
gridCopy_<DefaultCopyPolicy>(src, dst, stream);
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(400): error : identifier "GlobPtrSz" is undefined
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GlobPtrSz<D0>, GlobPtrSz<D1> >& dst, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(400): error : type name is not allowed
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GlobPtrSz<D0>, GlobPtrSz<D1> >& dst, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(400): error : expected a ")"
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GlobPtrSz<D0>, GlobPtrSz<D1> >& dst, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(402): error : identifier "gridCopy_" is undefined
gridCopy_<DefaultCopyPolicy>(src, dst, stream);
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(406): error : identifier "GpuMat_" is undefined
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GpuMat_<D0>&, GpuMat_<D1>&, GpuMat_<D2>& >& dst, const MaskPtr& mask, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(406): error : type name is not allowed
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GpuMat_<D0>&, GpuMat_<D1>&, GpuMat_<D2>& >& dst, const MaskPtr& mask, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(406): error : expected a ")"
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GpuMat_<D0>&, GpuMat_<D1>&, GpuMat_<D2>& >& dst, const MaskPtr& mask, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(408): error : identifier "gridCopy_" is undefined
gridCopy_<DefaultCopyPolicy>(src, dst, mask, stream);
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(412): error : identifier "GlobPtrSz" is undefined
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GlobPtrSz<D0>, GlobPtrSz<D1>, GlobPtrSz<D2> >& dst, const MaskPtr& mask, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(412): error : type name is not allowed
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GlobPtrSz<D0>, GlobPtrSz<D1>, GlobPtrSz<D2> >& dst, const MaskPtr& mask, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(412): error : expected a ")"
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GlobPtrSz<D0>, GlobPtrSz<D1>, GlobPtrSz<D2> >& dst, const MaskPtr& mask, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(414): error : identifier "gridCopy_" is undefined
gridCopy_<DefaultCopyPolicy>(src, dst, mask, stream);
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(418): error : identifier "GpuMat_" is undefined
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GpuMat_<D0>&, GpuMat_<D1>&, GpuMat_<D2>& >& dst, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(418): error : type name is not allowed
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GpuMat_<D0>&, GpuMat_<D1>&, GpuMat_<D2>& >& dst, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(418): error : expected a ")"
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GpuMat_<D0>&, GpuMat_<D1>&, GpuMat_<D2>& >& dst, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(420): error : identifier "gridCopy_" is undefined
gridCopy_<DefaultCopyPolicy>(src, dst, stream);
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(424): error : identifier "GlobPtrSz" is undefined
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GlobPtrSz<D0>, GlobPtrSz<D1>, GlobPtrSz<D2> >& dst, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(424): error : type name is not allowed
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GlobPtrSz<D0>, GlobPtrSz<D1>, GlobPtrSz<D2> >& dst, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(424): error : expected a ")"
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GlobPtrSz<D0>, GlobPtrSz<D1>, GlobPtrSz<D2> >& dst, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(426): error : identifier "gridCopy_" is undefined
gridCopy_<DefaultCopyPolicy>(src, dst, stream);
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(430): error : identifier "GpuMat_" is undefined
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GpuMat_<D0>&, GpuMat_<D1>&, GpuMat_<D2>&, GpuMat_<D3>& >& dst, const MaskPtr& mask, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(430): error : type name is not allowed
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GpuMat_<D0>&, GpuMat_<D1>&, GpuMat_<D2>&, GpuMat_<D3>& >& dst, const MaskPtr& mask, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(430): error : expected a ")"
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GpuMat_<D0>&, GpuMat_<D1>&, GpuMat_<D2>&, GpuMat_<D3>& >& dst, const MaskPtr& mask, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(432): error : identifier "gridCopy_" is undefined
gridCopy_<DefaultCopyPolicy>(src, dst, mask, stream);
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(436): error : identifier "GlobPtrSz" is undefined
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GlobPtrSz<D0>, GlobPtrSz<D1>, GlobPtrSz<D2>, GlobPtrSz<D3> >& dst, const MaskPtr& mask, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(436): error : type name is not allowed
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GlobPtrSz<D0>, GlobPtrSz<D1>, GlobPtrSz<D2>, GlobPtrSz<D3> >& dst, const MaskPtr& mask, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(436): error : expected a ")"
__declspec(__host__) void gridCopy(const SrcPtrTuple& src, const tuple< GlobPtrSz<D0>, GlobPtrSz<D1>, GlobPtrSz<D2>, GlobPtrSz<D3> >& dst, const MaskPtr& mask, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(438): error : identifier "gridCopy_" is undefined
gridCopy_<DefaultCopyPolicy>(src, dst, mask, stream);
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(442): error : identifier "GpuMat_" is undefined
__declspec(__host__) void gridCopy_(const SrcPtrTuple& src, const tuple< GpuMat_<D0>&, GpuMat_<D1>&, GpuMat_<D2>&, GpuMat_<D3>& >& dst, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(442): error : type name is not allowed
__declspec(__host__) void gridCopy_(const SrcPtrTuple& src, const tuple< GpuMat_<D0>&, GpuMat_<D1>&, GpuMat_<D2>&, GpuMat_<D3>& >& dst, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(442): error : expected a ")"
__declspec(__host__) void gridCopy_(const SrcPtrTuple& src, const tuple< GpuMat_<D0>&, GpuMat_<D1>&, GpuMat_<D2>&, GpuMat_<D3>& >& dst, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(448): error : identifier "GlobPtrSz" is undefined
__declspec(__host__) void gridCopy_(const SrcPtrTuple& src, const tuple< GlobPtrSz<D0>, GlobPtrSz<D1>, GlobPtrSz<D2>, GlobPtrSz<D3> >& dst, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(448): error : type name is not allowed
__declspec(__host__) void gridCopy_(const SrcPtrTuple& src, const tuple< GlobPtrSz<D0>, GlobPtrSz<D1>, GlobPtrSz<D2>, GlobPtrSz<D3> >& dst, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(448): error : expected a ")"
__declspec(__host__) void gridCopy_(const SrcPtrTuple& src, const tuple< GlobPtrSz<D0>, GlobPtrSz<D1>, GlobPtrSz<D2>, GlobPtrSz<D3> >& dst, Stream& stream = Stream::Null())
^
D:\software-sourcecode\opencv_contrib\modules\cudev\include\opencv2\cudev/grid/copy.hpp(455): error : expected a declaration
}}
^
Error limit reached.
100 errors detected in the compilation of "D:/software-sourcecode/opencv/modules/core/src/cuda/gpu_mat.cu".
Compilation terminated.
gpu_mat.cu
CMake Error at cuda_compile_1_generated_gpu_mat.cu.obj.Debug.cmake:278 (message):
Error generating file
D:/software-sourcecode/opencv/build/modules/world/CMakeFiles/cuda_compile_1.dir/__/core/src/cuda/Debug/cuda_compile_1_generated_gpu_mat.cu.obj
C:\Program Files\Microsoft Visual Studio\18\Community\MSBuild\Microsoft\VC\v180\Microsoft.CppCommon.targets(254,5): error MSB8066: “D:\software-sourcecode\opencv\build\CMakeFiles\42c9486fe654122c094765672cf5d6a8\opencl_kernels_core.cpp.rule;D:\software-sourcecode\opencv\modules\core\src\cuda\gpu_mat.cu;D:\software-sourcecode\opencv\modules\core\src\cuda\gpu_mat_nd.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\absdiff_mat.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\absdiff_scalar.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\add_mat.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\add_scalar.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\add_weighted.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\bitwise_mat.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\bitwise_scalar.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\cmp_mat.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\cmp_scalar.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\copy_make_border.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\countnonzero.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\div_mat.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\div_scalar.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\in_range.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\integral.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\lut.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\math.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\minmax.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\minmax_mat.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\minmaxloc.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\mul_mat.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\mul_scalar.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\mul_spectrums.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\norm.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\normalize.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\polar_cart.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\reduce.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\split_merge.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\sub_mat.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\sub_scalar.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\sum.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\threshold.cu;D:\software-sourcecode\opencv_contrib\modules\cudaarithm\src\cuda\transpose.cu;D:\software-sourcecode\opencv\build\CMakeFiles\42c9486fe654122c094765672cf5d6a8\opencl_kernels_imgproc.cpp.rule;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\column_filter.16sc1.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\column_filter.16sc3.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\column_filter.16sc4.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\column_filter.16uc1.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\column_filter.16uc3.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\column_filter.16uc4.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\column_filter.32fc1.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\column_filter.32fc3.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\column_filter.32fc4.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\column_filter.32sc1.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\column_filter.32sc3.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\column_filter.32sc4.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\column_filter.8uc1.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\column_filter.8uc3.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\column_filter.8uc4.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\filter2d.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\median_filter.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\row_filter.16sc1.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\row_filter.16sc3.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\row_filter.16sc4.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\row_filter.16uc1.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\row_filter.16uc3.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\row_filter.16uc4.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\row_filter.32fc1.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\row_filter.32fc3.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\row_filter.32fc4.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\row_filter.32sc1.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\row_filter.32sc3.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\row_filter.32sc4.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\row_filter.8uc1.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\row_filter.8uc3.cu;D:\software-sourcecode\opencv_contrib\modules\cudafilters\src\cuda\row_filter.8uc4.cu;D:\software-sourcecode\opencv_contrib\modules\cudaimgproc\src\cuda\bilateral_filter.cu;D:\software-sourcecode\opencv_contrib\modules\cudaimgproc\src\cuda\blend.cu;D:\software-sourcecode\opencv_contrib\modules\cudaimgproc\src\cuda\build_point_list.cu;D:\software-sourcecode\opencv_contrib\modules\cudaimgproc\src\cuda\canny.cu;D:\software-sourcecode\opencv_contrib\modules\cudaimgproc\src\cuda\clahe.cu;D:\software-sourcecode\opencv_contrib\modules\cudaimgproc\src\cuda\color.cu;D:\software-sourcecode\opencv_contrib\modules\cudaimgproc\src\cuda\connectedcomponents.cu;D:\software-sourcecode\opencv_contrib\modules\cudaimgproc\src\cuda\corners.cu;D:\software-sourcecode\opencv_contrib\modules\cudaimgproc\src\cuda\debayer.cu;D:\software-sourcecode\opencv_contrib\modules\cudaimgproc\src\cuda\generalized_hough.cu;D:\software-sourcecode\opencv_contrib\modules\cudaimgproc\src\cuda\gftt.cu;D:\software-sourcecode\opencv_contrib\modules\cudaimgproc\src\cuda\hist.cu;D:\software-sourcecode\opencv_contrib\modules\cudaimgproc\src\cuda\hough_circles.cu;D:\software-sourcecode\opencv_contrib\modules\cudaimgproc\src\cuda\hough_lines.cu;D:\software-sourcecode\opencv_contrib\modules\cudaimgproc\src\cuda\hough_segments.cu;D:\software-sourcecode\opencv_contrib\modules\cudaimgproc\src\cuda\match_template.cu;D:\software-sourcecode\opencv_contrib\modules\cudaimgproc\src\cuda\mean_shift.cu;D:\software-sourcecode\opencv_contrib\modules\cudaimgproc\src\cuda\moments.cu;D:\software-sourcecode\opencv_contrib\modules\cudawarping\src\cuda\pyr_down.cu;D:\software-sourcecode\opencv_contrib\modules\cudawarping\src\cuda\pyr_up.cu;D:\software-sourcecode\opencv_contrib\modules\cudawarping\src\cuda\remap.cu;D:\software-sourcecode\opencv_contrib\modules\cudawarping\src\cuda\resize.cu;D:\software-sourcecode\opencv_contrib\modules\cudawarping\src\cuda\warp.cu;D:\software-sourcecode\opencv\build\CMakeFiles\42c9486fe654122c094765672cf5d6a8\opencl_kernels_dnn.cpp.rule;D:\software-sourcecode\opencv\modules\dnn\src\cuda\activation_eltwise.cu;D:\software-sourcecode\opencv\modules\dnn\src\cuda\activations.cu;D:\software-sourcecode\opencv\modules\dnn\src\cuda\bias_activation.cu;D:\software-sourcecode\opencv\modules\dnn\src\cuda\bias_activation_eltwise.cu;D:\software-sourcecode\opencv\modules\dnn\src\cuda\bias_eltwise_activation.cu;D:\software-sourcecode\opencv\modules\dnn\src\cuda\concat.cu;D:\software-sourcecode\opencv\modules\dnn\src\cuda\crop_and_resize.cu;D:\software-sourcecode\opencv\modules\dnn\src\cuda\detection_output.cu;D:\software-sourcecode\opencv\modules\dnn\src\cuda\eltwise_activation.cu;D:\software-sourcecode\opencv\modules\dnn\src\cuda\eltwise_ops.cu;D:\software-sourcecode\opencv\modules\dnn\src\cuda\fill_copy.cu;D:\software-sourcecode\opencv\modules\dnn\src\cuda\fp_conversion.cu;D:\software-sourcecode\opencv\modules\dnn\src\cuda\grid_nms.cu;D:\software-sourcecode\opencv\modules\dnn\src\cuda\max_unpooling.cu;D:\software-sourcecode\opencv\modules\dnn\src\cuda\mvn.cu;D:\software-sourcecode\opencv\modules\dnn\src\cuda\normalize.cu;D:\software-sourcecode\opencv\modules\dnn\src\cuda\padding.cu;D:\software-sourcecode\opencv\modules\dnn\src\cuda\permute.cu;D:\software-sourcecode\opencv\modules\dnn\src\cuda\prior_box.cu;D:\software-sourcecode\opencv\modules\dnn\src\cuda\region.cu;D:\software-sourcecode\opencv\modules\dnn\src\cuda\resize.cu;D:\software-sourcecode\opencv\modules\dnn\src\cuda\roi_pooling.cu;D:\software-sourcecode\opencv\modules\dnn\src\cuda\scale_shift.cu;D:\software-sourcecode\opencv\modules\dnn\src\cuda\shortcut.cu;D:\software-sourcecode\opencv\modules\dnn\src\cuda\slice.cu;D:\software-sourcecode\opencv\build\CMakeFiles\42c9486fe654122c094765672cf5d6a8\opencl_kernels_features2d.cpp.rule;D:\software-sourcecode\opencv_contrib\modules\hfs\src\cuda\gslic_seg_engine_gpu.cu;D:\software-sourcecode\opencv_contrib\modules\hfs\src\cuda\magnitude.cu;D:\software-sourcecode\opencv\build\CMakeFiles\42c9486fe654122c094765672cf5d6a8\opencl_kernels_photo.cpp.rule;D:\software-sourcecode\opencv\modules\photo\src\cuda\nlm.cu;D:\software-sourcecode\opencv\build\CMakeFiles\42c9486fe654122c094765672cf5d6a8\opencl_kernels_calib3d.cpp.rule;D:\software-sourcecode\opencv_contrib\modules\cudacodec\src\cuda\ColorSpace.cu;D:\software-sourcecode\opencv_contrib\modules\cudafeatures2d\src\cuda\bf_knnmatch.cu;D:\software-sourcecode\opencv_contrib\modules\cudafeatures2d\src\cuda\bf_match.cu;D:\software-sourcecode\opencv_contrib\modules\cudafeatures2d\src\cuda\bf_radius_match.cu;D:\software-sourcecode\opencv_contrib\modules\cudafeatures2d\src\cuda\fast.cu;D:\software-sourcecode\opencv_contrib\modules\cudafeatures2d\src\cuda\orb.cu;D:\software-sourcecode\opencv_contrib\modules\cudastereo\src\cuda\disparity_bilateral_filter.cu;D:\software-sourcecode\opencv_contrib\modules\cudastereo\src\cuda\stereobm.cu;D:\software-sourcecode\opencv_contrib\modules\cudastereo\src\cuda\stereobp.cu;D:\software-sourcecode\opencv_contrib\modules\cudastereo\src\cuda\stereocsbp.cu;D:\software-sourcecode\opencv_contrib\modules\cudastereo\src\cuda\stereosgm.cu;D:\software-sourcecode\opencv_contrib\modules\cudastereo\src\cuda\util.cu;D:\software-sourcecode\opencv\build\CMakeFiles\42c9486fe654122c094765672cf5d6a8\opencl_kernels_objdetect.cpp.rule;D:\software-sourcecode\opencv\build\CMakeFiles\42c9486fe654122c094765672cf5d6a8\opencl_kernels_rgbd.cpp.rule;D:\software-sourcecode\opencv\build\CMakeFiles\42c9486fe654122c094765672cf5d6a8\opencl_kernels_video.cpp.rule;D:\software-sourcecode\opencv\build\CMakeFiles\42c9486fe654122c094765672cf5d6a8\opencl_kernels_xfeatures2d.cpp.rule;D:\software-sourcecode\opencv_contrib\modules\xfeatures2d\src\cuda\surf.cu;D:\software-sourcecode\opencv\build\CMakeFiles\42c9486fe654122c094765672cf5d6a8\opencl_kernels_ximgproc.cpp.rule;D:\software-sourcecode\opencv\build\CMakeFiles\42c9486fe654122c094765672cf5d6a8\opencl_kernels_bioinspired.cpp.rule;D:\software-sourcecode\opencv_contrib\modules\cudabgsegm\src\cuda\mog.cu;D:\software-sourcecode\opencv_contrib\modules\cudabgsegm\src\cuda\mog2.cu;D:\software-sourcecode\opencv_contrib\modules\cudalegacy\src\cuda\NCV.cu;D:\software-sourcecode\opencv_contrib\modules\cudalegacy\src\cuda\NCVBroxOpticalFlow.cu;D:\software-sourcecode\opencv_contrib\modules\cudalegacy\src\cuda\NCVHaarObjectDetection.cu;D:\software-sourcecode\opencv_contrib\modules\cudalegacy\src\cuda\NCVPyramid.cu;D:\software-sourcecode\opencv_contrib\modules\cudalegacy\src\cuda\NPP_staging.cu;D:\software-sourcecode\opencv_contrib\modules\cudalegacy\src\cuda\bm.cu;D:\software-sourcecode\opencv_contrib\modules\cudalegacy\src\cuda\bm_fast.cu;D:\software-sourcecode\opencv_contrib\modules\cudalegacy\src\cuda\calib3d.cu;D:\software-sourcecode\opencv_contrib\modules\cudalegacy\src\cuda\ccomponetns.cu;D:\software-sourcecode\opencv_contrib\modules\cudalegacy\src\cuda\fgd.cu;D:\software-sourcecode\opencv_contrib\modules\cudalegacy\src\cuda\gmg.cu;D:\software-sourcecode\opencv_contrib\modules\cudalegacy\src\cuda\needle_map.cu;D:\software-sourcecode\opencv_contrib\modules\cudaobjdetect\src\cuda\hog.cu;D:\software-sourcecode\opencv_contrib\modules\cudaobjdetect\src\cuda\lbp.cu;D:\software-sourcecode\opencv\build\CMakeFiles\42c9486fe654122c094765672cf5d6a8\opencl_kernels_optflow.cpp.rule;D:\software-sourcecode\opencv\build\CMakeFiles\42c9486fe654122c094765672cf5d6a8\opencl_kernels_stitching.cpp.rule;D:\software-sourcecode\opencv\modules\stitching\src\cuda\build_warp_maps.cu;D:\software-sourcecode\opencv\modules\stitching\src\cuda\multiband_blend.cu;D:\software-sourcecode\opencv\build\CMakeFiles\42c9486fe654122c094765672cf5d6a8\opencl_kernels_tracking.cpp.rule;D:\software-sourcecode\opencv_contrib\modules\cudaoptflow\src\cuda\farneback.cu;D:\software-sourcecode\opencv_contrib\modules\cudaoptflow\src\cuda\nvidiaOpticalFlow.cu;D:\software-sourcecode\opencv_contrib\modules\cudaoptflow\src\cuda\pyrlk.cu;D:\software-sourcecode\opencv_contrib\modules\cudaoptflow\src\cuda\tvl1flow.cu;D:\software-sourcecode\opencv\build\CMakeFiles\42c9486fe654122c094765672cf5d6a8\opencl_kernels_superres.cpp.rule;D:\software-sourcecode\opencv_contrib\modules\superres\src\cuda\btv_l1_gpu.cu;D:\software-sourcecode\opencv_contrib\modules\videostab\src\cuda\global_motion.cu”的自定义生成已退出,代码为 1。
```
### Steps to reproduce
Cmake building flags are as follows:
```bash
cmake -D CMAKE_BUILD_TYPE=Release \
-D OPENCV_EXTRA_MODULES_PATH=/path/to/opencv_contrib/modules \
-D WITH_QT=OFF \
-D WITH_GTK=OFF \
-D WITH_OPENGL=OFF \
-D WITH_FFMPEG=OFF \
-D WITH_GSTREAMER=OFF \
-D WITH_V4L=OFF \
-D WITH_XINE=OFF \
-D WITH_MSMF=OFF \
-D BUILD_TESTS=OFF \
-D BUILD_PERF_TESTS=OFF \
-D BUILD_EXAMPLES=OFF \
-D BUILD_opencv_highgui=OFF \
-D BUILD_opencv_videoio=OFF \
-D BUILD_opencv_java=OFF \
-D BUILD_opencv_python3=OFF \
-D BUILD_opencv_python2=OFF \
-D BUILD_opencv_dnn=ON \
-D BUILD_opencv_world=ON \
-D OPENCV_GENERATE_PKGCONFIG=ON \
-D WITH_CUDA=ON \
-D OPENCV_DNN_CUDA=ON \
-D CUDA_ARCH_BIN="8.0;8.6;8.9;9.0;10.0;12.0;12.1"
```
### Issue submission checklist
- [x] I report the issue, it's not a question
- [x] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [x] I updated to the latest OpenCV version and the issue is still there
- [x] There is reproducer code and related data files (videos, images, onnx, etc)