Closed paulsammut closed 6 years ago
I suggest to use the c++03 branch of this g2o fork: https://github.com/felixendres/g2o/tree/c++03 or the libg2o built by ROS (e.g., on Ubuntu 16.04: sudo apt-get install ros-kinetic-libg2o
).
The errors above are caused by a change in API on August 7 (https://github.com/RainerKuemmerle/g2o/commit/78280034b1983399cad3f93974b05b823ee20c25). I cannot find a way to detect this change on compilation (like a g2o version define), to not break backward compatibility with wide released g2o binaries in current and previous ROS versions.
For your last question, no, g2o is not required.
cheers, Mathieu
Using the c++03 of that fork worked, thanks! I had to disable the examples (they complained about c++11 stuff) and the apps from the g2o build to get it to compile. I then recompiled rtabmap with the standard flags and it worked, thanks! (ps. if anyone else has to go through this, i disabled these flags using cmake-gui. Disable the flags G2O_BUILD_EXAMPLES and G2O_BUILD_APPS)
Quick question, how could I "uninstall" the g2o I built from source, and installed with sudo make install, so I can switch to the ROS g2o binaries? Thanks!
Unfortunately, g2o doesn't provide a "$ sudo make uninstall
" . The best way is to do "sudo make install", then look at the base directories that are installed, remove them manually... like:
$ sudo rm -r /usr/local/lib/libg2o* /usr/local/include/g2o /usr/local/lib/g2o /usr/local/bin/g2o*
Thanks @matlabbe , you're the best!!
I am getting a whole host of make errors stemming from g2o.
Offending file: corelib/src/CMakeFiles/rtabmap_core.dir/build.make:1003: recipe for target 'corelib/src/CMakeFiles/rtabmap_core.dir/OptimizerG2O.cpp.o' failed
I have installed g2o fresh from source and installed its dependencies before building: libsuitesparse-dev - qtdeclarative5-dev - qt5-qmake - libqglviewer-dev -libeigen3-dev
Cmake finds g2o with the following: -- Found g2o: /usr/local/include;/usr/include/suitesparse;/usr/include/suitesparse
If I disable g2o from the build it compiles. Do I even need it? Using rtab with stereo cameras from mapping and slam.
Thanks!