安装ceres-solver win10遇到Eigen安装的问题

1.无法打开包括文件: “Eigen/Core”:

去github上下载最新的源码

2.  "The Eigen/Array header does no longer exist in Eigen3. All that functionality has moved to Eigen/Core."

把Eigen/Array文件删掉

参考:https://github.com/MRPT/mrpt/issues/225 

3.编译好lib后,新建工程,测试ceres库能否使用,报错

1>ceressolver.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: void __cdecl google::LogMessageVoidify::operator&(class std::basic_ostream<char,struct std::char_traits<char> > &)" (__imp_??ILogMessageVoidify@google@@QEAAXAEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z)
1>ceressolver.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl google::LogMessageVoidify::LogMessageVoidify(void)" (__imp_??0LogMessageVoidify@google@@QEAA@XZ)
1>ceressolver.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: class std::basic_ostream<char,struct std::char_traits<char> > * __cdecl google::base::CheckOpMessageBuilder::ForVar1(void)" (__imp_?ForVar1@CheckOpMessageBuilder@base@google@@QEAAPEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@XZ)

解决:预处理器定义加上GOOGLE_GLOG_DLL_DECL=

 

posted @ 2018-08-16 09:54  woodseye  阅读(2325)  评论(0编辑  收藏  举报