cmake助力麻烦,实习生无法安装dlib

时间:2016-07-18 16:57:09

标签: cmake python-3.5 boost-python dlib

不知何故,当安装python3.5时,cmake无法找到它。 我试图安装lib,当我这样做时,我得到了这个错误。我有boost-python安装。

CMake Warning at 
/usr/local/Cellar/cmake/3.6.0_1/share/cmake/Modules/FindBoost.cmake:1459 (message):
  No header defined for python-py34; skipping header check
Call Stack (most recent call first):
  /Users/pascaljardin/Desktop/dlib-19.0/dlib/add_python_module:60 (FIND_PACKAGE)
  CMakeLists.txt:6 (include)
-- Could NOT find Boost
-- Could NOT find Boost
-- Found PythonLibs: /usr/local/Cellar/python3/3.5.2/Frameworks/Python.framework/Versions/3.5/lib/libpython3.5.dylib (found suitable version "3.5.2", minimum required is "3.4")

--  *****************************************************************************************************
--  To compile Boost.Python yourself download boost from boost.org and then go into the boost root folder
--  and run these commands:
--     ./bootstrap.sh --with-libraries=python
--     ./b2
--     sudo ./b2 install
--  *****************************************************************************************************
CMake Error at /Users/pascaljardin/Desktop/dlib-19.0/dlib/add_python_module:108 (message):
   Boost python library not found.
Call Stack (most recent call first):
  CMakeLists.txt:6 (include)
-- Configuring incomplete, errors occurred!
See also "/Users/pascaljardin/Desktop/dlib-19.0/tools/python/build/CMakeFiles/CMakeOutput.log".
error: cmake configuration failed!

从头开始。这就是我在macbook air os x el captain版本10.11.5

上安装所有内容的方法
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew update
$ brew install python3
$ brew install boost --with-python3
$ brew install cmake

当我安装所有东西时,我有什么不对的吗?我真的不知道为什么会这样,我真的想用

安装dlib
python3 setup.py install
在lib文件夹中。

或者有更简单的方法用python3安装dlib吗?

1 个答案:

答案 0 :(得分:1)

你忽略了安装boost :: python。

var data = JSON.parse(responseBody);
if(data.reponse.responseCode == '400'){
// do stuff
}

前一段时间,Homebrew将它们分成两个包。