/usr/bin/ld: cannot find -lnvbuf_utils

Hello everyone,

I am trying to connect detectNet with ROS using a C++ file (detek.cpp) within the vision package in my workspace (hexa_ws). However, when I run catkin_make, I encounter the following error:

/usr/bin/ld: cannot find -lnvbuf_utils

I have already added link_directories and target_link_libraries in my CMakeLists.txt, but I am still facing this issue.

Has anyone experienced this problem before or knows how to fix it? I am using Jetson and integrating object detection from Jetson Inference into ROS.

Thank you for your help!

Hi,

Could you share the CMakeLists.txt with us so we can know more about the issue?

Thanks.

Hi, thanks for response. Here my CMakeLists.txt

cmake_minimum_required(VERSION 3.0.2)
project(vision)

find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
)
set(CUDA_TOOLKIT_ROOT_DIR /usr/local/cuda-10.2)
find_package(jetson-utils REQUIRED)
find_package(jetson-inference REQUIRED)
find_package(CUDA REQUIRED)

catkin_package(
)
include_directories(
${catkin_INCLUDE_DIRS}
${CUDA_INCLUDE_DIRS}
)

add_executable(${PROJECT_NAME}_node src/detek.cpp)

target_link_libraries(${PROJECT_NAME}_node
${catkin_LIBRARIES}
jetson-inference
jetson-utils
/usr/lib/aarch64-linux-gnu/tegra/libnvbuf_utils.so
${CUDA_LIBRARIES}
)

link_directories(
/usr/local/cuda-10.2/lib64
/usr/lib/aarch64-linux-gnu/tegra
${CUDA_LIBRARY_DIRS}
)

Hi,

Please add link_directories(/usr/lib/aarch64-linux-gnu/tegra) to your CMakefile.
You can find more info in the below topic:

Thanks.

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