CMake 错误 在构建时.项目使用提升库

CMake error when building. Project uses boost libraries

本文关键字:项目 错误 构建 CMake      更新时间:2023-10-16

我已经下载了示例以在用c ++编写的开源模拟器中运行。我正在按照本教程来帮助我生成和运行示例。我已经完成了本教程中的大多数命令。但是当我尝试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