ubuntu16.04下CUDA9.1+OPENCV3.1安裝記錄
之前總是分開裝CUDA和nvidia驅動,時常導致各種bug,於是這次一怒之下使用cuda官網的deb方式安裝,同時裝好cuda和nvidia驅動,但是cuda裝的卻是最新版本9.1,還沒裝opencv之前就想到一定會出現各種bug……
一開始選擇的是opencv2.4.13,結果cmake報錯:
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_nppi_LIBRARY (ADVANCED)
linked by target "opencv_cudev" in directory D:/Cproject/opencv/opencv/sources/modules/cudev
linked by target "opencv_cudev" in directory D:/Cproject/opencv/opencv/sources/modules/cudev
linked by target "opencv_test_cudev" in directory D:/Cproject/opencv/opencv/sources/modules/cudev/test
linked by target "opencv_core" in directory D:/Cproject/opencv/opencv/sources/modules/core
linked by target "opencv_core" in directory D:/Cproject/opencv/opencv/sources/modules/core
linked by target "opencv_test_core" in directory D:/Cproject/opencv/opencv/sources/modules/core
linked by target "opencv_perf_core" in directory D:/Cproject/opencv/opencv/sources/modules/core
linked by target "opencv_test_cudaarithm" in directory D:/Cproject/opencv/opencv/sources/modules/cudaarithm
linked by target "opencv_cudaarithm" in directory D:/Cproject/opencv/opencv/sources/modules/cudaarithm
linked by target "opencv_cudaarithm" in directory D:/Cproject/opencv/opencv/sources/modules/cudaarithm
linked by target "opencv_perf_cudaarithm" in directory D:/Cproject/opencv/opencv/sources/modules/cudaarithm
linked by target "opencv_flann" in directory D:/Cproject/opencv/opencv/sources/modules/flann
linked by target "opencv_flann" in directory D:/Cproject/opencv/opencv/sources/modules/flann
……
按http://blog.csdn.net/u014613745/article/details/78310916 的解決方法確實可以解決這個cmake的問題。
然而!
make的時候卻一直碰到no rule to target “……libnppist.so”的問題,嘗試了一晚都解決不了。
於是最後改裝opcv3.1……但仍然bug不斷,好在最好都解決了……
1.cmake報錯:(跟opencv2.4.13的一樣)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_nppi_LIBRARY (ADVANCED)
……
解決方法:
http://blog.csdn.net/u014613745/article/details/78310916
但要注意的是,改完之後,camke輸入要加上 -D CUDA_GENERATION=Kepler ,
否則會報CMake Error at cuda_compile_generated_matrix_operations.cu.o.cmake:206 (message):
Error generating 的錯誤
2.make報錯:
*** [modules/cudalegacy/CMakeFiles/opencv_cudalegacy.dir/src/graphcuts.cpp.o] Error 1
make[1]: *** [modules/cudalegacy/CMakeFiles/opencv_cudalegacy.dir/all] Error 2
make: *** [all] Error 2
解決方法:
http://www.jianshu.com/p/68ac83436a1b
相關文章
- Ubuntu16.04下安裝破解secureCRT和secureFX的操作記錄UbuntuSecurecrt
- Ubuntu16.04下安裝QQ的完整操作記錄(經驗證可用)Ubuntu
- ubuntu16.04 下安裝mysqlUbuntuMySql
- ubuntu16.04 下kvm安裝Ubuntu
- ubuntu16.04安裝python3.6.7遇到的坑記錄UbuntuPython
- UBuntu16.04下安裝Docker(親測)UbuntuDocker
- Ubuntu16.04下安裝gtsam-3.2.1Ubuntu
- ubuntu16.04下安裝NS3.27UbuntuS3
- ubuntu16.04系統下安裝dockerUbuntuDocker
- ubuntu16.04下的MySQL離線安裝UbuntuMySql
- 記錄:linux下安裝mysql5LinuxMySql
- 記錄一下docker desktop windows安裝,容器安裝等DockerWindows
- ubuntu16.04安裝rosUbuntuROS
- Docker安裝記錄Docker
- lepus安裝記錄
- HandlerSocket安裝記錄
- Mantis安裝記錄
- VMware下安裝centos7--詳細記錄CentOS
- 安裝kalibr Ubuntu16.04Ubuntu
- Ubuntu16.04安裝、使用typoraUbuntu
- ubuntu16.04 CUDA, CUDNN 安裝UbuntuDNN
- 記錄 Ubuntu 安裝 homestaedUbuntu
- Redis On Windows安裝記錄RedisWindows
- Macbook安裝Cplex記錄Mac
- 安裝seafile記錄文件
- Centos 安裝Mysql記錄CentOSMySql
- Ubuntu安裝使用記錄Ubuntu
- Centos下安裝破解Jira7的操作記錄CentOS
- Linux下安裝tomcat+jdk+mysql記錄LinuxTomcatJDKMySql
- 重新記錄一下ArcGisEngine安裝的過程
- Ubuntu16.04雙系統安裝及解除安裝Ubuntu
- centos7下安裝php+memcached簡單記錄CentOSPHP
- CentOS7下安裝Docker-Compose操作記錄CentOSDocker
- Centos6.9下安裝並使用VNC的操作記錄CentOSVNC
- linux下sendmail郵件系統安裝操作記錄LinuxAI
- Pycharm 個人安裝小記錄PyCharm
- Jenkins 安裝簡記錄Jenkins
- 安裝apache+php記錄ApachePHP