2010-12-14 65 views
0

我嘗試編譯程序通過CMake,但我得到的股票與此錯誤:cmake的使用錯誤的CBOOST庫

Unable to find the requested Boost libraries. 

    Boost version: 1.34.1 

    Boost include path: /usr/include 

    Detected version of Boost is too old. Requested version was 1.37 (or 
    newer). 

    The following Boost libraries could not be found: 

      boost_program_options 
      boost_filesystem 

    No Boost libraries were found. You may need to set Boost_LIBRARYDIR to the 
    directory containing Boost libraries or BOOST_ROOT to the location of 
    Boost. 

我在/ home的/ dev/boost_1_45_0已經安裝了新的動力包。

但總是當我嘗試再次運行cmake時,仍然出現同樣的錯誤。

我還設置

export BOOST_ROOT=/home/dev/boost_1_45_0 

但是,當我執行cd ${BOOST_ROOT}我在正確的文件夾。

任何人都可以幫助我嗎?謝謝!

回答

0

嘗試刪除你的構建樹,然後運行:

cmake -DBOOST_ROOT=/home/dev/boost_1_45_0 path/to/src path/to/build