n file included from /tmp/tensorrt_inference/nanodet/../includes/common/common.hpp:9:0, from /tmp/tensorrt_inference/nanodet/nanodet.cpp:3: /tmp/tensorrt_inference/nanodet/../includes/common/logging.h:239:10: error: looser throw specifier for ‘virtual void Logger::log(nvinfer1::ILogger::Severity, const char*)’ void log(Severity severity, const char* msg) override ^~~ In file included from /usr/include/aarch64-linux-gnu/NvInferLegacyDims.h:53:0, from /usr/include/aarch64-linux-gnu/NvInfer.h:53, from /tmp/tensorrt_inference/nanodet/nanodet.h:5, from /tmp/tensorrt_inference/nanodet/nanodet.cpp:1: /usr/include/aarch64-linux-gnu/NvInferRuntimeCommon.h:1222:18: error: overriding ‘virtual void nvinfer1::ILogger::log(nvinfer1::ILogger::Severity, const AsciiChar*) noexcept’ virtual void log(Severity severity, AsciiChar const* msg) noexcept = 0; ^~~ In file included from /tmp/tensorrt_inference/nanodet/nanodet.cpp:3:0: /tmp/tensorrt_inference/nanodet/../includes/common/common.hpp: In function ‘bool readTrtFile(const string&, nvinfer1::ICudaEngine*&)’: /tmp/tensorrt_inference/nanodet/../includes/common/common.hpp:108:99: warning: ‘nvinfer1::ICudaEngine* nvinfer1::IRuntime::deserializeCudaEngine(const void*, std::size_t, nvinfer1::IPluginFactory*)’ is deprecated [-Wdeprecated-declarations] engine = trtRuntime->deserializeCudaEngine(cached_engine.data(), cached_engine.size(), nullptr); ^ In file included from /usr/include/aarch64-linux-gnu/NvInfer.h:54:0, from /tmp/tensorrt_inference/nanodet/nanodet.h:5, from /tmp/tensorrt_inference/nanodet/nanodet.cpp:1: /usr/include/aarch64-linux-gnu/NvInferRuntime.h:668:43: note: declared here TRT_DEPRECATED nvinfer1::ICudaEngine* deserializeCudaEngine( ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/tensorrt_inference/nanodet/nanodet.cpp:3:0: /tmp/tensorrt_inference/nanodet/../includes/common/common.hpp: In function ‘void onnxToTRTModel(const string&, const string&, nvinfer1::ICudaEngine*&, const int&)’: /tmp/tensorrt_inference/nanodet/../includes/common/common.hpp:136:62: warning: ‘nvinfer1::ICudaEngine* nvinfer1::IBuilder::buildEngineWithConfig(nvinfer1::INetworkDefinition&, nvinfer1::IBuilderConfig&)’ is deprecated [-Wdeprecated-declarations] engine = builder->buildEngineWithConfig(*network, *config); ^ In file included from /tmp/tensorrt_inference/nanodet/nanodet.h:5:0, from /tmp/tensorrt_inference/nanodet/nanodet.cpp:1: /usr/include/aarch64-linux-gnu/NvInfer.h:7990:43: note: declared here TRT_DEPRECATED nvinfer1::ICudaEngine* buildEngineWithConfig( ^~~~~~~~~~~~~~~~~~~~~ In file included from /tmp/tensorrt_inference/nanodet/nanodet.cpp:3:0: /tmp/tensorrt_inference/nanodet/../includes/common/common.hpp:140:21: warning: ‘virtual void nvonnxparser::IParser::destroy()’ is deprecated [-Wdeprecated-declarations] parser->destroy(); ^ In file included from /tmp/tensorrt_inference/nanodet/../includes/common/common.hpp:8:0, from /tmp/tensorrt_inference/nanodet/nanodet.cpp:3: /usr/include/aarch64-linux-gnu/NvOnnxParser.h:197:33: note: declared here TRT_DEPRECATED virtual void destroy() = 0; ^~~~~~~ In file included from /tmp/tensorrt_inference/nanodet/nanodet.cpp:3:0: /tmp/tensorrt_inference/nanodet/../includes/common/common.hpp:150:22: warning: ‘void nvinfer1::INetworkDefinition::destroy()’ is deprecated [-Wdeprecated-declarations] network->destroy(); ^ In file included from /tmp/tensorrt_inference/nanodet/nanodet.h:5:0, from /tmp/tensorrt_inference/nanodet/nanodet.cpp:1: /usr/include/aarch64-linux-gnu/NvInfer.h:5856:25: note: declared here TRT_DEPRECATED void destroy() noexcept ^~~~~~~ In file included from /tmp/tensorrt_inference/nanodet/nanodet.cpp:3:0: /tmp/tensorrt_inference/nanodet/../includes/common/common.hpp:151:22: warning: ‘void nvinfer1::IBuilder::destroy()’ is deprecated [-Wdeprecated-declarations] builder->destroy(); ^ In file included from /tmp/tensorrt_inference/nanodet/nanodet.h:5:0, from /tmp/tensorrt_inference/nanodet/nanodet.cpp:1: /usr/include/aarch64-linux-gnu/NvInfer.h:7929:25: note: declared here TRT_DEPRECATED void destroy() noexcept ^~~~~~~ /tmp/tensorrt_inference/nanodet/nanodet.cpp: In member function ‘bool nanodet::InferenceFolder(const string&)’: /tmp/tensorrt_inference/nanodet/nanodet.cpp:87:22: warning: ‘void nvinfer1::IExecutionContext::destroy()’ is deprecated [-Wdeprecated-declarations] context->destroy(); ^ In file included from /usr/include/aarch64-linux-gnu/NvInfer.h:54:0, from /tmp/tensorrt_inference/nanodet/nanodet.h:5, from /tmp/tensorrt_inference/nanodet/nanodet.cpp:1: /usr/include/aarch64-linux-gnu/NvInferRuntime.h:1888:25: note: declared here TRT_DEPRECATED void destroy() noexcept ^~~~~~~ /tmp/tensorrt_inference/nanodet/nanodet.cpp:88:21: warning: ‘void nvinfer1::ICudaEngine::destroy()’ is deprecated [-Wdeprecated-declarations] engine->destroy(); ^ In file included from /usr/include/aarch64-linux-gnu/NvInfer.h:54:0, from /tmp/tensorrt_inference/nanodet/nanodet.h:5, from /tmp/tensorrt_inference/nanodet/nanodet.cpp:1: /usr/include/aarch64-linux-gnu/NvInferRuntime.h:1434:25: note: declared here TRT_DEPRECATED void destroy() noexcept ^~~~~~~ CMakeFiles/nanodet_trt.dir/build.make:86: recipe for target 'CMakeFiles/nanodet_trt.dir/nanodet.cpp.o' failed make[2]: *** [CMakeFiles/nanodet_trt.dir/nanodet.cpp.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/nanodet_trt.dir/all' failed make[1]: *** [CMakeFiles/nanodet_trt.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2