opencv: Error when building with CUDA. VS 2017, Win10.
System information (version)
- OpenCV => 4.0.0-dev
- Operating System / Platform => Windows 10
- Compiler => MS Visual Studio 2017 v 15.9.4
- CUDA v 10
Detailed description
Building openCV with contrib, CUDA, MKL, TBB, VTK, Qt, Eigen and Gstreamer. VS sln file gets created without a problem using cmake. Building the INSTALL project causes some projects to fail and going through the debug information, I found the errors you see below
1>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
1>
1>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
1>
1>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
1>
1>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
Steps to reproduce
CMake generates .sln file without a problem. Everything seemed fine. But building the INSTALL project causes some of the subprokects to fail mostly because of the error you see above.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (9 by maintainers)
Guys, check out the answer by gromtron for a temporary fix.