leggedrobotics / darknet_ros

YOLO ROS: Real-Time Object Detection for ROS
BSD 3-Clause "New" or "Revised" License
2.14k stars 1.17k forks source link

err when catkin_make :CMake Error at /opt/cmake-3.14.7/share/cmake-3.14/Modules/FindCUDA.cmake:1813 (add_library): No SOURCES given to target: darknet_ros_lib #399

Closed dbdxnuliba closed 1 year ago

dbdxnuliba commented 1 year ago

Describe the bug catkin_make -j2 error info


CMake Error at /opt/cmake-3.14.7/share/cmake-3.14/Modules/FindCUDA.cmake:1813 (add_library):
  Cannot find source file:

    DARKNET_PATH-NOTFOUND/src/activation_layer.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx
Call Stack (most recent call first):
  darknet_ros-master/darknet_ros/CMakeLists.txt:148 (cuda_add_library)

CMake Error at /opt/cmake-3.14.7/share/cmake-3.14/Modules/FindCUDA.cmake:1813 (add_library):
  No SOURCES given to target: darknet_ros_lib
Call Stack (most recent call first):
  darknet_ros-master/darknet_ros/CMakeLists.txt:148 (cuda_add_library)
-- Build files have been written to: /home/robot/ref/ws_pick_and_deliver/build

Invoking "cmake" failed To Reproduce Steps to reproduce the behavior: 1.catkin_make -j2

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

System specs (please complete the following information):

Fri Dec 16 16:32:38 2022
+-----------------------------------------------------------------------------+ | NVIDIA-SMI 418.88 Driver Version: 418.88 CUDA Version: 10.1 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | |===============================+======================+======================| | 0 GeForce RTX 208... Off | 00000000:01:00.0 On | N/A | | 0% 38C P8 15W / 257W | 253MiB / 10986MiB | 9% Default | +-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+ | Processes: GPU Memory | | GPU PID Type Process name Usage | |=============================================================================| | 0 1142 G /usr/lib/xorg/Xorg 251MiB | +-----------------------------------------------------------------------------+

robot@robot:/usr/local$ ls -al cuda lrwxrwxrwx 1 root root 20 Sep 20 15:10 cuda -> /usr/local/cuda-10.0

Additional context Add any other context about the problem here.