Closed minhhoai1001 closed 4 months ago
Try to find tensorrt lib libnvinfer.so
and then link it to the project
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.
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!
Are you try run docker run --gpus all ...?
Vào 22:16, Th 6, 24 thg 5, 2024 triple-mu @.***> đã viết:
Closed #178 https://github.com/triple-Mu/YOLOv8-TensorRT/issues/178 as completed.
— Reply to this email directly, view it on GitHub https://github.com/triple-Mu/YOLOv8-TensorRT/issues/178#event-12926492842, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE6NGMZFFHU32WTYVIPFGNLZD5KTXAVCNFSM6AAAAAA72WY4W2VHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSHEZDMNBZGI4DIMQ . You are receiving this because you authored the thread.Message ID: @.***>
I run Docker and build on Jetson Xavier.
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
How to fix it.