RainerKuemmerle / g2o

g2o: A General Framework for Graph Optimization
3.08k stars 1.11k forks source link

/usr/bin/ld: 找不到 -lcore /usr/bin/ld: 找不到 -lsolver_csparse #359

Open YL13609244502 opened 5 years ago

YL13609244502 commented 5 years ago

Scanning dependencies of target tutorial_slam2d_library [ 10%] Building CXX object CMakeFiles/tutorial_slam2d_library.dir/edge_se2_pointxy.cpp.o [ 20%] Building CXX object CMakeFiles/tutorial_slam2d_library.dir/edge_se2.cpp.o [ 30%] Building CXX object CMakeFiles/tutorial_slam2d_library.dir/vertex_se2.cpp.o [ 40%] Building CXX object CMakeFiles/tutorial_slam2d_library.dir/vertex_point_xy.cpp.o [ 50%] Building CXX object CMakeFiles/tutorial_slam2d_library.dir/parameter_se2_offset.cpp.o [ 60%] Building CXX object CMakeFiles/tutorial_slam2d_library.dir/types_tutorial_slam2d.cpp.o [ 70%] Building CXX object CMakeFiles/tutorial_slam2d_library.dir/simulator.cpp.o [ 80%] Linking CXX static library libtutorial_slam2d.a [ 80%] Built target tutorial_slam2d_library Scanning dependencies of target tutorial_slam2d [ 90%] Building CXX object CMakeFiles/tutorial_slam2d.dir/tutorial_slam2d.cpp.o [100%] Linking CXX executable tutorial_slam2d /usr/bin/ld: 找不到 -lcore /usr/bin/ld: 找不到 -lsolver_csparse collect2: error: ld returned 1 exit status CMakeFiles/tutorial_slam2d.dir/build.make:95: recipe for target 'tutorial_slam2d' failed make[2]: [tutorial_slam2d] Error 1 CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/tutorial_slam2d.dir/all' failed make[1]: [CMakeFiles/tutorial_slam2d.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2

WLwind commented 5 years ago

沙发!😂

wenhaoli-xmu commented 3 years ago

解决了吗,我也遇到这个问题了