gisbi-kim / FAST_LIO_SLAM

LiDAR SLAM = FAST-LIO + Scan Context
494 stars 74 forks source link

Build error with EIGEN #23

Closed infinitysky closed 2 years ago

infinitysky commented 2 years ago
  from /home/ubuntu/slam_test/ws_livox/src/FAST_LIO_SLAM/SC-PGO/src/laserMapping.cpp:53:
/usr/local/include/eigen3/Eigen/src/Eigenvalues/Tridiagonalization.h:550:5: error: ‘EIGEN_CONSTEXPR’ does not name a type; did you mean ‘EIGEN_HAS_CONSTEXPR’?
  550 |     EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT { return m_matrix.rows(); }
      |     ^~~~~~~~~~~~~~~ 

Hi sir I am trying to rebuild this project with the following environment Ubuntu 20.04 TLS ROS Noetic Eigen 3.4.0

I can build and run the current FAST_LIO, but when I start include your project, it will show me a loooong list of error message. mainly about Eigen

Could you help me to check the version of the Eigen ?

infinitysky commented 2 years ago

I think iresolved this issue. This issues caused by the library v3.4, after I installed a older version v.3.3.x problem resolved

mayuxiang1995 commented 1 year ago

I change the #include <eigen3/Eigen/Dense> to #include <Eigen/Eigen> to solve this problem