2016-07-18 9 views
0

どうやらboostでpython3.5をインストールしても、cmakeはそれを見つけることができません。 私はlibをインストールしようとしていますが、私はこのエラーが発生します。私はboost - pythonをインストールしました。cmake boost問題とインターンはdlibをインストールできない

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! 

から開始。これは、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 

エルキャプテンのバージョンxは、私は私のMacBookの空気OS上のすべてをインストールする方法ですので、私はすべてのものをインストールしていたとき、私は右やっていないよ何かはありますか?私は本当になぜこれが起こっているのかわからないので、libフォルダに

python3 setup.py install 

を使用してdlibをインストールしたいと思っています。

または、python3でdlibをインストールする方が簡単ですか?

+0

あなたのシステムには、どのような拡張Pythonライブラリ名がありますか? – zaufi

+0

も参照してください:https://gitlab.kitware.com/cmake/cmake/merge_requests/35 – zaufi

+0

私はブレンダー1.60を使用しています。これはブレンダー2.77 –

答えて

1

あなたはboost :: pythonのインストールを怠りました。

brew install boost-python --with-python3 

いくつかの時間前に、ホームブリューはそれらを2つのパッケージに吐き出しました。

+0

にありがとう!私はpython3 setup.pyをインストールするときに –

+0

をインストールする [100%] CXX共有ライブラリをリンクするdlib.so アーキテクチャx86_64の未定義シンボル: "boost: :python :: detail :: init_module(PyModuleDef&、void()()) "、参照先: dlib.cpp.oの_PyInit_dlib ld:アーキテクチャx86_64のシンボルが見つかりません clang:エラー:リンカーコマンドが失敗しました make [2]:** [dlib.so]エラー1 make [1]:*** [CMakeFiles/dlib_.dir/all]エラー2 make: *** [all] Error 2 エラー:cmakeビルドに失敗しました! –

+0

これは、あなたのプロジェクトに2つの異なるpythonインストールを使用しようとしている可能性があります。別のPythonをインストールした場合(Homebrew経由など)、プロジェクトとboost :: pythonが同じpythonを使用していることを確認する必要があります。 – nega

関連する問題