参考这篇https://blog.youkuaiyun.com/qq_36362060/article/details/80739573
我的环境显卡是1070
cuda9.0
lcurand -lcudnn -lstdc++ libdarknet.a
/usr/bin/ld: 找不到 -lcudnn
collect2: error: ld returned 1 exit status
/usr/bin/ld: 找不到 -lcudnn
collect2: error: ld returned 1 exit status
Makefile:80: recipe for target 'libdarknet.so' failed
make: *** [libdarknet.so] Error 1
make: *** 正在等待未完成的任务....
Makefile:74: recipe for target 'darknet' failed
make: *** [darknet] Error 1
解决方法,卸载cuda和cudnn重新装一遍+++++++
之后会有另一个错参照另一个文章的解决方法
sudo cp /usr/local/cuda-9.1/lib64/libcudart.so.9.1 /usr/local/lib/libcudart.so.9.1 && sudo ldconfig
sudo cp /usr/local/cuda-9.1/lib64/libcublas.so.9.1 /usr/local/lib/libcublas.so.9.1 && sudo ldconfig
sudo cp /usr/local/cuda-9.1/lib64/libcurand.so.9.1 /usr/local/lib/libcurand.so.9.1 && sudo ldconfig
---------------------
作者:剑圣开大跑
来源:优快云
原文:https://blog.youkuaiyun.com/hymanjack/article/details/80199987
版权声明:本文为博主原创文章,转载请附上博文链接!
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
https://blog.youkuaiyun.com/alec1987/article/details/9467981
注意opencv在GTK后安装否则还有错