Ask Your Question

timsamart's profile - activity

2016-11-08 11:29:00 -0600 received badge  Nice Answer (source)
2016-10-21 12:59:03 -0600 received badge  Teacher (source)
2016-06-03 11:33:46 -0600 received badge  Editor (source)
2016-06-03 11:32:36 -0600 answered a question cudalegacy not compile -- nppiGraphcut missing

I had the same problem you are trying to compile with CUDA8:

try this: in graphcuts.cpp (where your error is thrown) change this:

#include "precomp.hpp"

#if !defined (HAVE_CUDA) || defined (CUDA_DISABLER)

to this:

#include "precomp.hpp"

#if !defined (HAVE_CUDA) || defined (CUDA_DISABLER)  || (CUDART_VERSION >= 8000)

because graphcuts is not supported directly with CUDA8 anymore.

source: link:githubchange

actually the latest commit to the master branch (https://github.com/Itseez/opencv.git) should have the error fixed but I did not test it yet I am currently compiling it the second time.