ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Catkin build error with teb_local_planner: undefined reference to g2o

asked 2022-02-15 20:51:11 -0500

Pieeer1 gravatar image

updated 2022-02-16 03:16:44 -0500

gvdhoorn gravatar image

I continuously recieve this error and have not found any information that actually works. Anyone have any ideas?

The error is:

Errors     << teb_local_planner:make /home/mason/autonomous_mobile_manipulation_ws/logs/teb_local_planner/build.make.001.log
/home/mason/autonomous_mobile_manipulation_ws/devel/.private/teb_local_planner/lib/libteb_local_planner.so: undefined reference to `g2o::csparse_extension::cs_chol_workspace(cs_di_sparse const*, cs_di_symbolic const*, int*, double*)'
/home/mason/autonomous_mobile_manipulation_ws/devel/.private/teb_local_planner/lib/libteb_local_planner.so: undefined reference to `g2o::csparse_extension::cs_cholsolsymb(cs_di_sparse const*, double*, cs_di_symbolic const*, double*, int*)'
/home/mason/autonomous_mobile_manipulation_ws/devel/.private/teb_local_planner/lib/libteb_local_planner.so: undefined reference to `g2o::csparse_extension::writeCs2Octave(char const*, cs_di_sparse const*, bool)'
collect2: error: ld returned 1 exit status
make[2]: *** [/home/mason/autonomous_mobile_manipulation_ws/devel/.private/teb_local_planner/lib/teb_local_planner/test_optim_node] Error 1
make[1]: *** [CMakeFiles/test_optim_node.dir/all] Error 2
make: *** [all] Error 2
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-02-16 06:44:20 -0500

osilva gravatar image

Hi @Pieeer1, try the following:

  1. (Re)-Install libsuitparse:

    sudo apt-get install libsuitesparse-dev

  2. (Re)-Compiling g2o:

    cd g2o/build/ cmake .. make

  3. Install

    sudo make install

I saw a similar error here

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-02-15 20:51:11 -0500

Seen: 232 times

Last updated: Feb 16 '22