Giter VIP home page Giter VIP logo

Comments (8)

gineshidalgo99 avatar gineshidalgo99 commented on May 2, 2024 1

OK yeah, this is based on the old basic installer, the new installer way (using CMake) provides much higher configuration settings, following how big libraries do it (e.g., OpenCV, Caffe, etc.).

So please, check https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/installation.md#openpose-from-other-projects-ubuntu-and-mac for all the details.

from openpose.

gineshidalgo99 avatar gineshidalgo99 commented on May 2, 2024

This is from a Makefile file where I used the OpenPose binaries in a different project, I think you forgot to add the USE_CAFFE define in your cmake, you can get the required defines from my Makefile (there might be some duplication since I did it quickly, but it is working):

Perform make distribute -j8 on the OpenPose folder to get in ./distribute the include and lib folders. The Caffe lib and include are already in 3rdparty/caffe/distribute (used by OpenPose).

OpenPose (assuming its include and lib are located in ./3rdparty/openpose)

-Wl,-rpath=./3rdparty/openpose/lib -Wl,-Bdynamic -L./3rdparty/openpose/lib/ -lopenpose -DUSE_CAFFE

Caffe (assuming its include and lib are located in ./3rdparty/caffe/distribute)

-Wl,-rpath=./3rdparty/caffe/distribute/lib -Wl,-Bdynamic -L./3rdparty/caffe/distribute/lib/ -lcaffe -DUSE_CUDNN

OpenCV (add more OpenCV flags if you need them)

-lopencv_core -lopencv_highgui -lopencv_imgproc -lopencv_contrib -lopencv_calib3d

CUDA, something like:

-I/usr/local/cuda-8.0/include/ -L/usr/local/cuda-8.0/lib64 -lcudart -lcublas -lcurand

3rdparty that Caffe uses

-lcudnn -lglog -lgflags -lboost_system -lboost_filesystem -lm -lboost_thread

Other required

-pthread -fPIC -std=c++11 -fopenmp

Optimization flags (optional)

-DNDEBUG -O3 -march=native

Let me know whether it works

from openpose.

ShihanWang avatar ShihanWang commented on May 2, 2024

Thank you very much. I have solved the problem and I found that:

  1. In my CMakeLists.txt, I need to change the Caffe directory: SET(caffe_DIR ${OpenPose_DIR}/3rdparty/caffe/distribute);
  2. I delete "#ifdef USE_CAFFE" in some files named as xxCaffe.hpp in openpose/include/.
    Then I make openpose again and everything is OK. Without the 2nd step, I will have the same problem.But I do not know what is the effect of my change, maybe I just need to add USE_CAFFE in my CMakeLists.txt.

from openpose.

gineshidalgo99 avatar gineshidalgo99 commented on May 2, 2024

Thank you for posting it! Closing this then.

EDITED: As an extra detail, instead of using this CMake example to construct the cmake file, I'd rather consider file example in the doc/installation_cmake.md document itself.

from openpose.

yorgosk avatar yorgosk commented on May 2, 2024

Hello!

I am trying to use my current OpenPose installation for the compilation of another project (for the https://github.com/stevenjj/openpose_ros to be specific). I have build and tested my OpenPose installation as the documentation instructs me and everything seems fine, however I cannot do make distribute. I have searched the documentation for a solution, but I am probably missing something.
Since the instructions above are about one and a half year old @gineshidalgo99 can you please give me an update?

Thanks!

from openpose.

gineshidalgo99 avatar gineshidalgo99 commented on May 2, 2024

Hi, I believe doc/install.md has an explanation on how to include the library through CMake

You talk about make distribute, could you quickly send me a link to the instructions (in current master OP) where it says make distribute? So I can update that part.

from openpose.

yorgosk avatar yorgosk commented on May 2, 2024

Okay, I'll check doc/install.md again.

The instructions in current master do not mention anything about make distribute, as far as I have read them. I first read about it here and I figured that since it used to be an option but apparently it is no more, I better ask you for a pointer to the thing that you substituted it with.

from openpose.

burnzzz avatar burnzzz commented on May 2, 2024

https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/installation.md#openpose-from-other-projects-ubuntu-and-mac is dead link.

from openpose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.