c++ - cmake 命令找不到 boost 库

标签 c++ boost

我正在使用 ubuntu 终端运行 cmake 。 但是,找不到 boost 库。

  The following Boost libraries could not be found:

          boost_program_options
          boost_signals
          boost_serialization
          boost_unit_test_framework

使用如下命令:

cmake . -DBoost_USE_STATIC_LIBS=ON

问题仍然存在,而且,如果我使用 location boost_unit_test_framework,我不会得到任何结果。

如何安装这些引用?

最佳答案

您可以使用 apt-get 命令(需要 sudo)

sudo apt-get install libboost-all-dev

How to Install boost on Ubuntu?

关于c++ - cmake 命令找不到 boost 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39009271/

相关文章:

c++ - 将 C++ 类与 LUA 表连接

c++ - boost 绑定(bind)编译错误

c++ - 进程管理代码在 Linux 和 Windows 上的行为不同 - 为什么?

C++ boost : undefined reference to `boost::system::detail::system_category_ncx()`

c++ - boost 单元测试模板会产生臃肿的代码。如何避免这种情况?

c++ - 带 bo​​ost asio 的多线程服务器

c++ - 在 ARM 上混合使用 uint64_t 和 long 会产生奇怪的结果

C++ 我不能使用 fstream 变量保存到文件

c++ - 使用boost的scoped_allocator_adaptor作为共享内存容器

c++ - 不粘 cout 修饰符?