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

Error when build with nvcr.io/nvidia/l4t-tensorrt:r8.5.2.2-devel on Jetson Xavier #178

Closed
minhhoai1001 opened this issue Nov 26, 2023 · 4 comments

Comments

@minhhoai1001
Copy link

minhhoai1001 commented Nov 26, 2023

I run Docker and build on Jetson Xavier.

  • Jetpack: 5.0.2
  • TensorRT 8.4.1.5
  • Docker image: nvcr.io/nvidia/l4t-tensorrt:r8.5.2.2-devel

sudo docker run -it --rm nvcr.io/nvidia/l4t-tensorrt:r8.5.2.2-devel
apt-install libopencv-dev
git clone https://github.com/triple-Mu/YOLOv8-TensorRT
cd YOLOv8-TensorRT/csrc/jetson/segment
mkdir build
cd build
cmake ..
make
I got error
Screenshot 2023-11-26 160451

How to fix it.

@triple-Mu
Copy link
Owner

Try to find tensorrt lib libnvinfer.so and then link it to the project

@catslashbin
Copy link

catslashbin commented Feb 29, 2024

I encountered the same issue while compiling the Jetson demo in the l4t Docker. A quick search revealed that libnvdla_compiler.so and other shared libraries are mounted into the Docker by the Nvidia Docker runtime (See this post). If the Docker runs without the Nvidia runtime, these libraries won't be mounted, leading to errors.

To build the code without Nvidia GPU (i.e., in CI), simply include -DCMAKE_EXE_LINKER_FLAGS="-Wl,--unresolved-symbols=ignore-all" -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--unresolved-symbols=ignore-all" in the cmake execution command. This will instruct the linker to ignore missing dynamic libraries.

@triple-Mu
Copy link
Owner

I encountered the same issue while compiling the Jetson demo in the l4t Docker. A quick search revealed that libnvdla_compiler.so and other shared libraries are mounted into the Docker by the Nvidia Docker runtime (See this post). If the Docker runs without the Nvidia runtime, these libraries won't be mounted, leading to errors.

To build the code without Nvidia GPU (i.e., in CI), simply include -DCMAKE_EXE_LINKER_FLAGS="-Wl,--unresolved-symbols=ignore-all" -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--unresolved-symbols=ignore-all" in the cmake execution command. This will instruct the linker to ignore missing dynamic libraries.

Thanks very much!

@minhhoai1001
Copy link
Author

minhhoai1001 commented May 25, 2024 via email

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

3 participants