【问题标题】:boost_signals library missing when installing boost with brew使用 brew 安装 boost 时缺少 boost_signals 库
【发布时间】:2019-08-20 15:16:20
【问题描述】:

使用 brew 安装 boost 后:

brew install boost
brew link --overwrite boost

我发现没有安装库 boost_signals。

当我使用 CMake 构建另一个依赖于 boost_signals 库的项目时,我收到以下错误消息:

  Unable to find the requested Boost libraries.

  Boost version: 1.69.0

  Boost include path: /usr/local/include

  Could not find the following Boost libraries:

          boost_signals

  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.

我检查了我的 /usr/local/lib,我看到了许多 boost 库,但找不到 lib boost_signals.dylib。

我不确定如何安装上述错误建议的其他 Boost 库。

我的机器运行的是 macOS High Sierra 10.13.6

任何指针?

非常感谢您的宝贵时间!

【问题讨论】:

    标签: c++ macos boost homebrew


    【解决方案1】:

    今天早上我也遇到了同样的问题。来自 boost 1.69 发行说明:

    已停产的图书馆 信号 (v1) 现已移除。它在 1.68 中被宣布删除,在 1.54 中被宣布弃用。 Boost 1.68 是提供这个库的最后一个版本。鼓励用户改用 Signals2。 Boost 社区感谢 Douglas Gregor 在 Signals 上所做的工作,他为用户提供了良好的服务,也启发了 Signals2。

    [https://www.boost.org/users/history/version_1_69_0.html][1]

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-04
      • 1970-01-01
      • 2019-11-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多