c++ - 提升 1.69 和 CMake 3.13
问题描述
我刚刚更新了我的 MSYS2 并收到了新版本的 boost 库 1.69.0。但是在这个更新之后,必须支持这个 boost 版本的 CMake 3.13.1 对我说:
CMake Error at C:/Program Files/JetBrains/CLion 2018.2.6/bin/cmake/win/share/cmake-3.13/Modules/FindBoost.cmake:2100 (message):
Unable to find the requested Boost libraries.
Boost version: 1.69.0
Boost include path: D:/msys64/mingw64/include
Could not find the following Boost libraries:
boost_chrono
boost_filesystem
boost_system
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.
正如我所见,CMake 找到了 boost 1.69.0 但没有找到 Boost 库。为什么?使用 Boost 1.68.0 一切都很完美。
问题解决了:
今天我在 MSYS 中检查了更新并收到了更新的包
mingw-w64-x86_64-boost-1.69.0-2
之后 CMake 成功找到了所有 Boost 1.69.0 库
解决方案
推荐阅读
- firebase-authentication - Firebase 身份验证是否可用于 blazor?
- security - K8S - 使用 Prometheus 以安全的方式监控另一个 prometheus 实例
- python - Django rest framework show or hide API objects with checkbox in admin
- java - t0 如何替换数组或对象元素并删除未使用的重复元素
- php - OS X 10.15.1 Catalina 上的 PHP 7.1 和 Brew 上的 PHP 7.3 冲突
- typescript - 如何根据值过滤记录键?
- reactjs - 有没有办法检查用户在 React 中所做的任何状态更改?
- python - 如何正确包装使用 qt 和 shiboken2 的 c++ 库?
- jquery - 表单未提交,单击提交按钮时没有任何反应
- node.js - 如何配置 babelify 将 javascript 文件转换为兼容 IE 11