In file included from /home/sirius/Desktop/TensorRT-CenterNet/onnx-tensorrt/OnnxAttrs.cpp:25:0:
/home/sirius/Desktop/TensorRT-CenterNet/onnx-tensorrt/onnx2trt_utils.hpp:246:11: warning: ‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations]
shape.type[0] = nvinfer1::DimensionType::kCHANNEL;
^~~~
In file included from /usr/include/aarch64-linux-gnu/NvInferRuntime.h:59:0,
from /usr/include/aarch64-linux-gnu/NvInfer.h:53,
from /home/sirius/Desktop/TensorRT-CenterNet/onnx-tensorrt/OnnxAttrs.hpp:26,
from /home/sirius/Desktop/TensorRT-CenterNet/onnx-tensorrt/OnnxAttrs.cpp:23:
/usr/include/aarch64-linux-gnu/NvInferRuntimeCommon.h:225:47: note: declared here
TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension.
^
[ 69%] Linking CXX shared library ../../lib/libnvonnxparser.so
/usr/bin/ld: cannot find -lcudart
collect2: error: ld returned 1 exit status
onnx-tensorrt/CMakeFiles/nvonnxparser.dir/build.make:169: recipe for target '../lib/libnvonnxparser.so' failed
make[2]: [../lib/libnvonnxparser.so] Error 1
CMakeFiles/Makefile2:97: recipe for target 'onnx-tensorrt/CMakeFiles/nvonnxparser.dir/all' failed
make[1]: [onnx-tensorrt/CMakeFiles/nvonnxparser.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
Hi @CaoWGG ,
In file included from /home/sirius/Desktop/TensorRT-CenterNet/onnx-tensorrt/OnnxAttrs.cpp:25:0: /home/sirius/Desktop/TensorRT-CenterNet/onnx-tensorrt/onnx2trt_utils.hpp:246:11: warning: ‘nvinfer1::Dims::type’ is deprecated [-Wdeprecated-declarations] shape.type[0] = nvinfer1::DimensionType::kCHANNEL; ^~~~ In file included from /usr/include/aarch64-linux-gnu/NvInferRuntime.h:59:0, from /usr/include/aarch64-linux-gnu/NvInfer.h:53, from /home/sirius/Desktop/TensorRT-CenterNet/onnx-tensorrt/OnnxAttrs.hpp:26, from /home/sirius/Desktop/TensorRT-CenterNet/onnx-tensorrt/OnnxAttrs.cpp:23: /usr/include/aarch64-linux-gnu/NvInferRuntimeCommon.h:225:47: note: declared here TRT_DEPRECATED DimensionType type[MAX_DIMS]; //!< The type of each dimension. ^ [ 69%] Linking CXX shared library ../../lib/libnvonnxparser.so /usr/bin/ld: cannot find -lcudart collect2: error: ld returned 1 exit status onnx-tensorrt/CMakeFiles/nvonnxparser.dir/build.make:169: recipe for target '../lib/libnvonnxparser.so' failed make[2]: [../lib/libnvonnxparser.so] Error 1 CMakeFiles/Makefile2:97: recipe for target 'onnx-tensorrt/CMakeFiles/nvonnxparser.dir/all' failed make[1]: [onnx-tensorrt/CMakeFiles/nvonnxparser.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2
Thanks