Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling error: G2O_SOLVER_CHOLMOD #29

Open
jaychak opened this issue Jul 2, 2014 · 9 comments
Open

Compiling error: G2O_SOLVER_CHOLMOD #29

jaychak opened this issue Jul 2, 2014 · 9 comments

Comments

@jaychak
Copy link

jaychak commented Jul 2, 2014

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
Copy link

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

@ningzhou
Copy link

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
Copy link

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
Copy link

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

@c-goettert
Copy link

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
Copy link

@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
Copy link

Ankita-Singh-21 commented Feb 19, 2021

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

@Viky397
Copy link

Viky397 commented Mar 11, 2021

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

@ryan-utopia
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants