In file included from /root/slambook2/3rdparty/ceres-solver/internal/ceres/residual_block_test.cc:34:0:
/root/slambook2/3rdparty/ceres-solver/internal/ceres/gtest/gtest.h: In instantiation of ‘void testing::internal::DefaultPrintTo(testing::internal::IsContainer, testing::internal::false_type, const C&, std::ostream*) [with C = Eigen::Matrix<double, -1, -1, 1>; testing::internal::IsContainer = int; testing::internal::false_type = testing::internal::bool_constant<false>; std::ostream = std::basic_ostream<char>]’:
/root/slambook2/3rdparty/ceres-solver/internal/ceres/gtest/gtest.h:10546:17: required from ‘void testing::internal::PrintTo(const T&, std::ostream*) [with T = Eigen::Matrix<double, -1, -1, 1>; std::ostream = std::basic_ostream<char>]’
/root/slambook2/3rdparty/ceres-solver/internal/ceres/gtest/gtest.h:10776:12: required from ‘static void testing::internal::UniversalPrinter<T>::Print(const T&, std::ostream*) [with T = Eigen::Matrix<double, -1, -1, 1>; std::ostream = std::basic_ostream<char>]’
/root/slambook2/3rdparty/ceres-solver/internal/ceres/gtest/gtest.h:10925:30: required from ‘void testing::internal::UniversalPrint(const T&, std::ostream*) [with T = Eigen::Matrix<double, -1, -1, 1>; std::ostream = std::basic_ostream<char>]’
/root/slambook2/3rdparty/ceres-solver/internal/ceres/gtest/gtest.h:10853:19: required from ‘static void testing::internal::UniversalTersePrinter<T>::Print(const T&, std::ostream*) [with T = Eigen::Matrix<double, -1, -1, 1>; std::ostream = std::basic_ostream<char>]’
/root/slambook2/3rdparty/ceres-solver/internal/ceres/gtest/gtest.h:11051:44: required from ‘std::__cxx11::string testing::PrintToString(const T&) [with T = Eigen::Matrix<double, -1, -1, 1>; std::__cxx11::string = std::__cxx11::basic_string<char>]’
/root/slambook2/3rdparty/ceres-solver/internal/ceres/gtest/gtest.h:10345:36: required from ‘static std::__cxx11::string testing::internal::FormatForComparison<ToPrint, OtherOperand>::Format(const ToPrint&) [with ToPrint = Eigen::Matrix<double, -1, -1, 1>; OtherOperand = Eigen::Matrix<double, -1, -1, 1>; std::__cxx11::string = std::__cxx11::basic_string<char>]’
/root/slambook2/3rdparty/ceres-solver/internal/ceres/gtest/gtest.h:10420:45: required from ‘std::__cxx11::string testing::internal::FormatForComparisonFailureMessage(const T1&, const T2&) [with T1 = Eigen::Matrix<double, -1, -1, 1>; T2 = Eigen::Matrix<double, -1, -1, 1>; std::__cxx11::string = std::__cxx11::basic_string<char>]’
/root/slambook2/3rdparty/ceres-solver/internal/ceres/gtest/gtest.h:19989:53: required from ‘testing::AssertionResult testing::internal::CmpHelperEQFailure(const char*, const char*, const T1&, const T2&) [with T1 = Eigen::Matrix<double, -1, -1, 1>; T2 = Eigen::Matrix<double, -1, -1, 1>]’
/root/slambook2/3rdparty/ceres-solver/internal/ceres/gtest/gtest.h:20006:28: required from ‘testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&) [with T1 = Eigen::Matrix<double, -1, -1, 1>; T2 = Eigen::Matrix<double, -1, -1, 1>]’
/root/slambook2/3rdparty/ceres-solver/internal/ceres/gtest/gtest.h:20030:23: required from ‘static testing::AssertionResult testing::internal::EqHelper<lhs_is_null_literal>::Compare(const char*, const char*, const T1&, const T2&) [with T1 = Eigen::Matrix<double, -1, -1, 1>; T2 = Eigen::Matrix<double, -1, -1, 1>; bool lhs_is_null_literal = false]’
/root/slambook2/3rdparty/ceres-solver/internal/ceres/residual_block_test.cc:298:3: required from here
/root/slambook2/3rdparty/ceres-solver/internal/ceres/gtest/gtest.h:10445:35: error: variable or field ‘it’ declared void
for (typename C::const_iterator it = container.begin();
^~
internal/ceres/CMakeFiles/residual_block_test.dir/build.make:75: recipe for target 'internal/ceres/CMakeFiles/residual_block_test.dir/residual_block_test.cc.o' failed
make[2]: *** [internal/ceres/CMakeFiles/residual_block_test.dir/residual_block_test.cc.o] Error 1
CMakeFiles/Makefile2:2518: recipe for target 'internal/ceres/CMakeFiles/residual_block_test.dir/all' failed
从官网下载ceres-solver-1.14.0.tar.gz,点击红框处下载latest stable release最新稳定版