Open dylantzx opened 3 years ago
Had that same issue while building a catkin env during the build of Docker image (but not when building the project from within the image), using nvidia-container-runtime. If that's your case too, I solved it by adding the library stubs among the directories linked in the darknet_ros CMake like so:
link_directories(
${CUDA_TOOLKIT_ROOT_DIR}/lib64
${CUDA_TOOLKIT_ROOT_DIR}/lib64/stubs
)
(line is around 145)
Had that same issue while building a catkin env during the build of Docker image (but not when building the project from within the image), using nvidia-container-runtime. If that's your case too, I solved it by adding the library stubs among the directories linked in the darknet_ros CMake like so:
link_directories( ${CUDA_TOOLKIT_ROOT_DIR}/lib64 ${CUDA_TOOLKIT_ROOT_DIR}/lib64/stubs )
(line is around 145)
This works!!
I am facing this issue even after trying what was mentioned in #252 and #289
This is what I've done so far. 1)
cd catkin_ws/src && git clone --recursive git@github.com:leggedrobotics/darknet_ros.git
2)cd ..
3)catkin build darknet_ros -DCMAKE_BUILD_TYPE=Release
Some other extra information: 1) When run
nvidia-smi
2) Using Ubuntu 18.04 LTS, ROS Melodic with GPU NVIDIA Quadro P1000
3) When I run
ls -l /usr/local/cuda-11.3/lib64/libcuda.so
I already have:lrwxrwxrwx 1 root root 46 Jul 12 15:10 libcuda.so -> /usr/lib/x86_64-linux-gnu/libcuda.so.465.19.01
So doesn't this mean that I have already have a symbolic link to the cuda lib?The error output is: