首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >cmake找不到eigen3包

cmake找不到eigen3包
EN

Ask Ubuntu用户
提问于 2020-08-08 15:22:12
回答 1查看 5.5K关注 0票数 1

在软件安装过程中,在安装本征3.2之后,我得到了这个cmake错误,有什么明确的建议来修正它吗?

代码语言:javascript
复制
-VirtualBox:~/ceres_build$ cmake . ../ceres-solver/ -DMINIGLOG=ON -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detected Ceres being used as a git submodule, adding commit hook for Gerrit to: /home/ceres-solver/.git
-- Detected Ceres version: 2.0.0 from /home/ceres-solver/include/ceres/version.h
-- Detected available Ceres threading models: [CXX_THREADS, OPENMP, NO_THREADS]
-- Building with C++14
CMake Error at CMakeLists.txt:242 (find_package):
  Could not find a package configuration file provided by "Eigen3" (requested
  version 3.3) with any of the following names:

    Eigen3Config.cmake
    eigen3-config.cmake

  Add the installation prefix of "Eigen3" to CMAKE_PREFIX_PATH or set
  "Eigen3_DIR" to a directory containing one of the above files.  If "Eigen3"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
See also "/home/ceres_build/CMakeFiles/CMakeOutput.log".
EN

回答 1

Ask Ubuntu用户

发布于 2020-08-08 15:35:13

您必须通过以下方式安装用于特征3的开发包

代码语言:javascript
复制
sudo apt-add-repository universe
sudo apt-get install libeigen3-dev

再试一次。

还请注意,谷神星本身包含在Ubuntu存储库中。你必须用以下方式安装它:

代码语言:javascript
复制
sudo apt-get install libceres-dev

所以您不需要自己编译它。

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1265526

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档