我试图在 ubuntu 12.04 上使用 cuda=on 设置 Opencv。我用我想要的所有设置做了 cmake Opencv,没有任何问题,我的 Cuda 工具包运行顺利。但是,当我来到 Opencv 机器的步骤时,出现了错误。虽然我得到了错误
Linking CXX executable ../../bin/opencv_perf_core
我的 guake 终端视图如下
brkn@brknPC:~/Source/OpenCV-2.4.2/release$ make
[ 4%] Built target opencv_core
[ 5%] Built target opencv_ts
[ 11%] Built target opencv_imgproc
[ 14%] Built target opencv_highgui
Linking CXX executable ../../bin/opencv_perf_core
../../lib/libopencv_core.so.2.4.2: error: undefined reference to 'cuDeviceGetAttribute'
collect2: ld returned 1 exit status
make[2]: *** [bin/opencv_perf_core] Error 1
make[1]: *** [modules/core/CMakeFiles/opencv_perf_core.dir/all] Error 2
make: *** [all] Error 2
brkn@brknPC:~/Source/OpenCV-2.4.2/release$
我卡在这里,我不能把它扔掉你有什么建议吗?