FORTH-ModelBasedTracker / PyOpenPose

Python bindings for the Openpose library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Boost libraries not found.

stephennspencer opened this issue · comments

Building on CentOS 7.
I've built Boost 1.66 and set BOOST_ROOT and BOOST_LIBRARYDIR environment variables, as well as OPENPOSE_ROOT appropriately.

What do I need to change to get rid of this error?

--- start ---
CMake Error at /usr/local/share/cmake-3.10/Modules/FindBoost.cmake:1928 (message):
Unable to find the requested Boost libraries.

Boost version: 1.53.0

Boost include path: /usr/include

Could not find the following Boost libraries:

      boost_python-py27

Some (but not all) of the required Boost libraries were found. You may
need to install these additional Boost libraries. Alternatively, set
BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
to the location of Boost.
--- end ---

Thank you.

Is boost built with python2.7 support? the missing library should be in the boost installation folder or the system folder if you made a system wide install.

Yes, Python 2.7 is installed and is the default Python installation.

I did "./bootstrap.sh --prefix=/usr/local/boost166" and then "./b2 install" to build and install Boost, and the /usr/local/boost166 folder contains the "include" and "lib" folders.

If the libboost_python.so is built correctly try to change the python-py27 in the find_package line for boost in the CMakeLists.txt to "python"

By the way I have not tested PyOpenpose with boost166 so let me know if it works!

Changing "python-py27" to "python" worked.

Now it can't find "-lcaffe".

I have /etc/ld.so.conf.d/caffe-x86_64.conf with the proper path to the lib folder, but that's not helping.

How to resolve this error?

Thank you.

Caffe installation folders are expected to be under OPENPOSE_ROOT. Check lines 70 and 71 in the CMakeLists.txt.

Either change the paths to the installation folder for your caffe or set the OPENPOSE_ROOT as needed.