Skip to content
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

g2o::csparse_extension link errors #56

Closed
matlabbe opened this issue Mar 15, 2016 · 1 comment
Closed

g2o::csparse_extension link errors #56

matlabbe opened this issue Mar 15, 2016 · 1 comment

Comments

@matlabbe
Copy link
Member

../../../bin/librtabmap_core.so.0.11.2: undefined reference to `g2o::csparse_extension::cs_cholsolsymb(cs_sparse const*, double*, cs_symbolic const*, double*, int*)'
../../../bin/librtabmap_core.so.0.11.2: undefined reference to `g2o::csparse_extension::writeCs2Octave(char const*, cs_sparse const*, bool)'
../../../bin/librtabmap_core.so.0.11.2: undefined reference to `g2o::csparse_extension::cs_chol_workspace(cs_sparse const*, cs_symbolic const*, int*, double*)'

The wrong csparse library is linked (between the one built from g2o and the one installed by the system). If the one in the system exists, the one built by g2o (because g2o was built before suitesparse was installed on the system) should be removed.

Solution: completly uninstall g2o and reinstall it. Clear the build directory of rtabmap and build again.

$ sudo rm -r /usr/local/include/EXTERNAL /usr/local/include/g2o
$ sudo rm -r /usr/local/lib/libg2o_*
$ cd g2o/build
$ rm -rf *
$ cmake ..
$ make -j4
$ sudo make install
$ cd rtabmap/build
$ rm -rf *
$ cmake ..
$ make -j4
@EasternH
Copy link

I think we can use cmake-gui to set the path of g2o. It usually in /usr/local/include

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants