rpg_svo icon indicating copy to clipboard operation
rpg_svo copied to clipboard

Compiling error: G2O_SOLVER_CHOLMOD

Open jaychak opened this issue 11 years ago • 9 comments

Compilation with ROS error:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: G2O_SOLVER_CHOLMOD linked by target "svo" in directory /home/jay/catkin_ws/src/rpg_svo/svo

-- Configuring incomplete, errors occurred! Invoking "cmake" failed

If I compile with SET(HAVE_G2O FALSE), then the error disappears. This is inspite of the fact that I have previously built g2o.

jaychak avatar Jul 02 '14 14:07 jaychak

I got the same error. what's the solution to it? any hint? thanks

ningzhou avatar Jul 25 '14 13:07 ningzhou

The reason is due to the fact that we were compiling g2o, we missed the cholmod lib so that the G2O_SOLVER_CHOLMOD is not built at all. so solve it, do the following. $ sudo apt-get install libsuitesparse-dev libsuitesparse-metis-dev then build the g2o again and install to it as instructed.

Hope it helps.

ningzhou avatar Jul 25 '14 17:07 ningzhou

Hi ningzhou, I am trying to build LSD-SLAM* (and new to programming) on Win8x64; Cmake 3.6.2 and a pre-built g2o. With Visual Studio 2015 (vc14) installed. Same problem when configuring with Cmake:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: G2O_SOLVER_CHOLMOD linked by target "sample_app" in directory C:/Users/xxx/LSD_SLAM/lsd_slam_noros-master/apps/slam G2O_SOLVER_CHOLMOD_DEBUG linked by target "sample_app" in directory C:/Users/xxx/LSD_SLAM/lsd_slam_noros-master/apps/slam

Not a lot to find.. tried rebuilding g2o from fresh (with EIGEN3) - but get even more errors then. Any idea??

*There is no "issues" page for that partical package (LSD-SLAM for Windows) so it's hard to ask there.

Much appreciated, thanks!

Planchee avatar Sep 15 '16 14:09 Planchee

i have the same problem.Any one could help me?

happpywalker avatar Dec 28 '16 17:12 happpywalker

I had the same issue. I just deleted both ${G2O_SOLVER_CHOLMOD} and ${G2O_SOLVER_CHOLMOD_DEBUG} from the lsd_slam_noros\apps\slamCMakeLists.txt. After that CMake compiled without error, but I'm not sure if it breaks somewhere else now...

c-goettert avatar Jan 19 '17 19:01 c-goettert

@Planchee Sorry for the late reply. I actually not very familiar with Windows. Are you able to set the path for G2O_SOLVER_CHOLMOD. The errors mean that both release and debug versions of the library cannot be found.

ningzhou avatar Jan 24 '17 05:01 ningzhou

Install g2o from source (https://github.com/RainerKuemmerle/g2o.git) mkdir build cd build cmake .. make sudo make install

Ankita-Singh-21 avatar Feb 19 '21 20:02 Ankita-Singh-21

I still get that error and have tried everything mentioned above. Any help is appreciated thank you!

Viky397 avatar Mar 11 '21 19:03 Viky397

See the file Readme.txt in G2O, some libs are needed. image

ryan-utopia avatar May 13 '22 09:05 ryan-utopia