Openpose: Compilation/installation error - CMake

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

Issue Summary

[ 93%] Linking CXX executable extract_features
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to TIFFSetField@LIBTIFF_4.0' /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference toTIFFSetWarningHandler@LIBTIFF_4.0'
/usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4.9: undefined reference to `TIFFSetErrorHandler@LIBTIFF_4.0'
collect2: error: ld returned 1 exit status
tools/CMakeFiles/extract_features.dir/build.make:134: recipe for target 'tools/extract_features' failed
make[5]: * [tools/extract_features] Error 1
CMakeFiles/Makefile2:809: recipe for target 'tools/CMakeFiles/extract_features.dir/all' failed
make[4]:
[tools/CMakeFiles/extract_features.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make[3]:
[all] Error 2
CMakeFiles/openpose_caffe.dir/build.make:110: recipe for target 'caffe/src/openpose_caffe-stamp/openpose_caffe-build' failed
make[2]:
[caffe/src/openpose_caffe-stamp/openpose_caffe-build] Error 2
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/openpose_caffe.dir/all' failed
make[1]:
[CMakeFiles/openpose_caffe.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *
[all] Error 2

Your System Configuration

Operating system :ubuntu16
Installation mode: CMake
CUDA version:8
*cuDNN version
:5.1
GPU model:1070
*
Caffe version: Default from OpenPose.
OpenCV version: pre-compiled apt-get install libopencv-dev (only Ubuntu)

help wantequestion

Most helpful comment

I have this error:-(

Scanning dependencies of target openpose_caffe
[ 12%] Creating directories for 'openpose_caffe'
[ 25%] No download step for 'openpose_caffe'
[ 37%] No patch step for 'openpose_caffe'
[ 50%] No update step for 'openpose_caffe'
[ 62%] Performing configure step for 'openpose_caffe'
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- system
-- thread
-- filesystem
-- chrono
-- date_time
-- atomic
-- Found gflags (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so)
-- Found glog (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so)
-- Found PROTOBUF Compiler: /usr/bin/protoc
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- HDF5: Using hdf5 compiler wrapper to determine CXX configuration
-- CUDA detected: 8.0
-- Added CUDA NVCC flags for: sm_35
-- Cuda + Boost 1.55: Applying noinline work around
-- Found Atlas (include: /usr/include library: /usr/lib/libatlas.so lapack: /usr/lib/liblapack.so
CMake Error at CMakeLists.txt:85 (list):
list sub-command REMOVE_ITEM requires list to be present.

CMake Error at src/caffe/CMakeLists.txt:30 (target_compile_definitions):
target_compile_definitions called with incorrect number of arguments

-- Python interface is disabled or not all required dependencies found. Building without it...

-- ***** Caffe Configuration Summary *****
-- General:
-- Version : 1.0.0
-- Git : 1.0-112-g9453eb0
-- System : Linux
-- C++ compiler : /BS/fashion_dataset/work/linuxbrew/bin/c++
-- Release CXX flags : -O3 -DNDEBUG -fPIC -Wall -Wno-sign-compare -Wno-uninitialized
-- Debug CXX flags : -g -fPIC -Wall -Wno-sign-compare -Wno-uninitialized

-- Build type : Release

-- BUILD_SHARED_LIBS : ON
-- BUILD_python : OFF
-- BUILD_matlab : OFF
-- BUILD_docs : OFF
-- CPU_ONLY : OFF
-- USE_OPENCV : OFF
-- USE_LEVELDB : OFF
-- USE_LMDB : OFF
-- USE_NCCL : OFF

-- ALLOW_LMDB_NOLOCK : OFF

-- Dependencies:
-- BLAS : Yes (Atlas)
-- Boost : Yes (ver. 1.55)
-- glog : Yes
-- gflags : Yes
-- protobuf : Yes (ver. 2.6.1)

-- CUDA : Yes (ver. 8.0)

-- NVIDIA CUDA:
-- Target GPU(s) : Auto
-- GPU arch(s) : sm_35

-- cuDNN : Not found

-- Install:

-- Install path : /BS/fashion_dataset/work/openpose/build/caffe

-- Configuring incomplete, errors occurred!
See also "/BS/fashion_dataset/work/openpose/build/caffe/src/openpose_caffe-build/CMakeFiles/CMakeOutput.log".
See also "/BS/fashion_dataset/work/openpose/build/caffe/src/openpose_caffe-build/CMakeFiles/CMakeError.log".
CMakeFiles/openpose_caffe.dir/build.make:105: recipe for target 'caffe/src/openpose_caffe-stamp/openpose_caffe-configure' failed
make[2]: * [caffe/src/openpose_caffe-stamp/openpose_caffe-configure] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/openpose_caffe.dir/all' failed
make[1]:
[CMakeFiles/openpose_caffe.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *
* [all] Error 2

All 15 comments

Check this issue.

@bikz05 I fixed this problem by reinstalling opencv3. change opencv dir at the cmake step

Thanks for the feed-back. For other users, this also seems to work: If you install libopencv using apt, install libtiff4 such as:

sudo apt-get install libtiff4-dev

I have this error:-(

Scanning dependencies of target openpose_caffe
[ 12%] Creating directories for 'openpose_caffe'
[ 25%] No download step for 'openpose_caffe'
[ 37%] No patch step for 'openpose_caffe'
[ 50%] No update step for 'openpose_caffe'
[ 62%] Performing configure step for 'openpose_caffe'
-- Boost version: 1.55.0
-- Found the following Boost libraries:
-- system
-- thread
-- filesystem
-- chrono
-- date_time
-- atomic
-- Found gflags (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so)
-- Found glog (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so)
-- Found PROTOBUF Compiler: /usr/bin/protoc
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- HDF5: Using hdf5 compiler wrapper to determine CXX configuration
-- CUDA detected: 8.0
-- Added CUDA NVCC flags for: sm_35
-- Cuda + Boost 1.55: Applying noinline work around
-- Found Atlas (include: /usr/include library: /usr/lib/libatlas.so lapack: /usr/lib/liblapack.so
CMake Error at CMakeLists.txt:85 (list):
list sub-command REMOVE_ITEM requires list to be present.

CMake Error at src/caffe/CMakeLists.txt:30 (target_compile_definitions):
target_compile_definitions called with incorrect number of arguments

-- Python interface is disabled or not all required dependencies found. Building without it...

-- ***** Caffe Configuration Summary *****
-- General:
-- Version : 1.0.0
-- Git : 1.0-112-g9453eb0
-- System : Linux
-- C++ compiler : /BS/fashion_dataset/work/linuxbrew/bin/c++
-- Release CXX flags : -O3 -DNDEBUG -fPIC -Wall -Wno-sign-compare -Wno-uninitialized
-- Debug CXX flags : -g -fPIC -Wall -Wno-sign-compare -Wno-uninitialized

-- Build type : Release

-- BUILD_SHARED_LIBS : ON
-- BUILD_python : OFF
-- BUILD_matlab : OFF
-- BUILD_docs : OFF
-- CPU_ONLY : OFF
-- USE_OPENCV : OFF
-- USE_LEVELDB : OFF
-- USE_LMDB : OFF
-- USE_NCCL : OFF

-- ALLOW_LMDB_NOLOCK : OFF

-- Dependencies:
-- BLAS : Yes (Atlas)
-- Boost : Yes (ver. 1.55)
-- glog : Yes
-- gflags : Yes
-- protobuf : Yes (ver. 2.6.1)

-- CUDA : Yes (ver. 8.0)

-- NVIDIA CUDA:
-- Target GPU(s) : Auto
-- GPU arch(s) : sm_35

-- cuDNN : Not found

-- Install:

-- Install path : /BS/fashion_dataset/work/openpose/build/caffe

-- Configuring incomplete, errors occurred!
See also "/BS/fashion_dataset/work/openpose/build/caffe/src/openpose_caffe-build/CMakeFiles/CMakeOutput.log".
See also "/BS/fashion_dataset/work/openpose/build/caffe/src/openpose_caffe-build/CMakeFiles/CMakeError.log".
CMakeFiles/openpose_caffe.dir/build.make:105: recipe for target 'caffe/src/openpose_caffe-stamp/openpose_caffe-configure' failed
make[2]: * [caffe/src/openpose_caffe-stamp/openpose_caffe-configure] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/openpose_caffe.dir/all' failed
make[1]:
[CMakeFiles/openpose_caffe.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *
* [all] Error 2

I have the same problems as you! @hosna
How did you solve them?

I couldnt solve it. I notice that while building it does not find my Cudnn. I solve that problem now I am getting the file was building with newer version of proto. I already changed my proto to different version as it was suggested in other posts but yet it is not working.

@hosna This appears to happen when your CUDA version is too old. Pascal cards require at least CUDA 8.0

Also tried on CUDA 9 same problem. I could not install the openpose.

Any news about this issue @hosna ?

@hosna Have you solved this problem?I have encountered the same problem.Do you know the specific solution?

HI,Have you solved this problem? @yurochang

Bump?

+1

I'm experiencing a similar issue. Did anyone solve it??

oh this is for so long time ago! I give up on openpose basically! So did not find an easy way to resolve it!

Was this page helpful?
0 / 5 - 0 ratings