2017-07-09 130 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