DanaHan / Yolov5-in-Deepstream-5.0

Describe how to use yolov5 in Deepstream 5.0
209 stars 57 forks source link

opencv error during make #24

Open dmoham1476 opened 3 years ago

dmoham1476 commented 3 years ago

I see this error when I run make - I installed openCV using apt-get install libopencv-dev, cmake had no errors but make is failing

Scanning dependencies of target myplugins [ 40%] Linking CXX shared library libmyplugins.so [ 40%] Built target myplugins Scanning dependencies of target yolov5 [ 60%] Building CXX object CMakeFiles/yolov5.dir/calibrator.cpp.o /opt/nvidia/deepstream/tensorrtx/yolov5/calibrator.cpp:4:10: fatal error: opencv2/dnn/dnn.hpp: No such file or directory

include <opencv2/dnn/dnn.hpp>

      ^~~~~~~~~~~~~~~~~~~~~

compilation terminated. CMakeFiles/yolov5.dir/build.make:62: recipe for target 'CMakeFiles/yolov5.dir/calibrator.cpp.o' failed make[2]: [CMakeFiles/yolov5.dir/calibrator.cpp.o] Error 1 CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/yolov5.dir/all' failed make[1]: [CMakeFiles/yolov5.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

0xBYTESHIFT commented 3 years ago

Same here

EmberaThomas commented 3 years ago

same here. Did u solve?

CzakuGim commented 2 years ago

same