Yolov5-in-Deepstream-5.0编译失败

最近在nano上想要部署yolov5,按着教程总是编译失败,求各位帮助一下。
错误提示如下:
In file included from nvdsinfer_yolo_engine.cpp:23:0:
../includes/nvdsinfer_custom_impl.h:375:19: error: ‘IPluginFactory’ in namespace ‘nvcaffeparser1’ does not name a type
nvcaffeparser1::IPluginFactory *pluginFactory;

../includes/nvdsinfer_custom_impl.h:376:19: error: ‘IPluginFactoryExt’ in namespace ‘nvcaffeparser1’ does not name a type
nvcaffeparser1::IPluginFactoryExt *pluginFactoryExt;

../includes/nvdsinfer_custom_impl.h:386:16: error: ‘IPluginFactory’ in namespace ‘nvuffparser’ does not name a type
nvuffparser::IPluginFactory *pluginFactory;

../includes/nvdsinfer_custom_impl.h:387:16: error: ‘IPluginFactoryExt’ in namespace ‘nvuffparser’ does not name a type
nvuffparser::IPluginFactoryExt *pluginFactoryExt;

Makefile:50: recipe for target 'nvdsinfer_yolo_engine.o' failed
make: *** [nvdsinfer_yolo_engine.o] Error 1

IPluginFactory in namespace ‘nvcaffeparser1’ does not name a type,查看一下有没有IPluginFactory类或数据结构