yehengchen / Object-Grasp-Detection-ROS

Real-time Object Grasp Detection ROS package for YOLO
216 stars 75 forks source link

DARKNET_PATH-NOTFOUND/src/activation_layer.c #2

Closed Yanxing-Shi closed 1 year ago

Yanxing-Shi commented 4 years ago

你好,我在编译过程中出现了以下错误:

CMake Error at /usr/share/cmake-3.5/Modules/FindCUDA.cmake:1649 (add_library):
  Cannot find source file:

    DARKNET_PATH-NOTFOUND/src/activation_layer.c

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

-- Generating done -- Build files have been written to: /home/user/experiment/ros/catkin_workspace/build Invoking "cmake" failed

yehengchen commented 4 years ago

@syx0629 你试一下把 darknet_ros 删了,用下面的方法下载 git clone --recursive git@github.com:leggedrobotics/darknet_ros.git

mgagnier93 commented 4 years ago

@yehengchen I followed your instructions on to clone the repo, but now I am getting this error when trying "catkin_make yolov3_pytorch_ros":

Running command: "make cmake_check_build_system" in "/home/mike/catkin_ws/build"

Running command: "make yolov3_pytorch_ros -j8 -l8" in "/home/mike/catkin_ws/build"

make: *** No rule to make target 'yolov3_pytorch_ros'. Stop. Invoking "make yolov3_pytorch_ros -j8 -l8" failed

Any ideas on how to fix this issue? Thank you.

Edit: This worked for me "git clone --recursive https://github.com/leggedrobotics/darknet_ros.git"