Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tensorrt 8.4.1 deepsort onnx 2 engine 报错 #47

Open
ZhenshengWu opened this issue Jun 25, 2023 · 1 comment
Open

Tensorrt 8.4.1 deepsort onnx 2 engine 报错 #47

ZhenshengWu opened this issue Jun 25, 2023 · 1 comment

Comments

@ZhenshengWu
Copy link

您好,使用tensorrt 8.4.1-1 + cuda11.4 在 Xavier NX 上,编译时报如下错误,该如何解决呢?

/usr/bin/ld: /usr/lib/aarch64-linux-gnu/tegra/libnvmedia.so: undefined reference to TVMRVideoOFSTUnRegisterSurface' /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to nvdla::IProfile::setUseSoftMaxOptz(bool)'
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to nvdla::IPoolingLayer::setPoolingPaddingInclusionType(nvdla::PoolingPaddingInclusionType)' /usr/bin/ld: /usr/lib/aarch64-linux-gnu/tegra/libnvmedia.so: undefined reference to TVMRVideoOFSTRegisterSurface'
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/tegra/libnvmedia.so: undefined reference to TVMRVideoOFSTUnRegisterTaskStatus' /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to nvdla::INetwork::addSlice(nvdla::ITensor*, nvdla::Weights, nvdla::Weights, nvdla::Weights, nvdla::Weights, nvdla::SliceLayerMode)'
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/tegra/libnvmedia.so: undefined reference to TVMRVICDestroy' /usr/bin/ld: /usr/lib/aarch64-linux-gnu/tegra/libnvmedia.so: undefined reference to TVMRVideoEncoderUnRegisterSurface'
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/tegra/libnvmedia.so: undefined reference to TVMRVideoEncoderRegisterSurface' /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to nvdla::IProfile::setCanCompressStructuredSparseWeights(bool)'
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to nvdla::INetwork::addResize(nvdla::ITensor*, nvdla::ResizeMode, nvdla::Weights)' /usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/9/../../../aarch64-linux-gnu/libnvinfer.so: undefined reference to nvdla::ISoftMaxLayer::setAxis(int)'
/usr/bin/ld: /usr/lib/aarch64-linux-gnu/tegra/libnvmedia.so: undefined reference to TVMRVideoOFSTRegisterTaskStatus' /usr/bin/ld: /usr/lib/aarch64-linux-gnu/tegra/libnvmedia.so: undefined reference to TVMRVICCreate'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/demo.dir/build.make:149: demo] Error 1
make[1]: *** [CMakeFiles/Makefile2:80: CMakeFiles/demo.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

Tensorrt信息
ii graphsurgeon-tf 8.4.1-1+cuda11.4 arm64 GraphSurgeon for TensorRT package
ii libnvinfer-bin 8.4.1-1+cuda11.4 arm64 TensorRT binaries
ii libnvinfer-dev 8.4.1-1+cuda11.4 arm64 TensorRT development libraries and headers
ii libnvinfer-plugin-dev 8.4.1-1+cuda11.4 arm64 TensorRT plugin libraries
ii libnvinfer-plugin8 8.4.1-1+cuda11.4 arm64 TensorRT plugin libraries
ii libnvinfer-samples 8.4.1-1+cuda11.4 all TensorRT samples
ii libnvinfer8 8.4.1-1+cuda11.4 arm64 TensorRT runtime libraries
ii libnvonnxparsers-dev 8.4.1-1+cuda11.4 arm64 TensorRT ONNX libraries
ii libnvonnxparsers8 8.4.1-1+cuda11.4 arm64 TensorRT ONNX libraries
ii libnvparsers-dev 8.4.1-1+cuda11.4 arm64 TensorRT parsers libraries
ii libnvparsers8 8.4.1-1+cuda11.4 arm64 TensorRT parsers libraries
ii nvidia-tensorrt 5.0.2-b222 arm64 NVIDIA TensorRT Meta Package
ii nvidia-tensorrt-dev 5.0.2-b222 arm64 NVIDIA TensorRT dev Meta Package
ii python3-libnvinfer 8.4.1-1+cuda11.4 arm64 Python 3 bindings for TensorRT
ii python3-libnvinfer-dev 8.4.1-1+cuda11.4 arm64 Python 3 development package for TensorRT
ii tensorrt 8.4.1.5-1+cuda11.4 arm64 Meta package for TensorRT
ii uff-converter-tf 8.4.1-1+cuda11.4 arm64 UFF converter for TensorRT package

@ZhenshengWu
Copy link
Author

我已经解决编译的问题了,原因是我的Xavier NX host机器是jetpack5.1的,但是l4t的镜像是5.0.2的,导致的这个问题,更换了一台jetpack5.0.2的 NX,编译通过了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant