2016-02-11 103 views
0

我想這裏描述建立來自Caffe窗戶尋找提升: https://github.com/willyd/caffe-windows-dependencies問題的cmake

要做到這一點,我需要下載升壓(我有,版本1.60.0),我解壓到C :\升壓\ boost_1_60_0 在我的環境變量,我已設置:

BOOST_INCLUDEDIR:C:\升壓\ boost_1_60_0 \升壓

BOOST_LIBRARYDIR:C:\升壓\ boost_1_60_0 \庫

BOOST_RO OT:C:\升壓\ boost_1_60_0

我嘗試運行CMake的GUI,其中包括:

來源:C:/庫/朱古力/朱古力窗口依賴性

體形:C:\庫\朱古力\集結朱古力窗口依賴性

然而,它失敗,出現錯誤:

CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.3/Modules/FindBoost.cmake:1245 (message): 
    Unable to find the requested Boost libraries. 

    Boost version: 1.60.0 

    Boost include path: C:/Boost/boost_1_60_0 

    Could not find the following Boost libraries: 

      boost_system 
      boost_thread 
      boost_filesystem 
      boost_date_time 

    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. 
Call Stack (most recent call first): 
    CMakeLists.txt:11 (find_package) 


CMake Error at CMakeLists.txt:107 (set): 
    Syntax error in cmake code at 

    C:/libs/caffe/caffe-windows-dependencies/CMakeLists.txt:107 

    when parsing string 

    ${CMAKE_INSTALL_ 

    syntax error, unexpected $end, expecting } (16) 

任何人有我要去哪裏錯了什麼想法?

+0

請輸入'cmake -DBoost_DEBUG = ON '。 – Tsyvarev

+2

除非你做了一些不尋常的事情,庫dir不正確。您需要構建這些庫,然後指定包含它們的目錄。 – llonesmiz

回答

1

顯然我只使用頭文件。 我解決了這個問題,用預先構建的二進制文件替換boost文件夾,並且所有工作都再次運行。