Unable to make libnvdsinfer_custom_impl_Yolo.so on Jetpack 4.6

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Jetson nano
• DeepStream Version 6.0
• JetPack Version (valid for Jetson only) 4.6
• TensorRT Version 8.0.1
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs) errors when making the libnvdsinfer_custom_impl_Yolo.so
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description) I’m trying to make the libnvdsinfer_custom_impl_Yolo.so to run the YOLOv3 model but i’m getting errors

g++ -c -o nvdsinfer_yolo_engine.o -Wall -std=c++11 -shared -fPIC -Wno-error=deprecated-declarations -I…/…/includes -I/usr/local/cuda-10.2/include nvdsinfer_yolo_engine.cpp
Makefile:51: recipe for target ‘nvdsinfer_yolo_engine.o’ failed

example of errors :
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;
^~~~~~~~~~~~~~~~~
In file included from nvdsinfer_yolo_engine.cpp:25:0:
yoloPlugins.h:55:17: error: looser throw specifier for ‘virtual const char* YoloLayerV3::getPluginType() const’
const char* getPluginType () const override { return YOLOV3LAYER_PLUGIN_NAME; }
^~~~~~~~~~~~~
In file included from /usr/include/aarch64-linux-gnu/NvInferLegacyDims.h:53:0,
from /usr/include/aarch64-linux-gnu/NvInfer.h:53,
from /usr/include/aarch64-linux-gnu/NvCaffeParser.h:53,
from …/…/includes/nvdsinfer_custom_impl.h:128,
from nvdsinfer_yolo_engine.cpp:23:
/usr/include/aarch64-linux-gnu/NvInferRuntimeCommon.h:431:30: error: overriding ‘virtual const AsciiChar* nvinfer1::IPluginV2::getPluginType() const noexcept’
virtual AsciiChar const* getPluginType() const noexcept = 0;
^~~~~~~~~~~~~
In file included from nvdsinfer_yolo_engine.cpp:25:0:
yoloPlugins.h:56:17: error: looser throw specifier for ‘virtual const char* YoloLayerV3::getPluginVersion() const’
const char* getPluginVersion () const override { return YOLOV3LAYER_PLUGIN_VERSION; }
^~~~~~~~~~~~~~~~
In file included from /usr/include/aarch64-linux-gnu/NvInferLegacyDims.h:53:0,
from /usr/include/aarch64-linux-gnu/NvInfer.h:53,
from /usr/include/aarch64-linux-gnu/NvCaffeParser.h:53,
from …/…/includes/nvdsinfer_custom_impl.h:128,
from nvdsinfer_yolo_engine.cpp:23:

Hi,

Deepstream currently doesn’t support JetPack 4.6 yet.
You will need to use JetPack 4.5.1 for compatibility.

Thanks.

1 Like

Thank you, certain apps still work though!