Ask Your Question

Revision history [back]

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)

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"

include "precomp.hpp"

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

(CUDA_DISABLER)

to this:

#include "precomp.hpp"

include "precomp.hpp"

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

8000)

because graphcuts is not supported directly with CUDA8 anymore.

source: link:https://github.com/Itseez/opencv/commit/10896129b39655e19e4e7c529153cb5c2191a1db

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:https://github.com/Itseez/opencv/commit/10896129b39655e19e4e7c529153cb5c2191a1dblink:githubchange

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.