I installed cuda first using cuda-repo-ubuntu1604-9-0-local_9.0.176-1_amd64.deb
. Now I\'m trying to install OpenCV 3.3.0
But i\'m getting CMake Err
Tried the way api555 said, but when cmake, it also build sm20, I did a little more, two ways:
1.in file OpenCVDetectCUDA.cmake, line 133, in the "foreach(ARCH IN LISTS ARCH_LIST)
" loop,add
"elseif(ARCH MATCHES "20")
"
between if and else.
2.in file OpenCVDetectCUDA.cmake, line 46,
"set(_generations "Fermi" "kepler" "Maxwell" "Pascal")
"
just delete the "Fermi"
I prefer the second way, may it do a little help.