在之前的文章【环境配置】(四)opencv3中配置sfm模块已经说过如果配置ceres solver,这篇文章主要说下在使用ceres solver的时候遇到的问题。
1、使用ceres solver依赖于gflags,glog, Eigen3以及suitesparse,使用第一步首先要配置好相关的环境,include 和lib input
我的include配置如下:
E:\Opencv3\Ceres_Install\Ceres\include
E:\Opencv3\Ceres_Install\Eigen3\include\eigen3
E:\Opencv3\Ceres_Install\gflags\include
E:\Opencv3\Ceres_Install\glog\include
E:\Opencv3\Ceres_Install\suitesparse\include
lib配置如下:
包含路径:
E:\Opencv3\Ceres_Install\suitesparse\lib64\lapack_blas_windows
E:\Opencv3\Ceres_Install\Ceres\lib
E:\Opencv3\Ceres_Install\gflags\lib
E:\Opencv3\Ceres_Install\glog\lib
包含lib名称:
ceres.lib
gflags_nothreads_static.lib
gflags_static.lib
glog.lib
libblas.lib
liblapack.l