其他分享
首页 > 其他分享> > CMAKE编译ORB-SLAM2时,报错找不到Eigen3,报错Eigen3 found!之类错误(已解决)

CMAKE编译ORB-SLAM2时,报错找不到Eigen3,报错Eigen3 found!之类错误(已解决)

作者:互联网

当编译执行到./build.sh文件时,报错Eigen3 found!之类错误。

解决方法:

在主文件夹下直接查找FindEigen3.cmake文件,然后把它复制到报错的CMakeLists.txt对应的路径下/src中,在CMakeLists.txt中,

添加:

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})

include_directories($ {EIGEN3_INCLUDE_DIRS})

当编译执行到./build_ros.sh文件时,报错Eigen3 found!

解决方法:

在主文件夹下直接查找FindEigen3.cmake文件,然后把它复制到报错的orb-slam2/Examples/ROS/ORB-SLAM21/CMakeLists.txt对应的路径下/src中,在CMakeLists.txt中,

添加:

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})

include_directories($ {EIGEN3_INCLUDE_DIRS})

标签:CMakeLists,CMAKE,报错,Eigen3,found,txt
来源: https://blog.csdn.net/qq_43647590/article/details/120354052