Ask Your Question
0

opencv cannot install cuda?

asked 2018-11-20 03:47:44 -0500

G7 gravatar image

updated 2018-11-20 03:52:15 -0500

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 ...

(more)
edit retag flag offensive close merge delete

Comments

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)

berak gravatar imageberak ( 2018-11-20 03:57:52 -0500 )edit

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

G7 gravatar imageG7 ( 2018-11-21 06:13:11 -0500 )edit

warnings are not errors. if you get any , you have to tell us

berak gravatar imageberak ( 2018-11-21 06:23:34 -0500 )edit

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!

G7 gravatar imageG7 ( 2018-11-21 08:49:12 -0500 )edit

indeed, compiling with CUDA might take half a day ;(

berak gravatar imageberak ( 2018-11-21 09:03:59 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-11-21 10:14:52 -0500

G7 gravatar image

updated 2018-11-21 17:55:00 -0500

It's working now. Thx to "break"

the cuda modules have been moved to opencv_contrib with opencv4.0 .

Install opencv with it by following the the tutorial in README.md

edit flag offensive delete link more

Comments

no, you do the answer ;)

berak gravatar imageberak ( 2018-11-21 10:20:02 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-11-20 03:47:44 -0500

Seen: 55 times

Last updated: Nov 21