首先确保Eigen已经安装了,然后找到Eigen所在的路径。我的在/usr/include/eigen3这里
然后将报错的文件中的下面句子 include <unsupported/Eigen/MatrixFunctions> 改成 include </usr/include/eigen3/unsupported/Eigen/MatrixFunctions>
include <unsupported/Eigen/MatrixFunctions>
include </usr/include/eigen3/unsupported/Eigen/MatrixFunctions>