Ask Your Question
0

rgdslam linking error

asked 2012-01-15 21:25:12 -0500

LucaGhera gravatar image

updated 2014-01-28 17:11:08 -0500

ngrennan gravatar image

Hi all,

I'm trying to build rgbdslam under ubuntu 11.10 and ros electric. I'm following these instructions (point 2).

However it fails with the following error:

[100%] Building CXX object CMakeFiles/rgbdslam.dir/src/moc_ros_service_ui.o
Linking CXX executable ../bin/rgbdslam
/usr/bin/ld: CMakeFiles/rgbdslam.dir/src/graph_manager.o: undefined reference to symbol 'g2o::MatrixStructure::~MatrixStructure()'
/usr/bin/ld: note: 'g2o::MatrixStructure::~MatrixStructure()' is defined in DSO /home/serl-3d/Software/ros-stacks/g2o/lib//libg2o_core.so so try adding it to the linker command line
/home/serl-3d/Software/ros-stacks/g2o/lib//libg2o_core.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[3]: *** [../bin/rgbdslam] Error 1
make[3]: Leaving directory `/home/serl-3d/Software/ros-stacks/rgbdslam/build'
make[2]: *** [CMakeFiles/rgbdslam.dir/all] Error 2
make[2]: Leaving directory `/home/serl-3d/Software/ros-stacks/rgbdslam/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/serl-3d/Software/ros-stacks/rgbdslam/build'
make: *** [all] Error 2

How can I fix it?

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-01-16 20:42:01 -0500

Hi, something changed in ubuntu 11.10 s.t. new library-dependencies are required. I am currently updating the our google code subversion repository. I haven' tested it thoroughly, but feel free to give it a try.

edit flag offensive delete link more

Comments

@Felix Endres Thank. However it still fails: Building CXX object CMakeFiles/rgbdslam.dir/src/main.o In file included from /home/serl-3d/Software/ros-stacks/rgbdslam_freiburg/rgbdslam/src/main.cpp:24:0: ~/Software/ros-stacks/rgbdslam_freiburg/rgbdslam/src/ros_service_ui.h:24:38: fatal error:
LucaGhera gravatar image LucaGhera  ( 2012-01-16 22:02:38 -0500 )edit
rgbdslam/rgbdslam_ros_ui.h: No such file or directory
LucaGhera gravatar image LucaGhera  ( 2012-01-16 22:03:22 -0500 )edit
Forgot to check in the service definition. Sorry. Please try again
Felix Endres gravatar image Felix Endres  ( 2012-01-16 23:46:30 -0500 )edit
@Felix Endres Now it compiles and works...thanks!
LucaGhera gravatar image LucaGhera  ( 2012-01-17 18:52:48 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-01-15 21:25:12 -0500

Seen: 323 times

Last updated: Jan 16 '12