[Solved] kalibr Compile Error: error: ‘Eigen::MatrixBase<Derived>::~Matrix

Error 1:
/usr/include/eigen3/Eigen/src/Core/util/Macros.h:885:23: error: ‘Eigen::MatrixBase<Derived>::~MatrixBase() [with Derived = Eigen::Matrix<double, -1, 1>]’ is protected
EIGEN_DEVICE_FUNC ~Derived() = default;
Solution:
/usr/include/eigen3/Eigen/src/Core/MatrixBase.h line 466
Change protected to public
Error 2:

Errors     << aslam_cv_python:make /home/lab/kalibr_workspace/logs/aslam_cv_python/build.make.002.log
Solution: in the File of kalibr/aslam_cv/aslam_imgproc/include/aslam/implementation/aslamcv_helper.hpp, Change CvSize to cv::Size

Done!

Read More: