构建时出现CMake错误。 Project使用boost库

时间:2013-01-29 08:18:03

标签: 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!

1 个答案:

答案 0 :(得分:0)

尝试使用以下方法完成此过程:

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