Openpose: Makefiles Error

Created on 4 Aug 2017  Â·  8Comments  Â·  Source: CMU-Perceptual-Computing-Lab/openpose

i run the installation script after all package fully downloaded i got such this errors . im noob in linux . plz guide me .

compilation terminated. Makefile:478: recipe for target '.build_release/src/openpose/wrapper/defineTemplates.o' failed make: * [.build_release/src/openpose/wrapper/defineTemplates.o] Error 1 In file included from src/openpose/core/netCaffe.cpp:4:0: ./include/openpose/core/netCaffe.hpp:5:25: fatal error: caffe/net.hpp: No such file or directory compilation terminated. Makefile:478: recipe for target '.build_release/src/openpose/core/netCaffe.o' failed make: [.build_release/src/openpose/core/netCaffe.o] Error 1 In file included from src/openpose/pose/bodyPartConnectorCaffe.cpp:3:0: ./include/openpose/pose/bodyPartConnectorCaffe.hpp:5:26: fatal error: caffe/blob.hpp: No such file or directory compilation terminated. Makefile:478: recipe for target '.build_release/src/openpose/pose/bodyPartConnectorCaffe.o' failed make: [.build_release/src/openpose/pose/bodyPartConnectorCaffe.o] Error 1 In file included from ./include/openpose/pose/headers.hpp:6:0, from src/openpose/pose/defineTemplates.cpp:1: ./include/openpose/pose/bodyPartConnectorCaffe.hpp:5:26: fatal error: caffe/blob.hpp: No such file or directory compilation terminated. Makefile:478: recipe for target '.build_release/src/openpose/pose/defineTemplates.o' failed make: * [.build_release/src/openpose/pose/defineTemplates.o] Error 1).

Ubuntu version 16.04
CUDA 8
cudnn 5.1
opencv 2.4.1

Most helpful comment

It's just as @erolrecep and @MartinFultot said. BUILD_CAFFE=OFF and Caffe_INCLUDE_DIRS=Cafe_Path

Please replace your respective paths in '<>'
(In the Build directory) : /opt/openpose/build
cmake \
-DCMAKE_BUILD_TYPE="Release" \
-DBUILD_CAFFE=OFF \
-DBUILD_EXAMPLES=ON \
-DBUILD_DOCS=ON \
-DDOWNLOAD_BODY_COCO_MODEL=ON \
-DDOWNLOAD_BODY_MPI_MODEL=ON \
-DCaffe_INCLUDE_DIRS="" \
-DCaffe_LIBS=""\
-DBUILD_PYTHON=ON ../

You can pass other parameters as well.
This worked for me. Also check if you have installed caffe properly, without any errors
(I did get a few errors in caffe, resolved them while installing Openpose)

All 8 comments

I have exactly the same problem in compiling the openpose step. Did you solve this problem? @54jj4d

Unfortunately no. and no body help me . seems no one else have this problem .
@whluo

It sounds like Caffe was not properly installed. Please, try installing Caffe (in 3rdparty/caffe/) following their instructions and after it is properly compiled then install OpenPose. THanks!

(Closed due no further answer)

Same problem. @54jj4d @whluo Have you guys solved it?

It seems that your makefile.config can not find the directory of caffe. Make sure CAFFE_DIR="your caffe installation or caffe distribution". blob.hpp is in caffe include directory.

Make sure you add the BUILD_CAFFE=OFF flag during cmake or else it will ignore you caffe build even if you provide the right path to include.

It's just as @erolrecep and @MartinFultot said. BUILD_CAFFE=OFF and Caffe_INCLUDE_DIRS=Cafe_Path

Please replace your respective paths in '<>'
(In the Build directory) : /opt/openpose/build
cmake \
-DCMAKE_BUILD_TYPE="Release" \
-DBUILD_CAFFE=OFF \
-DBUILD_EXAMPLES=ON \
-DBUILD_DOCS=ON \
-DDOWNLOAD_BODY_COCO_MODEL=ON \
-DDOWNLOAD_BODY_MPI_MODEL=ON \
-DCaffe_INCLUDE_DIRS="" \
-DCaffe_LIBS=""\
-DBUILD_PYTHON=ON ../

You can pass other parameters as well.
This worked for me. Also check if you have installed caffe properly, without any errors
(I did get a few errors in caffe, resolved them while installing Openpose)

Was this page helpful?
0 / 5 - 0 ratings