g2o-python icon indicating copy to clipboard operation
g2o-python copied to clipboard

Cannot find LinearSolverCholmodSE3 for example ba_demo

Open EmmanuelMess opened this issue 1 year ago • 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.

EmmanuelMess avatar Jun 16 '24 16:06 EmmanuelMess

Update it crashes with a SIGSEGV:

BA demo
Poses done

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

EmmanuelMess avatar Jun 16 '24 16:06 EmmanuelMess

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

imjrl avatar Aug 24 '24 03:08 imjrl