c++ - 生成时CMake错误。项目使用Boost库

标签 c++ boost compilation compiler-errors cmake

我下载了示例,以在用c++编写的开源模拟器中运行。我正在关注this教程来帮助我构建和运行示例。我已经完成了本教程中的大多数命令。但是,当我尝试cmake(这是本教程的最后一个步骤)时,出现此错误。

这是我要运行的示例:https://github.com/golems/grip-samples/tree/master/cubesTab

我得到的错误是在这里:

CMake Error at CMakeLists.txt:30 (find_package):
  Could not find module FindDARTExt.cmake or a configuration file for package
  DARTExt.

  Adjust CMAKE_MODULE_PATH to find FindDARTExt.cmake or set DARTExt_DIR to
  the directory containing a CMake configuration file for DARTExt.  The file
  will have one of the following names:

    DARTExtConfig.cmake
    dartext-config.cmake



CMake Error at /usr/share/cmake-2.8/Modules/FindBoost.cmake:1202 (message):
  Unable to find the requested Boost libraries.

  Boost version: 1.46.1

  Boost include path: /usr/include

  The following Boost libraries could not be found:

          boost_system
          boost_filesystem

  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.
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindDART.cmake:50 (find_package)
  CMakeLists.txt:31 (find_package)


-- Configuring incomplete, errors occurred!

最佳答案

尝试使用以下步骤完成该过程:

sudo apt-get install cmake libblkid-dev e2fslibs-dev libboost-all-dev libaudit-dev

关于c++ - 生成时CMake错误。项目使用Boost库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14578376/

相关文章:

c++ - Boost Graph Library 动态边权重

Android-Tools Gradle 插件

python - 如何为 python 3.6 安装 lpsolve?

c++ - 无法从字符串流接收信息

c++ - 错误 C3861 : 'roundf' : identifier not found

c++ - 引用 `boost::date_time` 枚举项的正确方法

hadoop - 如何在 Mahout in Action 中构建和执行示例

c++ - 调用处理程序数据的垃圾收集

c++ - 什么时候两个函数模板被认为是部分有序的,什么时候是不明确的?

c++ - Boost Asio tcp::resolver: 找不到服务