使用brew安装boost时缺少boost_signals库

时间:2019-03-29 16:14:19

标签: c++ macos boost homebrew

使用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

有指针吗?

非常感谢您的时间!

1 个答案:

答案 0 :(得分:2)

今天早上我遇到了同样的问题。从增强版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]

相关问题