-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot find -lopencv_dep_cudart #12
Comments
Do you have CUDA installed? Unfortunately, I haven't built CPU support yet. If you do have CUDA installed and OpenCV3, try adding |
Yes, I'm trying with CUDA and my OpenCV version is 3.3.1. Tried everything on the link, the best result is :[ 65%] Building NVCC (Device) object darknet_ros/CMakeFiles/yolo_ros.dir/darknet/src/yolo_ros_generated_maxpool_layer_kernels.cu.o
|
Might be an issue with opencv 3.3.1 similar to this. You may have to update kinetic or fiddle around with your opencv install. You could try building the docker image as a sanity check. The docker image uses opencv 2.4. Let me know if you figure it out. |
HEY!
While I''m trying to compile your code with catkim_make, I'm taking this error :
Scanning dependencies of target single_image_test
[ 9%] Linking CXX executable /home/nvidia/ip_ws/devel/lib/darknet_ros/yolo_ros
[ 9%] Building CXX object darknet_ros/CMakeFiles/single_image_test.dir/src/single_image_test.cpp.o
/usr/bin/ld: cannot find -lopencv_dep_cudart
collect2: error: ld returned 1 exit status
darknet_ros/CMakeFiles/yolo_ros.dir/build.make:4557: recipe for target '/home/nvidia/ip_ws/devel/lib/darknet_ros/yolo_ros' failed
make[2]: *** [/home/nvidia/ip_ws/devel/lib/darknet_ros/yolo_ros] Error 1
CMakeFiles/Makefile2:1141: recipe for target 'darknet_ros/CMakeFiles/yolo_ros.dir/all' failed
make[1]: *** [darknet_ros/CMakeFiles/yolo_ros.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/home/nvidia/ip_ws/src/darknet_ros/src/single_image_test.cpp:26:13: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
char cfg = "/home/catkin_ws/src/darknet_ros/cfg/tiny-yolo-voc.cfg";
^
/home/nvidia/ip_ws/src/darknet_ros/src/single_image_test.cpp:27:17: warning: deprecated conversion from string constant to ‘char’ [-Wwrite-strings]
char *weights = "/home/catkin_ws/src/darknet_ros/weights/tiny-yolo-voc.weights";
^
[ 9%] Linking CXX executable /home/nvidia/ip_ws/devel/lib/darknet_ros/single_image_test
/usr/bin/ld: cannot find -lopencv_dep_cudart
collect2: error: ld returned 1 exit status
darknet_ros/CMakeFiles/single_image_test.dir/build.make:2900: recipe for target '/home/nvidia/ip_ws/devel/lib/darknet_ros/single_image_test' failed
make[2]: *** [/home/nvidia/ip_ws/devel/lib/darknet_ros/single_image_test] Error 1
CMakeFiles/Makefile2:1609: recipe for target 'darknet_ros/CMakeFiles/single_image_test.dir/all' failed
make[1]: *** [darknet_ros/CMakeFiles/single_image_test.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
Any idea?
Thanks
The text was updated successfully, but these errors were encountered: