2016-10-13 27 views
1

OpenGMライブラリをインストールしようとしています。 CMakeのを使用しながら、しかし、私は次のエラーを取得する:CMakeがboost_threadを見つけません

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

    Boost version: 1.62.0 

    Boost include path: /usr/local/include 

    Could not find the following Boost libraries: 

      boost_thread 

    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. 

私はしかし、:

lrwxr-xr-x 1 Florian admin 36 13 oct 19:11 boost -> ../Cellar/boost/1.62.0/include/boost 

/usr/local/include 

ls -l 

を私は次の行を取得します

右のディレクトリにあります。

で:

/usr/local/lib 

私が持っている:だから

libboost_thread-mt.a    
libboost_thread-mt.dylib 

、boost_threadライブラリが存在しないようです...、私が持っているブーストに関連CMakeの構成について

Boost_DIR      Boost_DIR-NOTFOUND       
Boost_INCLUDE_DIR    /usr/local/include       
Boost_LIBRARY_DIR_DEBUG   /usr/local/lib        
Boost_LIBRARY_DIR_RELEASE  /usr/local/lib        
Boost_PYTHON_LIBRARY_DEBUG  /usr/local/lib/libboost_python.dylib   
Boost_PYTHON_LIBRARY_RELEASE  /usr/local/lib/libboost_python.dylib 

それは助けることができる場合は、私は、Mac OSXの下だとブーストが貫通設置されました:

brew install boost --with-python 
brew install boost-python 
+0

あなたのCMakeファイルを確認するのに役立つものは、 – wasthishelpful

答えて

0

私はONのn CMakeLists.txtにブーストマルチスレッドフラグを設定することで、このエラーを処理するために管理しています。

関連する問題