RainerKuemmerle / g2o

g2o: A General Framework for Graph Optimization
3.04k stars 1.1k forks source link

csparse_extension libraby not found #624

Open bgn-dev opened 1 year ago

bgn-dev commented 1 year ago

Code: [ 50%] Linking CXX executable bundle_adjustment_g2o ld: library not found for -lg2o_csparse_extension clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [bundle_adjustment_g2o] Error 1 make[1]: *** [CMakeFiles/bundle_adjustment_g2o.dir/all] Error 2 make: *** [all] Error 2

I've searched so much, and im not finding anything with the library named: -lg2o_csparse_extension. I looked up in my /PATH/g2o/solvers/csparse and there is a file named csparse_extension.h.

Where can i find the library?

RainerKuemmerle commented 1 year ago

What is the content of yout lib folder of your g2o build? What is the content of build/g2o/config.h? In particular, the value of G2O_HAVE_CSPARSE indicates whether g2o ws build with csparse support or not. It could be that dependencies are not found. Make sure, that libsuitesparse-dev is installed