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

我下载了示例,以在用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

https://stackoverflow.com/questions/14578376/

相关文章:

python - AttributeError : 'int' object has no attr

c++ - GTKmm Hello World 编译错误

android - 我开始 Activity 后,应用程序即被终止

compiler-errors - 收到此错误LNK2019,不知道为什么

c++ - Qt : Error while compiling Qt 5.0.1 on Windo

visual-studio-2010 - 使用Microsoft Visual Studio 201

java - issueCommand(java.lang.String,int) 在 com.su

c++ - 数组下标错误的类型 'int[int]'无效

jquery - Eclipse不了解jQuery

c++ - 使用G++的模板的编译错误,使用llvm编译正常