This is on an industrial grade AGX running JetPack 4.4 (see below).
We have Jetson Interference built from source and our code is in cpp. When attemting to build, the linker fails with:“/usr/bin/ld: cannot find -lnvbuf_utils”
The same configuration builds and runs on an NX (though I don’t recall which version of Jetpack is on that computer).
If yes, does adding /usr/lib/aarch64-linux-gnu/tegra into LD_LIBRARY_PATH helps ?
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/aarch64-linux-gnu/tegra
# Assuming you're running this in the build directory where your built app is:
./your_app
Yes, the multimedia-api is installed, exporting the LD_LIBRARY_PATH didn’t help, I see the libnvbuf_utils.so file in the /usr/lib/aarch64-linux-gnu/tegra directory, my app fails to build because of the linking error so I can’t really run a ldd on it.
Yes, the multimedia-api is installed, exporting the LD_LIBRARY_PATH didn’t help, I see the libnvbuf_utils.so file in the /usr/lib/aarch64-linux-gnu/tegra directory, my app fails to build because of the linking error so I can’t really run a ldd on it.
Thanks @dusty_nv this worked and we can close this issue but I’m still curious why this wasn’t necessary on the NX and only on the AGX this was an issue.
I’m not entirely sure either, and I’m also still trying to figure out why CMake would need this link_directories() command added in other CMakeLists that aren’t building the jetson-inference/jetson-utils library itself.
If the library is in the default search path it should be automatically found, but if not in the default search path, then you’d need to manually name it. I saw this handy method of printing the default path from stackoverflow.com:
ld --verbose | grep SEARCH_DIR | tr -s ' ;' \\012
Did that command list “/usr/lib/aarch64-linux-gnu/tegra”? If not, then you could examine the files in “/etc/ld.so.conf.d/*.conf” which adds to the default linker path. Perhaps one of the “.deb” packages sets up linker paths in one case, but not in another case.
Hi Folks.
I’m having the same issue while trying to build, with either catkin_make or catkin build, jetbot_ros repository from GitHub - dusty-nv/jetbot_ros at melodic.
I have already added link_directories(/usr/lib/aarch64-linux-gnu/tegra) to jetbot_ros package CMakeLists.txt and to workspace CMakeLists.txt as well, but it didn’t work.