weixin_39611389 2020-11-30 02:47
浏览 0

Compilation Error

Original issue 152 created by sandwichmaker on 2014-10-14T20:27:32.000Z:

What steps will reproduce the problem? 1.glog-0.3.3 2.gflags-2.0 3.ceres-solver-1.9.0 4. OS : Ubuntu (trusty) 14.04.1 LTS

What is the expected output? What do you see instead? I have installed all dependencies and compiled them , so I expected to get ceres compiled successfully , however I got the following :

-- Build the examples. -- Configuring done -- Generating done -- Build files have been written to: /home/vrtl/ceres-solver-1.9.0/build vrtl-1:~/ceres-solver-1.9.0/build$ make [ 1%] Built target gtest [ 2%] Building CXX object internal/ceres/CMakeFiles/ceres.dir/block_jacobi_preconditioner.cc.o In file included from /usr/local/include/eigen3/Eigen/Cholesky:24:0, from /home/vrtl/ceres-solver-1.9.0/internal/ceres/block_jacobi_preconditioner.cc:33: /usr/local/include/eigen3/Eigen/src/Cholesky/LDLT.h: In member function ‘void Eigen::internal::solve_retval<Eigen::LDLT<MatrixType, _UpLo>, Rhs>::evalTo(Dest&) const’: /usr/local/include/eigen3/Eigen/src/Cholesky/LDLT.h:505:39: error: typedef ‘Scalar’ locally defined but not used [-Werror=unused-local-typedefs] typedef typename LDLTType::Scalar Scalar; ^ cc1plus: all warnings being treated as errors make[2]: * [internal/ceres/CMakeFiles/ceres.dir/block_jacobi_preconditioner.cc.o] Error 1 make[1]: * [internal/ceres/CMakeFiles/ceres.dir/all] Error 2 make: *** [all] Error 2 vrtl-1:~/ceres-solver-1.9.0/build$

What version of the product are you using? On what operating system? I have answered them in the first question .

Please provide any additional information below. I did cmake and I did not face any problem however my problem comes from doign make command .

Please help me get ceres compiled . Thank you .

该提问来源于开源项目:ceres-solver/ceres-solver

  • 写回答

11条回答 默认 最新

  • weixin_39611389 2020-11-30 02:47
    关注

    Comment #1 originally posted by sandwichmaker on 2014-10-14T20:30:24.000Z:

    Fahad, what version of eigen are you using? also consider moving to a newer version of ceres.

    评论

报告相同问题?