uzh-rpg / rpg_svo

Semi-direct Visual Odometry
GNU General Public License v3.0
2.09k stars 860 forks source link

Compiling error: G2O_SOLVER_CHOLMOD #29

Open jaychak opened 10 years ago

jaychak commented 10 years ago

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.

ningzhou commented 10 years ago

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

ningzhou commented 10 years ago

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.

Planchee commented 8 years ago

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!

xtsxisaxns commented 7 years ago

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

c-goettert commented 7 years ago

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...

ningzhou commented 7 years ago

@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.

Ankita-Singh-21 commented 3 years ago

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

Viky397 commented 3 years ago

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

ryan-utopia commented 2 years ago

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