miquelmassot/g2o-python

Cannot find LinearSolverCholmodSE3 for example ba_demo

Opened this issue · 2 comments

Cannot run https://github.com/miquelmassot/g2o/blob/c0c3e4736ce8bdaa4939569fe635dfb6f894534e/python/examples/ba_demo.py because pip installation is missing LinearSolverCholmodSE3.

Workaround: replaced it with LinearSolverEigenSE3.

Update it crashes with a SIGSEGV:

BA demo
Poses done

Process finished with exit code 139 (interrupted by signal 11:SIGSEGV)

I had encountered this problem too.
seems there are something wrong with pip installation. try build the python module from source:

  • git clone the repo
  • use the pip install -U --user -v . command to build
  • add the dynamic link lib path to your system variable LD_LIBRARY_PATH, e.g. export LD_LIBRARY_PATH=/your/g2o/dynamic/link/lib/path:$LD_LIBRARY_PATH, for me, it was export LD_LIBRARY_PATH=/home/jrl/.local/lib:$LD_LIBRARY_PATH