CMake Error: Variables are set to NOTFOUND

后端 未结 10 1615
隐瞒了意图╮
隐瞒了意图╮ 2020-11-28 05:22

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

10条回答
  •  失恋的感觉
    2020-11-28 06:12

    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.

提交回复
热议问题