prabindh / darknet

Convolutional Neural Networks
http://pjreddie.com/darknet/
Other
122 stars 46 forks source link

when compile arapaho folder, there is the error about opencv,how to fix? #50

Closed DanLiu0623 closed 6 years ago

DanLiu0623 commented 7 years ago

/usr/bin/ld: cannot find -lopencv_cudabgsegm /usr/bin/ld: cannot find -lopencv_cudaobjdetect /usr/bin/ld: cannot find -lopencv_cudastereo /usr/bin/ld: cannot find -lopencv_shape /usr/bin/ld: cannot find -lopencv_cudafeatures2d /usr/bin/ld: cannot find -lopencv_cudacodec /usr/bin/ld: cannot find -lopencv_cudaoptflow /usr/bin/ld: cannot find -lopencv_cudalegacy /usr/bin/ld: cannot find -lopencv_videoio /usr/bin/ld: cannot find -lopencv_imgcodecs /usr/bin/ld: cannot find -lopencv_cudawarping /usr/bin/ld: cannot find -lopencv_cudaimgproc /usr/bin/ld: cannot find -lopencv_cudafilters /usr/bin/ld: cannot find -lopencv_cudaarithm /usr/bin/ld: cannot find -lopencv_viz /usr/bin/ld: cannot find -lopencv_cudev collect2: error: ld returned 1 exit status make: *** [arapaho] Error 1

prabindh commented 7 years ago

Please install OpenCV on your machine. For example you can use OpenCV 3.1. Usually it gets installed under /usr/local/lib

DanLiu0623 commented 7 years ago

@prabindh I had install opencv by command: sudo apt-get install libopencv-dev, and the opencv version is 2.4.9. Should I must install opencv3.1?

prabindh commented 7 years ago

It appears the CV version you have does not support CUDA, hence most of the errors. You would need to install CV with CUDA support. For example, https://github.com/NervanaSystems/neon/issues/265

DanLiu0623 commented 7 years ago

I have install cv with CUDA support,but another error occurs. It seems cv's issue. When I make arapaho in arapaho folder,the log is log.txt.

prabindh commented 7 years ago

Please ensure the compilers used to build CV and darknet are compatible, and it is OpenCV 3.x.