openpose icon indicating copy to clipboard operation
openpose copied to clipboard

Makefiles Error

Open Sajjad-s opened this issue 9 years ago • 8 comments

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

Sajjad-s avatar Aug 04 '17 15:08 Sajjad-s

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

whluo avatar Sep 01 '17 08:09 whluo

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

Sajjad-s avatar Sep 01 '17 10:09 Sajjad-s

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!

gineshidalgo99 avatar Sep 01 '17 13:09 gineshidalgo99

(Closed due no further answer)

gineshidalgo99 avatar Oct 03 '17 23:10 gineshidalgo99

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

yxchng avatar Apr 02 '18 09:04 yxchng

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.

erolrecep avatar May 30 '18 18:05 erolrecep

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.

MartinFultot avatar Nov 20 '18 17:11 MartinFultot

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="<my_caffe_path : /opt/caffe/include>"
-DCaffe_LIBS="<my_libcaffe.so_path : /opt/caffe/build/lib/libcaffe.so>"
-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)

mehtanaman-awl avatar Jun 25 '19 05:06 mehtanaman-awl