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

-- Could NOT find CHOLMOD (missing: CHOLMOD_INCLUDE_DIR CHOLMOD_LIBRARIES) #11

Open
zhm1995 opened this issue Sep 25, 2017 · 9 comments

Comments

@zhm1995
Copy link

zhm1995 commented Sep 25, 2017

`Build type: Release
-- Using flag -std=c++11.
-- Could NOT find CHOLMOD (missing: CHOLMOD_INCLUDE_DIR CHOLMOD_LIBRARIES)
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:
CHOLMOD_INCLUDE_DIR
used as include directory in directory /home/sunkaikai/skk/zlB/ORB-YGZ-SLAM
used as include directory in directory /home/sunkaikai/skk/zlB/ORB-YGZ-SLAM
used as include directory in directory /home/sunkaikai/skk/zlB/ORB-YGZ-SLAM
used as include directory in directory /home/sunkaikai/skk/zlB/ORB-YGZ-SLAM
used as include directory in directory /home/sunkaikai/skk/zlB/ORB-YGZ-SLAM
used as include directory in directory /home/sunkaikai/skk/zlB/ORB-YGZ-SLAM
used as include directory in directory /home/sunkaikai/skk/zlB/ORB-YGZ-SLAM
used as include directory in directory /home/sunkaikai/skk/zlB/ORB-YGZ-SLAM
CHOLMOD_LIBRARY
linked by target "ygz-SLAM" in directory /home/sunkaikai/skk/zlB/ORB-YGZ-SLAM

-- Configuring incomplete, errors occurred!
`
would you please have a look? There might be some problems with g2o?

@highlightz
Copy link

Did you install cholmod library? For example,
sudo apt-get install libcholmod2.1.2

@zhm1995
Copy link
Author

zhm1995 commented Oct 25, 2017

really thank you for your help
I have figured out this problem

@yaobaishen
Copy link

Hi,
I have seen the same error, could you share the solution? I install the libcholmod2.1.2 with no luck.

@yaobaishen
Copy link

finally I sove it by: sudo apt-get install libsuitesparse-dev

@zhm1995
Copy link
Author

zhm1995 commented Feb 7, 2018

yeah... the same as me...

@yaobaishen
Copy link

Sorry,but I see another issue:

slambook/ch10/g2o_custombundle/g2o_bundle.cpp:21:55: fatal error: g2o/solvers/cholmod/linear_solver_cholmod.h: No such file or directory
#include "g2o/solvers/cholmod/linear_solver_cholmod.h"

@zhm1995
Copy link
Author

zhm1995 commented Feb 7, 2018

download the suitesparse package in http://faculty.cs.tamu.edu/davis/suitesparse.html

@yaobaishen
Copy link

Thanks, after install the suitespase package I should rebuild the g2o library, then the ch10 example could run.

@chunibyo-wly
Copy link

After I tried install dependencies in install_dependencies.sh, I couldn't find cholmod.h either.
However I can find this file in my /usr/include/suitesparse/cholmod.h, so I tried absolute path, It works.
Maybe it's a temporal solution.

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

4 participants