【问题标题】:boost library not found未找到提升库
【发布时间】:2017-12-13 11:39:53
【问题描述】:
  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 时遇到错误..我需要帮助来创建构建但遇到此错误... 我已经安装了 Visual Studio 2017 和 cmake 3.8.2 和 boost 版本 1_64_0。

经过多次尝试后,我使用此链接指向https://public.kitware.com/Bug/view.php?id=11187 将我的 findboost.make 文件替换为 http://www.cmake.org/pipermail/cmake/2007-May/014131.html

现在构建完成,但没有创建 .exe 文件。

请帮助我了解构建过程以及完成构建所需的步骤或配置

【问题讨论】:

  • 您的具体问题是什么?
  • 我通过安装 boost 库并强制它们根据您的系统配置生成输出解决了这个问题。

标签: c++ windows boost


【解决方案1】:

下载boost并解压配置

3.1 擦bootstrap.ksh

3.2 运行 b2.exe address-model=32,64 --build-type=complete(大约需要 2 小时)

3.3 Stage 文件夹将在同一文件夹中更新

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-04-18
    • 2018-01-20
    • 2020-07-27
    • 1970-01-01
    • 2012-10-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多