In file included from /tensorrt_inference/Yolov4/../includes/common/common.hpp:9,
from /tensorrt_inference/Yolov4/Yolov4.cpp:3:
/tensorrt_inference/Yolov4/../includes/common/logging.h:239:10: error: looser throw specifier for 'virtual void Logger::log(nvinfer1::ILogger::Severity, const char*)'
239 | void log(Severity severity, const char* msg) override
| ^~~
In file included from /usr/include/x86_64-linux-gnu/NvInferLegacyDims.h:53,
from /usr/include/x86_64-linux-gnu/NvInfer.h:53,
from /tensorrt_inference/Yolov4/Yolov4.h:5,
from /tensorrt_inference/Yolov4/Yolov4.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntimeCommon.h:1222:18: note: overridden function is 'virtual void nvinfer1::ILogger::log(nvinfer1::ILogger::Severity, const AsciiChar*) noexcept'
1222 | virtual void log(Severity severity, AsciiChar const* msg) noexcept = 0;
| ^~~
In file included from /tensorrt_inference/Yolov4/Yolov4.cpp:3:
/tensorrt_inference/Yolov4/../includes/common/common.hpp: In function 'bool readTrtFile(const string&, nvinfer1::ICudaEngine*&)':
/tensorrt_inference/Yolov4/../includes/common/common.hpp:108:99: warning: 'nvinfer1::ICudaEngine* nvinfer1::IRuntime::deserializeCudaEngine(const void*, std::size_t, nvinfer1::IPluginFactory*)' is deprecated [-Wdeprecated-declarations]
108 | engine = trtRuntime->deserializeCudaEngine(cached_engine.data(), cached_engine.size(), nullptr);
| ^
In file included from /usr/include/x86_64-linux-gnu/NvInfer.h:54,
from /tensorrt_inference/Yolov4/Yolov4.h:5,
from /tensorrt_inference/Yolov4/Yolov4.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntime.h:668:43: note: declared here
668 | TRT_DEPRECATED nvinfer1::ICudaEngine* deserializeCudaEngine(
| ^~~~~~~~~~~~~~~~~~~~~
In file included from /tensorrt_inference/Yolov4/Yolov4.cpp:3:
/tensorrt_inference/Yolov4/../includes/common/common.hpp: In function 'void onnxToTRTModel(const string&, const string&, nvinfer1::ICudaEngine*&, const int&)':
/tensorrt_inference/Yolov4/../includes/common/common.hpp:136:62: warning: 'nvinfer1::ICudaEngine* nvinfer1::IBuilder::buildEngineWithConfig(nvinfer1::INetworkDefinition&, nvinfer1::IBuilderConfig&)' is deprecated [-Wdeprecated-declarations]
136 | engine = builder->buildEngineWithConfig(*network, *config);
| ^
In file included from /tensorrt_inference/Yolov4/Yolov4.h:5,
from /tensorrt_inference/Yolov4/Yolov4.cpp:1:
/usr/include/x86_64-linux-gnu/NvInfer.h:7990:43: note: declared here
7990 | TRT_DEPRECATED nvinfer1::ICudaEngine* buildEngineWithConfig(
| ^~~~~~~~~~~~~~~~~~~~~
In file included from /tensorrt_inference/Yolov4/Yolov4.cpp:3:
/tensorrt_inference/Yolov4/../includes/common/common.hpp:140:21: warning: 'virtual void nvonnxparser::IParser::destroy()' is deprecated [-Wdeprecated-declarations]
140 | parser->destroy();
| ^
In file included from /tensorrt_inference/Yolov4/../includes/common/common.hpp:8,
from /tensorrt_inference/Yolov4/Yolov4.cpp:3:
/usr/include/x86_64-linux-gnu/NvOnnxParser.h:197:33: note: declared here
197 | TRT_DEPRECATED virtual void destroy() = 0;
| ^~~~~~~
In file included from /tensorrt_inference/Yolov4/Yolov4.cpp:3:
/tensorrt_inference/Yolov4/../includes/common/common.hpp:150:22: warning: 'void nvinfer1::INetworkDefinition::destroy()' is deprecated [-Wdeprecated-declarations]
150 | network->destroy();
| ^
In file included from /tensorrt_inference/Yolov4/Yolov4.h:5,
from /tensorrt_inference/Yolov4/Yolov4.cpp:1:
/usr/include/x86_64-linux-gnu/NvInfer.h:5856:25: note: declared here
5856 | TRT_DEPRECATED void destroy() noexcept
| ^~~~~~~
In file included from /tensorrt_inference/Yolov4/Yolov4.cpp:3:
/tensorrt_inference/Yolov4/../includes/common/common.hpp:151:22: warning: 'void nvinfer1::IBuilder::destroy()' is deprecated [-Wdeprecated-declarations]
151 | builder->destroy();
| ^
In file included from /tensorrt_inference/Yolov4/Yolov4.h:5,
from /tensorrt_inference/Yolov4/Yolov4.cpp:1:
/usr/include/x86_64-linux-gnu/NvInfer.h:7929:25: note: declared here
7929 | TRT_DEPRECATED void destroy() noexcept
| ^~~~~~~
/tensorrt_inference/Yolov4/Yolov4.cpp: In member function 'bool YOLOv4::InferenceFolder(const string&)':
/tensorrt_inference/Yolov4/Yolov4.cpp:94:22: warning: 'void nvinfer1::IExecutionContext::destroy()' is deprecated [-Wdeprecated-declarations]
94 | context->destroy();
| ^
In file included from /usr/include/x86_64-linux-gnu/NvInfer.h:54,
from /tensorrt_inference/Yolov4/Yolov4.h:5,
from /tensorrt_inference/Yolov4/Yolov4.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntime.h:1888:25: note: declared here
1888 | TRT_DEPRECATED void destroy() noexcept
| ^~~~~~~
/tensorrt_inference/Yolov4/Yolov4.cpp:95:21: warning: 'void nvinfer1::ICudaEngine::destroy()' is deprecated [-Wdeprecated-declarations]
95 | engine->destroy();
| ^
In file included from /usr/include/x86_64-linux-gnu/NvInfer.h:54,
from /tensorrt_inference/Yolov4/Yolov4.h:5,
from /tensorrt_inference/Yolov4/Yolov4.cpp:1:
/usr/include/x86_64-linux-gnu/NvInferRuntime.h:1434:25: note: declared here
1434 | TRT_DEPRECATED void destroy() noexcept
| ^~~~~~~
/tensorrt_inference/Yolov4/Yolov4.cpp:96:1: warning: control reaches end of non-void function [-Wreturn-type]
96 | }
| ^
make[2]: *** [CMakeFiles/Yolov4_trt.dir/build.make:76: CMakeFiles/Yolov4_trt.dir/Yolov4.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/Yolov4_trt.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
I am facing this issue in TensorRT 8.0, but works perfectly with TensorRT 7.0
I am facing this issue in TensorRT 8.0, but works perfectly with TensorRT 7.0