opencv cannot install cuda?
Hi, I am using opencv4.0 and cuda toolkit 10.0. debug version, x64 in visual studio 15 2017 professional; I installed the cuda to opencv using CMake and checking the WITH_CUDA, WITH_CUBLAS, BUILD_World, etc. that I learn from the tutorial(But not TBB); I installed it with no bug in CMake. However during the install in visual studio, there is a bug.
ERROR:class "cv::Formatter" has no member "FormatType" opencv_world C:\openCV_real\opencv\build_GPU\opencv2\core\operations.hpp 412
But when I use cuda::getCudaEnabledDeviceCount()
,it still return 0;
how can I know if I installed opencv with cuda correctly? Can anyone send me the prebuilt opencv(withcuda) to me for figuring out the problems.
Here's mine properties in my project
Include:
C:\openCV_real\opencv\build_GPU\install\include;
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include;
%(AdditionalIncludeDirectories)
Linker lib:
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\lib\x64;
C:\openCV_real\opencv\build_GPU\install\x64\vc15\lib;
%(AdditionalLibraryDirectories)
Linker input:
cudart.lib;opencv_world400d.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)
and there are the output:
Gputest2.exe' (Win32): 'C:\Users\user\source\repos\gputest2\x64\Debug\gputest2.exe' has been loaded. The symbol has been loaded. Gputest2.exe' (Win32): 'C:\Windows\System32\ntdll.dll' has been loaded. The symbol has been loaded. Gputest2.exe' (Win32): 'C:\Windows\System32\kernel32.dll' has been loaded. The symbol has been loaded. Gputest2.exe' (Win32): 'C:\Windows\System32\KernelBase.dll' has been loaded. The PDB file could not be found or could not be opened. Gputest2.exe' (Win32): 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\cudart64_100.dll' has been loaded. The built module has no symbols. Gputest2.exe' (Win32): 'C:\opencv\build\x64\vc14\bin\opencv_world400d.dll' has been loaded. The PDB file could not be found or could not be opened. Gputest2.exe' (Win32): 'C:\Windows\System32\gdi32.dll' has been loaded. The symbol has been loaded. Gputest2.exe' (Win32): 'C:\Windows\System32\gdi32full.dll' has been loaded. The symbol has been loaded. Gputest2.exe' (Win32): 'C:\Windows\System32\msvcp_win.dll' has been loaded. The symbol has been loaded. Gputest2.exe' (Win32): 'C:\Windows\System32\ucrtbase.dll' has been loaded. The symbol has been loaded. Gputest2.exe' (Win32): 'C:\Windows\System32\user32.dll' has been loaded. The symbol has been loaded. Gputest2.exe' (Win32): 'C:\Windows\System32\win32u.dll' has been loaded. The symbol has been loaded. Gputest2.exe' (Win32): 'C:\Windows\System32\ole32.dll' has been loaded. The PDB file could not be found or could not be opened. Gputest2.exe' (Win32): 'C:\Windows\System32\combase.dll' has been loaded. The PDB file could not be found or could not be opened. Gputest2.exe' (Win32): 'C:\Windows\System32\rpcrt4.dll' has been loaded. The PDB file could not be found or could not be opened. Gputest2.exe' (Win32): 'C:\Windows\System32 ...
the cuda modules have been moved to opencv_contrib with opencv4.0 , so try to dl that (follow instructions in the readme there) and maybe show us the cmake output then ?
(you'll also have to disable opencv_world)
Thx for your help! I've already tried what you told me to do. But when I build the INSTALL with visual studio some dll warning happened and stucked. It looping the warning and can't be built. I waited for 10 hours yesterday and it still don't work.
The problem is same as this
warnings are not errors. if you get any , you have to tell us
thank you! I found that I'm stupid. It is actually building in a very slow speed. I thought it's a bug. I think the install will be done in a few hours. I will tell you the result later!
indeed, compiling with CUDA might take half a day ;(