0

Trying to build OpenCV 2.4.10 with CUDA (6.5) on VS 2013, but it keeps throwing errors like these:

OpenCV build fail

I've followed OpenCV's instructions, and tried this slightly outdated post with no luck. I understand that the "std has no member max/min" is most likely caused by a missing #include <alrotighm>, but there has to be something I didn't do correctly since this is the out-of-the-box OpenCV source.

Also - When I build without the GPU module, everything works fine. (Something wonky with CUDA toolkit..?)

It seems this SO question 2 years ago had the same problem, but I can't reinstall the OS. The best I could try was moving all source files to another drive and give all the write/read permissions to everybody. Still the same errors. Please help, thanks!

Community
  • 1
  • 1
fy_iceworld
  • 656
  • 2
  • 10
  • 20
  • ***but there has to be something I didn't do correctly since this is the out-of-the-box OpenCV source.*** My guess is that the developers probably are not using Visual Studio 2013 with cuda enabled. Older versions of Visual Studio and gcc did not need this include. – drescherjm Dec 22 '14 at 00:45
  • ***It seems this SO question 2 years ago had the same problem,*** To me this is a different issue. – drescherjm Dec 22 '14 at 00:49
  • Open the file `NCV.cu` in the directory `/modules/gpu/src/nvidia/core` of opencv source code. `#include` at the top of this source file. Recompile opencv. – sgarizvi Dec 22 '14 at 06:10
  • Well apparently that was it, thanks guys! – fy_iceworld Dec 22 '14 at 19:04

0 Answers0