stevenjj / openpose_ros

A ros wrapper for the CMU openpose library
60 stars 25 forks source link

Caffe Library variable not found on building openpose_ros_pkg #16

Closed Harsharma2308 closed 5 years ago

Harsharma2308 commented 5 years ago

I am getting the following error-

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CAFFE_LIBRARY

Do I need to set it up explicitly? I have caffe built.

stevenjj commented 5 years ago

Hi. Try changing this CMake variable to point to the location of caffe's .so file.

FIND_LIBRARY(CAFFE_LIBRARY caffe ../openpose/3rdparty/caffe/distribute/lib)

https://github.com/stevenjj/openpose_ros/blob/master/openpose_ros_pkg/CMakeLists.txt#L53

Harsharma2308 commented 5 years ago

I changed it to this- FIND_LIBRARY(CAFFE_LIBRARY caffe ../openpose/3rdparty/caffe/build/lib It works now. Thanks