2017-07-09 62 views
-5
boost_system 
      boost_filesystem 
      boost_thread 
      boost_date_time 
      boost_chrono 
      boost_regex 
      boost_serialization 
      boost_program_options 

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

試圖建立一個Windows應用程序,並獲得上述錯誤時使用boost..i需要幫助創建構建,但運行到這個錯誤... 我已經安裝了Visual Studio 2017年和CMake的3.8 .2使用boost版本1_64_0。Boost庫沒有發現

經過多次嘗試,我用這個鏈接https://public.kitware.com/Bug/view.php?id=11187 取代我findboost.make文件,http://www.cmake.org/pipermail/cmake/2007-May/014131.html

現在構建完成,但沒有創建.exe文件。

請幫助我理解構建過程和失蹤步驟或配置來完成構建

+1

什麼是您的* *的具體問題? –

+0

我通過安裝boost庫並強制它們根據您的系統配置生成輸出來解決此問題。 – AutoMEta

回答

0

下載升壓並解壓縮和配置

3.1擦bootstrap.ksh

3.2運行b2.exe address-model = 32,64 --build-type = complete(大約需要2小時)

3.3階段文件夾將在同一個文件夾中更新

3.2低於設定變量

BOOST_INCLUDEDIR D:\Softwares\boost_1_64_0  
    BOOST_LIBRARYDIR D:\Softwares\boost_1_64_0\stage\lib 
    Boost_LIBRARIES D:\Softwares\boost_1_64_0\stage\lib