0
我試圖安裝opencv與cuda = on在Ubuntu 12.04上。我用cmake Opencv做了所有我想要的設置,沒有任何問題,我的Cuda工具箱運行平穩。但是,當我來到Opencv機器的步驟已經給出了錯誤。儘管make我有錯誤Opencv構建錯誤
Linking CXX executable ../../bin/opencv_perf_core
我guake終端視圖低於
[email protected]:~/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
[email protected]:~/Source/OpenCV-2.4.2/release$
我卡在這裏,我不能把它關閉你有什麼建議嗎?
有你檢查了[這個問題](http://stackoverflow.com/questions/10402245/problems-linking-to-libcuda-so)? – remi
我查過了。爲什麼你認爲你鏈接的問題與我的相關。 –
,因爲您的錯誤是對cuda庫的未定義引用。 make VERBOSE = 1的輸出是什麼?使用pastebin或ideone.com並放置鏈接 – remi