slowsingle / openpose_ros

Using openpose via ROS
7 stars 1 forks source link

Compiling again #2

Open ghost opened 6 years ago

ghost commented 6 years ago

Hi, it's me again. I installed the version 1.0.2 of openpose and successfully got through make.

But when I tried to compile your code I got this error...

In file included from /home/amsl/openpose-1.0.2/3rdparty/caffe/include/caffe/common.hpp:19:0, from /home/amsl/openpose-1.0.2/3rdparty/caffe/include/caffe/blob.hpp:8, from /home/amsl/openpose-1.0.2/3rdparty/caffe/include/caffe/net.hpp:10, from /home/amsl/openpose-1.0.2/include/openpose/core/netCaffe.hpp:5, from /home/amsl/openpose-1.0.2/include/openpose/core/headers.hpp:14, from /home/amsl/ros_catkin_ws/src/openpose_ros/src/openpose_ros_node.cpp:18: /home/amsl/openpose-1.0.2/3rdparty/caffe/include/caffe/util/device_alternate.hpp:34:23: fatal error: cublas_v2.h: No such file or directory compilation terminated. openpose_ros/CMakeFiles/openpose_ros_node.dir/build.make:62: recipe for target 'openpose_ros/CMakeFiles/openpose_ros_node.dir/src/openpose_ros_node.cpp.o' failed make[2]: [openpose_ros/CMakeFiles/openpose_ros_node.dir/src/openpose_ros_node.cpp.o] Error 1 CMakeFiles/Makefile2:5779: recipe for target 'openpose_ros/CMakeFiles/openpose_ros_node.dir/all' failed make[1]: [openpose_ros/CMakeFiles/openpose_ros_node.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j8 -l8" failed

I'll appreciate any advice, thanks in advance!

slowsingle commented 6 years ago

The cause of the error is "fatal error: cublas_v2.h: No such file or directory" Please check whether CUDA_DIR in caffe's Makefile.config(/home/amsl/openpose-1.0.2/3rdparty/caffe/Makefile.config) is correct.