Pangolin could not be found because dependency Eigen3 could not be found.

2023-05-16

报错如此下:

CMake Error at CMakeLists.txt:25 (find_package):
  Found package configuration file:

    /usr/local/lib/cmake/Pangolin/PangolinConfig.cmake

  but it set Pangolin_FOUND to FALSE so package "Pangolin" is considered to
  be NOT FOUND.  Reason given by package:

  Pangolin could not be found because dependency Eigen3 could not be found.



-- Configuring incomplete, errors occurred!
See also "/home/dongying/study/ManhattanSLAM/build/CMakeFiles/CMakeOutput.log".
See also "/home/dongying/study/ManhattanSLAM/build/CMakeFiles/CMakeError.log".
Makefile:940: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1

解决办法:
不需要重新安装Pangolin及Eigen,修改CMakeLists.txt如下:
在find_package(Eigen3 REQUIRED)后加NO_MUDULE,

find_package(Eigen3 REQUIRED NO_MODULE)

然后重建编译即可成功!

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Pangolin could not be found because dependency Eigen3 could not be found. 的相关文章

随机推荐