-
Notifications
You must be signed in to change notification settings - Fork 558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make error from g2o #199
Comments
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: The errors above are caused by a change in API on August 7 (RainerKuemmerle/g2o@7828003). 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, |
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 rm -r /usr/local/lib/libg2o* /usr/local/include/g2o /usr/local/lib/g2o /usr/local/bin/g2o* |
Thanks @matlabbe , you're the best!! |
To piggy-back @paulsammut here, the cli command is
Then |
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!
The text was updated successfully, but these errors were encountered: