izhengfan / izhengfan.github.io

My homepage and blog.
https://fzheng.me
MIT License
31 stars 7 forks source link

a question about SLAM Implementation: Bundle Adjustment with g2o #8

Open suzhengpeng opened 5 years ago

suzhengpeng commented 5 years ago

I compile the ba_demo on my laptop but it report an error as follows:

image

and cmake report it can find eigen3

image

izhengfan commented 5 years ago

Hello, the different versions of Eigen might sometimes confuse the find_package command of cmake. So I suggest you just put /usr/include/eigen3 in include_directories of your CMakeLists.txt