TixiaoShan / LIO-SAM

LIO-SAM: Tightly-coupled Lidar Inertial Odometry via Smoothing and Mapping
BSD 3-Clause "New" or "Revised" License
3.45k stars 1.26k forks source link

[ERROR]: Static assertion failed: Error: GTSAM was built against a different version of Eigen #475

Open Angelgares opened 8 months ago

Angelgares commented 8 months ago

Captura de pantalla de 2024-02-17 19-18-17 Hello. I'm trying to use the repository on Ubuntu 20.04 LTS using ROS Noetic, but I'm having issues when running "catkin build" on the src folder. It throws the error attached in the image. For the installation of the Gtsam library, I have cloned its official repository from GitHub and followed the guidelines on its official page. Does anyone know how to solve this problem?

TheSeanParker commented 6 months ago

Captura de pantalla de 2024-02-17 19-18-17 Hello. I'm trying to use the repository on Ubuntu 20.04 LTS using ROS Noetic, but I'm having issues when running "catkin build" on the src folder. It throws the error attached in the image. For the installation of the Gtsam library, I have cloned its official repository from GitHub and followed the guidelines on its official page. Does anyone know how to solve this problem?

because the ros have a version of eigen,gtsam also have the eigen,this error because the cmake uses the eigen of gtsam not ros.So change the CMakeLists as follow if(GTSAM_USE_SYSTEM_EIGEN) find_package(Eigen3 REQUIRED) …………………………………………添加……………………………………… set(GTSAM_USE_SYSTEM_EIGEN ON) https://zhuanlan.zhihu.com/p/694553528