gaoxiang12 / slambook

MIT License
6.85k stars 3.26k forks source link

pose_estimation_3d2d链接出错 #78

Open xiaoyaoyouhuanle opened 6 years ago

xiaoyaoyouhuanle commented 6 years ago

你好:出现如下错误,新人,实在无从下手,请提供帮助 pose_estimation_3d2d.cpp:(.text._ZN3g2o19LinearSolverCSparseIN5Eigen6MatrixIdLi6ELi6ELi0ELi6ELi6EEEE12solvePatternERNS_17SparseBlockMatrixINS2_IdLin1ELin1ELi0ELin1ELin1EEEEERKSt6vectorISt4pairIiiESaISB_EERKNS5_IS3_EE[_ZN3g2o19LinearSolverCSparseIN5Eigen6MatrixIdLi6ELi6ELi0ELi6ELi6EEEE12solvePatternERNS_17SparseBlockMatrixINS2_IdLin1ELin1ELi0ELin1ELin1EEEEERKSt6vectorISt4pairIiiESaISB_EERKNS5_IS3_EE]+0xd8): undefined reference to g2o::csparse_extension::cs_chol_workspace(cs_di_sparse const*, cs_di_symbolic const*, int*, double*)' pose_estimation_3d2d.cpp:(.text._ZN3g2o19LinearSolverCSparseIN5Eigen6MatrixIdLi6ELi6ELi0ELi6ELi6EEEE11solveBlocksERPPdRKNS_17SparseBlockMatrixIS3_EE[_ZN3g2o19LinearSolverCSparseIN5Eigen6MatrixIdLi6ELi6ELi0ELi6ELi6EEEE11solveBlocksERPPdRKNS_17SparseBlockMatrixIS3_EE]+0xfd): undefined reference tog2o::csparse_extension::cs_chol_workspace(cs_di_sparse const, cs_di_symbolic const, int, double)'

collect2: error: ld returned 1 exit status CMakeFiles/pose_estimation_3d2d.dir/build.make:112: recipe for target 'pose_estimation_3d2d' failed make[2]: [pose_estimation_3d2d] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/pose_estimation_3d2d.dir/all' failed make[1]: [CMakeFiles/pose_estimation_3d2d.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

gaoxiang12 commented 6 years ago

可能g2o在编译时没有加入CSparse。请安装CSparse库后再编译安装g2o