jrkwon / openpose

Other
7 stars 2 forks source link

Protobuf compatibility query #1

Closed sophia-wright-blue closed 5 years ago

sophia-wright-blue commented 5 years ago

Hello Professor,

Issue Summary

Thank you for adding your comments on installing openpose in a condo environment. I followed your instructions, and got an error related to protobuf. I'm asking this question because on the OpenPose website (https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/installation.md), they mention that "Anaconda includes a Protobuf version that is incompatible with Caffe", and I'm wondering if there is a particular version of protobuf to be installed.

This issue has not been explicitly addressed on the Caffe website.

Here is the error:

Executed Command (if any)

(openpose) $ make -j`nproc`

OpenPose Output (if any)

/anaconda/envs/openpose/include/google/protobuf/stubs/mutex.h:58:8: error: ‘mutex’ in namespace ‘std’ does not name a type
   std::mutex mu_;
        ^
/anaconda/envs/openpose/include/google/protobuf/stubs/mutex.h: In member function ‘void google::protobuf::internal::WrappedMutex::Lock()’:
/anaconda/envs/openpose/include/google/protobuf/stubs/mutex.h:51:17: error: ‘mu_’ was not declared in this scope
   void Lock() { mu_.lock(); }
                 ^
/anaconda/envs/openpose/include/google/protobuf/stubs/mutex.h: In member function ‘void google::protobuf::internal::WrappedMutex::Unlock()’:
/anaconda/envs/openpose/include/google/protobuf/stubs/mutex.h:52:19: error: ‘mu_’ was not declared in this scope
   void Unlock() { mu_.unlock(); }

Type of Issue

Your System Configuration

  1. OpenPose version: 1.3.0

  2. General configuration:

    • Installation mode: CMake, sh script, manual Makefile installation, ... (Ubuntu);

    • Operating system (lsb_release -a in Ubuntu): Distributor ID: Ubuntu Description: Ubuntu 16.04.5 LTS Release: 16.04 Codename: xenial

    • Release or Debug mode? (by defualt: release): Release

    • Compiler : gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609

  3. Non-default settings:

    • 3-D Reconstruction module added? (by default: no): No
    • Any other custom CMake configuration with respect to the default version? (by default: no): No
  4. 3rd-party software:

    • Caffe version: Default from OpenPose
    • CMake version : cmake version 3.5.1
    • OpenCV version: 3.4

Thank you. I'd greatly appreciate your help resolving this issue.

sophia-wright-blue commented 5 years ago

solved it, this was an issue with the protobuf version installed in conda. removed it and used the system protobuf version,