Building OpenCV with CUDA (Win10, VS 2017)
Hi, I am building OpenCV (4.0.0) with CUDA (10), TBB, MKL, VTK, Eigen on MS VIsual Studio 2017 (15.9.4) Evrything seems to work except that I get this error while building the INSTALL project in RELEASE mode. (I haven'T tried out the debug mode yet).
I get these four errors
54>c:\software\opencv\opencv\modules\core\include\opencv2\core\cuda\detail/color_detail.hpp(535): error : dynamic initialization is not supported for a __constant__ variable
54>c:\software\opencv\opencv\modules\core\include\opencv2\core\cuda\detail/color_detail.hpp(584): error : dynamic initialization is not supported for a __constant__ variable
54>c:\software\opencv\opencv\modules\core\include\opencv2\core\cuda\detail/color_detail.hpp(674): error : dynamic initialization is not supported for a __constant__ variable
54>c:\software\opencv\opencv\modules\core\include\opencv2\core\cuda\detail/color_detail.hpp(751): error : dynamic initialization is not supported for a __constant__ variable
from these four lines
(535) __constant__ float c_RGB2YUVCoeffs_f[5] = { B2YF, G2YF, R2YF, B2UF, R2VF };
(584) __constant__ float c_YUV2RGBCoeffs_f[5] = { U2BF, U2GF, V2GF, V2RF };
(674) __constant__ float c_RGB2YCrCbCoeffs_f[5] = {R2YF, G2YF, B2YF, YCRF, YCBF};
(751) __constant__ float c_YCrCb2RGBCoeffs_f[5] = {CR2RF, CR2GF, CB2GF, CB2BF};
I am kind of clueless how to deal with it. Any help would be much appreciated. Thanks!
I checked in CMake opencv_world and this could be the difference between our compilations but theoretically this should not make any difference. Thank you very much! XvideosYoupornXhamster