Undefined reference to `getInferLibVersion'

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Jetson Xavier
• DeepStream Version ver 5
• JetPack Version (valid for Jetson only) Jetpack 4.4
Previously I accidently deleted libnvinfer.so from /usr/lib/aarch64-linux-gnu.

The system is remote system. So I can’t reinstall Jetpack.
So same Jetpack 4.4 is installed at offline system and copied libnvinfer.so.7.1.3 to /usr/lib/aarch64-linux-gnu.
The lib set up as shown below.

When compiled deepstream-app again, I have error as
undefined reference to getInferLibVersion

Pls see full errors at below image.

from the log, libnvinfer.so.7 not found. could you share the output of “ll /usr/lib/aarch64-linux-gnu/libnvinfer.so.7” and “ll /usr/lib/aarch64-linux-gnu/libnvinfer.so.7.1.3” ?

The output is as below.

Last login: Mon Sep 18 13:33:03 2023 from 10.8.1.25
nvidia@apm001-vp-slave:~$ ll /usr/lib/aarch64-linux-gnu/libnvinfer.so.7
lrwxrwxrwx 1 root root 19 9月  18 13:24 /usr/lib/aarch64-linux-gnu/libnvinfer.so.7 -> libnvinfer.so.7.1.3
nvidia@apm001-vp-slave:~$ ll /usr/lib/aarch64-linux-gnu/libnvinfer.so.7.1.3
-rw-r--r-- 1 root root 1769472 9月  18 12:02 /usr/lib/aarch64-linux-gnu/libnvinfer.so.7.1.3
nvidia@apm001-vp-slave:~$

could you share the output of “objdump -tT /usr/lib/aarch64-linux-gnu/libnvinfer.so.7.1.3 |grep getInferLibVersion” ?

My remote devices under whole system maintenance. I’ll test tomorrow and get back to you. Thanks

When I run the command
objdump -tT /usr/lib/aarch64-linux-gnu/libnvinfer.so.7.1.3 | grep getInferLibVersion
The output is
objdump: /usr/lib/aarch64-linux-gnu/libnvinfer.so.7.1.3: File truncated

Currently I only have Jetson libnvinfer.so.8.4.1. the result is:
objdump -tT /usr/lib/aarch64-linux-gnu/libnvinfer.so.8.4.1 |grep getInferLibVersion
00000000010c4dc8 g DF .text 0000000000000014 Base getInferLibVersion

the file size is 278M, can you check if the libnvinfer.so.7.1.3 file size is the same with the file size in the offline system?
ll /usr/lib/aarch64-linux-gnu/libnvinfer.so.8.4.1 -sh
278M -rw-r–r-- 1 root root 278M Jun 4 2022 /usr/lib/aarch64-linux-gnu/libnvinfer.so.8.4.1

Yes file was corrupted when copying to remote device.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.