Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Angelgares opened this issue Feb 17, 2024 · 1 comment

Comments

@Angelgares
Copy link

Angelgares commented Feb 17, 2024

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants