DanaHan / Yolov5-in-Deepstream-5.0

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

Error while make #15

Closed PareshKamble closed 3 years ago

PareshKamble commented 3 years ago

Dear @DanaHan When I am trying to do make in Step 1b, I am getting the following error.

paresh@paresh:~/DeepStream/tensorrtx/yolov5/build$ make
[ 25%] Building NVCC (Device) object CMakeFiles/myplugins.dir/myplugins_generated_yololayer.cu.o
/home/DeepStream/tensorrtx/yolov5/yololayer.h(85): warning: function "nvinfer1::IPluginV2Ext::configurePlugin(const nvinfer1::Dims *, int, const nvinfer1::Dims *, int, const nvinfer1::DataType *, const nvinfer1::DataType *, const __nv_bool *, const __nv_bool *, nvinfer1::PluginFormat, int)" is hidden by "nvinfer1::YoloLayerPlugin::configurePlugin" -- virtual function override intended?

/home/DeepStream/tensorrtx/yolov5/yololayer.cu(9): error: no instance of overloaded function "nvinfer1::YoloLayerPlugin::YoloLayerPlugin" matches the specified type
/home/DeepStream/tensorrtx/yolov5/yololayer.cu(13): error: identifier "yolo1" is undefined
/home/DeepStream/tensorrtx/yolov5/yololayer.cu(14): error: identifier "yolo2" is undefined
/home/DeepStream/tensorrtx/yolov5/yololayer.cu(15): error: identifier "yolo3" is undefined
/home/DeepStream/tensorrtx/yolov5/yololayer.cu(149): error: no instance of constructor "nvinfer1::YoloLayerPlugin::YoloLayerPlugin" matches the argument list
/home/DeepStream/tensorrtx/yolov5/yololayer.cu(256): error: no instance of constructor "nvinfer1::YoloLayerPlugin::YoloLayerPlugin" matches the argument list

6 errors detected in the compilation of "/tmp/tmpxft_00003850_00000000-6_yololayer.cpp1.ii".
CMake Error at myplugins_generated_yololayer.cu.o.Debug.cmake:279 (message):
  Error generating file
  /home/DeepStream/tensorrtx/yolov5/build/CMakeFiles/myplugins.dir//./myplugins_generated_yololayer.cu.o

CMakeFiles/myplugins.dir/build.make:334: recipe for target 'CMakeFiles/myplugins.dir/myplugins_generated_yololayer.cu.o' failed
make[2]: *** [CMakeFiles/myplugins.dir/myplugins_generated_yololayer.cu.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/myplugins.dir/all' failed

Can you please help me find a solution for the same? Thanking you in anticipation!

PareshKamble commented 3 years ago

Using the latest commit solves the issue.