DanaHan / Yolov5-in-Deepstream-5.0

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

在Yolov5-in-Deepstream-5.0-master/Deepstream 5.0/nvdsinfer_custom_impl_Yolo中执行make编译报错 #37

Open Gray-web opened 11 months ago

Gray-web commented 11 months ago

Yolov5-in-Deepstream-5.0-master/Deepstream 5.0/nvdsinfer_custom_impl_Yolo$ make g++ -c -o yolo.o -Wall -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations -I../includes -I/usr/local/cuda-11.3/include yolo.cpp In file included from yolo.cpp:24:0: yoloPlugins.h:28:10: fatal error: cuda_runtime_api.h: No such file or directory

include

^~~~~~~~ compilation terminated. Makefile:50: recipe for target 'yolo.o' failed make: *** [yolo.o] Error 1

Rehan-DL commented 9 months ago

注释掉Makefile文件中的yolo.cpp和yoloPlugins.cpp,然后重新编译。