Ask Your Question

Revision history [back]

Could you please explain how you compiled OpenCV with Cuda 10? I am trying to do the same with the same version of VS, CUDA and OpenCV and I get the error below. 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!

14>------ Build started: Project: opencv_world, Configuration: Release x64 ------ 14>Building NVCC (Device) object modules/world/CMakeFiles/cuda_compile.dir/__/core/src/cuda/Release/cuda_compile_generated_gpu_mat.cu.obj 14>nvcc fatal : Could not set up the environment for Microsoft Visual Studio using 'C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/../../../../../../../VC/Auxiliary/Build/vcvars64.bat' 14>CMake Error at cuda_compile_generated_gpu_mat.cu.obj.cmake:206 (message): 14> Error generating 14> D:/CUDA/opencv4/_VS/modules/world/CMakeFiles/cuda_compile.dir/__/core/src/cuda/Release/cuda_compile_generated_gpu_mat.cu.obj 14> 14> 14>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\Microsoft.CppCommon.targets(209,5): error MSB6006: "cmd.exe" exited with code 1. 14>Done building project "opencv_world.vcxproj" -- FAILED.