Good morning,
I am currently experiencing an issue building OpenCV with Cuda support.
Following the process of using cmake to configure and generate I am building in visual studio OpenCV 4.11.0. When I attempt to build “ALL_BUILD” in visual studio I hit a snag depending on the vs version that I use. With an older VS version e.g. 17.9.2 I can build without issue. With newer versions such as 17.13.2 however I get various build errors “unsupported visual studio version”. A copy of the error log is below.
This doesn’t seem to be related to the version of OpenCV, this problem also occurs with older versions such as 4.7.0. I think it is to do with the complier and the complier setttings in visual studio.
I can see in the log that you can set an nvcc flag ‘-allow-unsupported-compiler’ as a possible way forward. The question is how exactly do you do this and is this advisable? I would prefer to know what exactly the problem is and why. What is causing the compatibility issue with the newer versions of Visual Studio? Could it be that CUDA needs to be updated for example? (currently using v12.1). If this is so which version should be used? Or do certain complier settings in visual studio need to be changed?
I wanted to ask in the community first before spending further time on this, since every attempt to build takes up time.
Thanks for any help in advance!
cannot open input file '..\..\lib\Release\opencv_cudaoptflow4110.lib'
overflow in constant arithmetic
#error: -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
Custom build for 'C:\Development\OpenCV_4110_CUDA\CMakeFiles\682d0f541d656bc8f8bae7152722d70f\opencl_kernels_core.cpp.rule;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\core\src\cuda\gpu_mat.cu;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\core\src\cuda\gpu_mat_nd.cu' exited with code 1.
cannot open input file '..\..\lib\Release\opencv_core4110.lib'
Custom build for 'C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\absdiff_mat.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\absdiff_scalar.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\add_mat.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\add_scalar.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\add_weighted.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\bitwise_mat.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\bitwise_scalar.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\cmp_mat.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\cmp_scalar.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\copy_make_border.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\countnonzero.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\div_mat.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\div_scalar.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\in_range.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\integral.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\lut.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\math.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\minmax.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\minmax_mat.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\minmaxloc.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\mul_mat.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\mul_scalar.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\mul_spectrums.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\norm.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\normalize.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\polar_cart.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\reduce.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\split_merge.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\sub_mat.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\sub_scalar.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\sum.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\threshold.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaarithm\src\cuda\transpose.cu' exited with code 1.
cannot open input file '..\..\lib\Release\opencv_core4110.lib'
cannot open input file '..\..\lib\Release\opencv_flann4110.lib'
cannot open input file '..\..\lib\Release\opencv_core4110.lib'
cannot open input file '..\..\lib\Release\opencv_imgproc4110.lib'
cannot open input file '..\..\lib\Release\opencv_imgproc4110.lib'
cannot open input file '..\..\lib\Release\opencv_imgproc4110.lib'
cannot open input file '..\..\lib\Release\opencv_imgproc4110.lib'
cannot open input file '..\..\lib\Release\opencv_imgproc4110.lib'
cannot open input file '..\..\lib\Release\opencv_imgproc4110.lib'
cannot open input file '..\..\lib\Release\opencv_imgproc4110.lib'
#error: -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
Custom build for 'C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\hfs\src\cuda\gslic_seg_engine_gpu.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\hfs\src\cuda\magnitude.cu' exited with code 1.
Custom build for 'C:\Development\OpenCV_4110_CUDA\CMakeFiles\7b2fa2480784866571314189210150e6\opencl_kernels_dnn.cpp.rule;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\dnn\src\cuda\activation_eltwise.cu;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\dnn\src\cuda\activations.cu;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\dnn\src\cuda\bias_activation.cu;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\dnn\src\cuda\bias_activation_eltwise.cu;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\dnn\src\cuda\bias_eltwise_activation.cu;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\dnn\src\cuda\concat.cu;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\dnn\src\cuda\crop_and_resize.cu;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\dnn\src\cuda\detection_output.cu;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\dnn\src\cuda\eltwise_activation.cu;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\dnn\src\cuda\eltwise_ops.cu;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\dnn\src\cuda\fill_copy.cu;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\dnn\src\cuda\fp_conversion.cu;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\dnn\src\cuda\grid_nms.cu;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\dnn\src\cuda\max_unpooling.cu;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\dnn\src\cuda\mvn.cu;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\dnn\src\cuda\normalize.cu;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\dnn\src\cuda\padding.cu;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\dnn\src\cuda\permute.cu;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\dnn\src\cuda\prior_box.cu;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\dnn\src\cuda\region.cu;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\dnn\src\cuda\resize.cu;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\dnn\src\cuda\roi_pooling.cu;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\dnn\src\cuda\scale_shift.cu;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\dnn\src\cuda\shortcut.cu;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\dnn\src\cuda\slice.cu' exited with code 1.
Custom build for 'C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudawarping\src\cuda\pyr_down.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudawarping\src\cuda\pyr_up.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudawarping\src\cuda\remap.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudawarping\src\cuda\resize.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudawarping\src\cuda\warp.cu' exited with code 1.
cannot open input file '..\..\lib\Release\opencv_dnn4110.lib'
cannot open input file '..\..\lib\Release\opencv_quality4110.lib'
#error: -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
Custom build for 'C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\column_filter.16sc1.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\column_filter.16sc3.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\column_filter.16sc4.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\column_filter.16uc1.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\column_filter.16uc3.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\column_filter.16uc4.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\column_filter.32fc1.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\column_filter.32fc3.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\column_filter.32fc4.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\column_filter.32sc1.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\column_filter.32sc3.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\column_filter.32sc4.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\column_filter.8uc1.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\column_filter.8uc3.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\column_filter.8uc4.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\filter2d.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\median_filter.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\row_filter.16sc1.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\row_filter.16sc3.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\row_filter.16sc4.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\row_filter.16uc1.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\row_filter.16uc3.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\row_filter.16uc4.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\row_filter.32fc1.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\row_filter.32fc3.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\row_filter.32fc4.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\row_filter.32sc1.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\row_filter.32sc3.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\row_filter.32sc4.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\row_filter.8uc1.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\row_filter.8uc3.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafilters\src\cuda\row_filter.8uc4.cu' exited with code 1.
cannot open input file '..\..\lib\Release\opencv_imgproc4110.lib'
#error: -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
Custom build for 'C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaimgproc\src\cuda\bilateral_filter.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaimgproc\src\cuda\blend.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaimgproc\src\cuda\build_point_list.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaimgproc\src\cuda\canny.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaimgproc\src\cuda\clahe.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaimgproc\src\cuda\color.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaimgproc\src\cuda\connectedcomponents.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaimgproc\src\cuda\corners.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaimgproc\src\cuda\debayer.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaimgproc\src\cuda\generalized_hough.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaimgproc\src\cuda\gftt.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaimgproc\src\cuda\hist.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaimgproc\src\cuda\hough_circles.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaimgproc\src\cuda\hough_lines.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaimgproc\src\cuda\hough_segments.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaimgproc\src\cuda\match_template.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaimgproc\src\cuda\mean_shift.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaimgproc\src\cuda\moments.cu' exited with code 1.
cannot open input file '..\..\lib\Release\opencv_flann4110.lib'
cannot open input file '..\..\lib\Release\opencv_imgcodecs4110.lib'
cannot open input file '..\..\lib\Release\opencv_features2d4110.lib'
cannot open input file '..\..\lib\Release\opencv_features2d4110.lib'
cannot open input file '..\..\lib\Release\opencv_ml4110.lib'
cannot open input file '..\..\lib\Release\opencv_videoio4110.lib'
#error: -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
Custom build for 'C:\Development\OpenCV_4110_CUDA\CMakeFiles\7a0fcf5a5679990350a074ebc02bf9da\opencl_kernels_photo.cpp.rule;C:\OpenCV\OpenCV_4110\opencv-4.11.0\modules\photo\src\cuda\nlm.cu' exited with code 1.
cannot open input file '..\..\lib\Release\opencv_highgui4110.lib'
cannot open input file '..\..\lib\Release\opencv_highgui4110.lib'
cannot open input file '..\..\lib\Release\opencv_dnn4110.lib'
cannot open input file '..\..\lib\Release\opencv_imgcodecs4110.lib'
cannot open input file '..\..\lib\Release\opencv_photo4110.lib'
Custom build for 'C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafeatures2d\src\cuda\bf_knnmatch.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafeatures2d\src\cuda\bf_match.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafeatures2d\src\cuda\bf_radius_match.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafeatures2d\src\cuda\fast.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudafeatures2d\src\cuda\orb.cu' exited with code 1.
Custom build for 'C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudacodec\src\cuda\ColorSpace.cu' exited with code 1.
cannot open input file '..\..\lib\Release\opencv_highgui4110.lib'
cannot open input file '..\..\lib\Release\opencv_saliency4110.lib'
cannot open input file '..\..\lib\Release\opencv_reg4110.lib'
cannot open input file '..\..\lib\Release\opencv_xphoto4110.lib'
cannot open input file '..\..\lib\Release\opencv_text4110.lib'
cannot open input file '..\..\lib\Release\opencv_signal4110.lib'
cannot open input file '..\..\lib\Release\opencv_ml4110.lib'
cannot open input file '..\..\lib\Release\opencv_phase_unwrapping4110.lib'
cannot open input file '..\..\lib\Release\opencv_quality4110.lib'
cannot open input file '..\..\lib\Release\opencv_intensity_transform4110.lib'
cannot open input file '..\..\lib\Release\opencv_line_descriptor4110.lib'
cannot open input file '..\..\lib\Release\opencv_features2d4110.lib'
cannot open input file '..\..\lib\Release\opencv_bioinspired4110.lib'
cannot open input file '..\..\lib\Release\opencv_photo4110.lib'
cannot open input file '..\..\lib\Release\opencv_highgui4110.lib'
cannot open input file '..\..\lib\Release\opencv_highgui4110.lib'
cannot open input file '..\..\lib\Release\opencv_bioinspired4110.lib'
cannot open input file '..\..\lib\Release\opencv_img_hash4110.lib'
cannot open input file '..\..\lib\Release\opencv_flann4110.lib'
cannot open input file '..\..\lib\Release\opencv_features2d4110.lib'
cannot open input file '..\..\lib\Release\opencv_dnn_superres4110.lib'
cannot open input file '..\..\lib\Release\opencv_phase_unwrapping4110.lib'
cannot open input file '..\..\lib\Release\opencv_calib3d4110.lib'
overflow in constant arithmetic
cannot open input file '..\..\lib\Release\opencv_cudawarping4110.lib'
overflow in constant arithmetic
overflow in constant arithmetic
overflow in constant arithmetic
cannot open input file '..\..\lib\Release\opencv_dnn4110.lib'
cannot open input file '..\..\lib\Release\opencv_calib3d4110.lib'
cannot open input file '..\..\lib\Release\opencv_dnn4110.lib'
cannot open input file '..\..\lib\Release\opencv_calib3d4110.lib'
cannot open input file '..\..\lib\Release\opencv_dnn4110.lib'
cannot open input file '..\..\lib\Release\opencv_shape4110.lib'
cannot open input file '..\..\lib\Release\opencv_structured_light4110.lib'
cannot open input file '..\..\lib\Release\opencv_calib3d4110.lib'
cannot open input file '..\..\lib\Release\opencv_cudaimgproc4110.lib'
cannot open input file '..\..\lib\Release\opencv_mcc4110.lib'
cannot open input file '..\..\lib\Release\opencv_highgui4110.lib'
cannot open input file '..\..\lib\Release\opencv_imgcodecs4110.lib'
cannot open input file '..\..\lib\Release\opencv_objdetect4110.lib'
cannot open input file '..\..\lib\Release\opencv_objdetect4110.lib'
cannot open input file '..\..\lib\Release\opencv_objdetect4110.lib'
cannot open input file '..\..\lib\Release\opencv_rgbd4110.lib'
Custom build for 'C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudev\test\test_arithm_func.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudev\test\test_arithm_op.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudev\test\test_bitwize_op.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudev\test\test_cmp_op.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudev\test\test_color_cvt.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudev\test\test_cvt.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudev\test\test_deriv.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudev\test\test_integral.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudev\test\test_lut.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudev\test\test_nd.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudev\test\test_pyramids.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudev\test\test_reduction.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudev\test\test_scan.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudev\test\test_split_merge.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudev\test\test_warp.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudev\test\transpose.cu' exited with code 1.
cannot open input file '..\..\lib\Release\opencv_photo4110.lib'
Custom build for 'C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudastereo\src\cuda\disparity_bilateral_filter.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudastereo\src\cuda\stereobm.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudastereo\src\cuda\stereobp.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudastereo\src\cuda\stereocsbp.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudastereo\src\cuda\stereosgm.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudastereo\src\cuda\util.cu' exited with code 1.
cannot open input file '..\..\lib\Release\opencv_highgui4110.lib'
cannot open input file '..\..\..\..\lib\Release\opencv_highgui4110.lib'
cannot open input file '..\..\lib\Release\opencv_dnn4110.lib'
overflow in constant arithmetic
cannot open input file '..\..\lib\Release\opencv_objdetect4110.lib'
cannot open input file '..\..\lib\Release\opencv_highgui4110.lib'
cannot open input file '..\..\lib\Release\opencv_rgbd4110.lib'
cannot open input file '..\..\lib\Release\opencv_wechat_qrcode4110.lib'
cannot open input file '..\..\lib\Release\opencv_wechat_qrcode4110.lib'
cannot open input file '..\..\lib\Release\opencv_calib3d4110.lib'
cannot open input file '..\..\lib\Release\opencv_mcc4110.lib'
cannot open input file '..\..\lib\Release\opencv_face4110.lib'
cannot open input file '..\..\lib\Release\opencv_fuzzy4110.lib'
cannot open input file '..\..\lib\Release\opencv_cudastereo4110.lib'
cannot open input file '..\..\lib\Release\opencv_cudastereo4110.lib'
#error: -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
cannot open input file '..\..\lib\Release\opencv_cudafilters4110.lib'
Custom build for 'C:\Development\OpenCV_4110_CUDA\CMakeFiles\2a82a4f85b34da4b447203c647066eee\opencl_kernels_xfeatures2d.cpp.rule;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\xfeatures2d\src\cuda\surf.cu' exited with code 1.
cannot open input file '..\..\lib\Release\opencv_calib3d4110.lib'
cannot open input file '..\..\lib\Release\opencv_rapid4110.lib'
cannot open input file '..\..\lib\Release\opencv_imgcodecs4110.lib'
cannot open input file '..\..\lib\Release\opencv_video4110.lib'
cannot open input file '..\..\lib\Release\opencv_cudacodec4110.lib'
cannot open input file '..\..\lib\Release\opencv_video4110.lib'
cannot open input file '..\..\lib\Release\opencv_cudafeatures2d4110.lib'
cannot open input file '..\..\lib\Release\opencv_xfeatures2d4110.lib'
cannot open input file '..\..\lib\Release\opencv_xphoto4110.lib'
cannot open input file '..\..\lib\Release\opencv_highgui4110.lib'
cannot open input file '..\..\lib\Release\opencv_xfeatures2d4110.lib'
cannot open input file '..\..\lib\Release\opencv_bgsegm4110.lib'
cannot open input file '..\..\lib\Release\opencv_ximgproc4110.lib'
cannot open input file '..\..\lib\Release\opencv_video4110.lib'
cannot open input file '..\..\lib\Release\opencv_ximgproc4110.lib'
cannot open input file '..\..\lib\Release\opencv_highgui4110.lib'
cannot open input file '..\..\lib\Release\opencv_signal4110.lib'
cannot open input file '..\..\lib\Release\opencv_cudaarithm4110.lib'
cannot open input file '..\..\lib\Release\opencv_reg4110.lib'
cannot open input file '..\..\lib\Release\opencv_line_descriptor4110.lib'
cannot open input file '..\..\lib\Release\opencv_ximgproc4110.lib'
cannot open input file '..\..\lib\Release\opencv_photo4110.lib'
cannot open input file '..\..\lib\Release\opencv_highgui4110.lib'
cannot open input file '..\..\lib\Release\opencv_dnn_superres4110.lib'
cannot open input file '..\..\lib\Release\opencv_dnn4110.lib'
cannot open input file '..\..\lib\Release\opencv_cudaimgproc4110.lib'
cannot open input file '..\..\lib\Release\opencv_cudawarping4110.lib'
cannot open input file '..\..\lib\Release\opencv_features2d4110.lib'
cannot open input file '..\..\lib\Release\opencv_optflow4110.lib'
cannot open input file '..\..\lib\Release\opencv_cudacodec4110.lib'
cannot open input file '..\..\lib\Release\opencv_optflow4110.lib'
cannot open input file '..\..\lib\Release\opencv_cudafeatures2d4110.lib'
cannot open input file '..\..\lib\Release\opencv_cudafilters4110.lib'
Custom build for 'C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudalegacy\src\cuda\NCV.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudalegacy\src\cuda\NCVBroxOpticalFlow.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudalegacy\src\cuda\NCVHaarObjectDetection.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudalegacy\src\cuda\NCVPyramid.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudalegacy\src\cuda\NPP_staging.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudalegacy\src\cuda\bm.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudalegacy\src\cuda\bm_fast.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudalegacy\src\cuda\calib3d.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudalegacy\src\cuda\ccomponetns.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudalegacy\src\cuda\fgd.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudalegacy\src\cuda\gmg.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudalegacy\src\cuda\needle_map.cu' exited with code 1.
cannot open input file '..\..\lib\Release\opencv_cudabgsegm4110.lib'
cannot open input file '..\..\lib\Release\opencv_cudaarithm4110.lib'
cannot open input file '..\..\lib\Release\opencv_cudalegacy4110.lib'
cannot open input file '..\..\lib\Release\opencv_cudalegacy4110.lib'
cannot open input file '..\..\lib\Release\opencv_plot4110.lib'
cannot open input file '..\..\lib\Release\opencv_highgui4110.lib'
overflow in constant arithmetic
overflow in constant arithmetic
overflow in constant arithmetic
overflow in constant arithmetic
overflow in constant arithmetic
overflow in constant arithmetic
overflow in constant arithmetic
overflow in constant arithmetic
overflow in constant arithmetic
overflow in constant arithmetic
overflow in constant arithmetic
overflow in constant arithmetic
overflow in constant arithmetic
overflow in constant arithmetic
overflow in constant arithmetic
cannot open input file '..\..\lib\Release\opencv_highgui4110.lib'
cannot open input file '..\..\lib\Release\opencv_video4110.lib'
cannot open input file '..\..\lib\Release\opencv_tracking4110.lib'
cannot open input file '..\..\lib\Release\opencv_tracking4110.lib'
overflow in constant arithmetic
overflow in constant arithmetic
overflow in constant arithmetic
overflow in constant arithmetic
overflow in constant arithmetic
cannot open input file '..\..\lib\Release\opencv_tracking4110.lib'
cannot open input file '..\..\lib\Release\opencv_stereo4110.lib'
cannot open input file '..\..\lib\Release\opencv_stereo4110.lib'
cannot open input file '..\..\..\lib\Release\opencv_dnn_superres4110.lib'
Custom build for 'C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaoptflow\src\cuda\farneback.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaoptflow\src\cuda\nvidiaOpticalFlow.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaoptflow\src\cuda\pyrlk.cu;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\cudaoptflow\src\cuda\tvl1flow.cu' exited with code 1.
cannot open input file '..\..\lib\Release\opencv_cudabgsegm4110.lib'
cannot open input file '..\..\lib\Release\opencv_gapi4110.lib'
cannot open input file '..\..\lib\Release\opencv_highgui4110.lib'
cannot open input file '..\..\lib\Release\opencv_stitching4110.lib'
cannot open input file '..\..\lib\Release\opencv_cudaobjdetect4110.lib'
cannot open input file '..\..\lib\Release\opencv_gapi4110.lib'
cannot open input file '..\..\lib\Release\opencv_cudaobjdetect4110.lib'
cannot open input file '..\..\lib\Release\opencv_stitching4110.lib'
Custom build for 'C:\Development\OpenCV_4110_CUDA\CMakeFiles\52168f91433007153cb329af288b3756\opencl_kernels_superres.cpp.rule;C:\OpenCV\OpenCV_4110\opencv_contrib-4.11.0\modules\superres\src\cuda\btv_l1_gpu.cu' exited with code 1.
cannot open input file '..\..\lib\Release\opencv_superres4110.lib'
cannot open input file '..\..\lib\Release\opencv_videostab4110.lib'
cannot open input file '..\..\lib\Release\opencv_superres4110.lib'
cannot open input file '..\..\lib\Release\opencv_cudaoptflow4110.lib'