When run make, errors stating "cannot find -lxxxxxx" occur

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
Jetson Nano 4GB
• DeepStream Version
5.0.1
• JetPack Version (valid for Jetson only)
4.4

Now I am trying Deepstream5.0 to Jetson Nano by following quick start guide.
Once everything is installed, move to the sample app file such as deepstream-test5, and run sudo make, I got the following errors:

/usr/bin/ld: skipping incompatible /opt/nvidia/deepstream/deepstream-5.0/lib//libnvdsgst_meta.so when searching for -lnvdsgst_meta
/usr/bin/ld: cannot find -lnvdsgst_meta
/usr/bin/ld: skipping incompatible /opt/nvidia/deepstream/deepstream-5.0/lib//libnvds_meta.so when searching for -lnvds_meta
/usr/bin/ld: cannot find -lnvds_meta
/usr/bin/ld: skipping incompatible /opt/nvidia/deepstream/deepstream-5.0/lib//libnvdsgst_helper.so when searching for -lnvdsgst_helper
/usr/bin/ld: cannot find -lnvdsgst_helper
/usr/bin/ld: skipping incompatible /opt/nvidia/deepstream/deepstream-5.0/lib//libnvdsgst_smartrecord.so when searching for -lnvdsgst_smartrecord
/usr/bin/ld: cannot find -lnvdsgst_smartrecord
/usr/bin/ld: skipping incompatible /opt/nvidia/deepstream/deepstream-5.0/lib//libnvds_utils.so when searching for -lnvds_utils
/usr/bin/ld: cannot find -lnvds_utils
/usr/bin/ld: skipping incompatible /opt/nvidia/deepstream/deepstream-5.0/lib//libnvds_msgbroker.so when searching for -lnvds_msgbroker

I don’t know what to do for the errors. Please someone support.

Thanks,

Did you set CUDA_VER before making? Please check the description in README.

@yingliu thank you for your reply. Sorry, could you tell me how to set CUDA_VER? I tried
sudo CUDA_VER=10.0 make
and
sudo CUDA_VER=10.2 make
but the result is still the same…

I looked through the READ ME of deepstream-test5, but it doesn’t mention about CUDA_VER.

@seiazetsu You are right, the CUDA_VER is from DeepStream6.0 examples. I pulled a DS6.0 docker image and make can run directly, not sure if the filesystem or config changed on your Nano. Is it possible to ugprade your Nano to JP4.6.2? JetPack SDK 4.6.2 | NVIDIA Developer

@yingliu I would like to use Deepstream5.0 because I need deepsteam-test5 based application which is not in Deepstream6.0. So I want to keep the Jetpack 4.4 for the compatibility with Deepstream5.0.

Can you find libnvdsgst_meta.so libnvdsgst_smartrecord.so libnvds_msgbroker.so libnvds_utils.so under lib/?

@Amycao Yes, there are under lib directory.

Please get the output of:
file /opt/nvidia/deepstream/deepstream-5.0/lib//libnvds_meta.so

@Amycao I am so sorry, where to get the output of libnvds_meta.so?

When I run “sudo make” under deepstream-test5 directory, it shows the errors initially I pasted.

Just run the command,
file /opt/nvidia/deepstream/deepstream-5.0/lib//libnvds_meta.so

@Amycao Thanks, here is the output:
ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=f5f66d115fef5ea0d24dde79ee6e09f3187f942a, not stripped

You downloaded wrong platform version, you should use aarch64 version.

@Amycao
Thank you for pointing it out.
By following the instruction, I downloaded Deepstream5.0 from
https://developer.nvidia.com/assets/Deepstream/5.0/ga/secure/deepstream_sdk_5.0.1_x86_64.tbz2

Could you show me the download link of DS5.0 aarch64 version?

@Amycao Thank you very much. However, what you showed is the link of DeepStream6.X. I am using DeepStream5.0. Is there aarch64 version of DS5.0 for Jetson Nano?

Archived versions include older build.

1 Like

@Amycao thanks a lot for your support. I finally succeeded!

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