felixendres / rgbdslam_v2

RGB-D SLAM for ROS
GNU General Public License v3.0
935 stars 399 forks source link

CMake Error:_SOLVER_CHOLMOD_LIB notfound #114

Open KenshinXJ opened 5 years ago

KenshinXJ commented 5 years ago

Hello When I use the catkin_make to make the source codes, some errors occur and I don't how to fix it, I think the g2o hasn't been set correctly. any idea to solve this problem?

------------log-------------

`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_LIB linked by target "rgbdslam" in directory /home/kenshin/catkin_ws/src/rgbdslam_v2 linked by target "rgbdslam" in directory /home/kenshin/catkin_ws/src/rgbdslam_v2

-- Configuring incomplete, errors occurred! See also "/home/kenshin/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/kenshin/catkin_ws/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed `

My environment: ubuntu 16.04 Ros-kinetic

imontesino commented 5 years ago

Rebuild g2o following the steps described in install.sh, especially the lines:

cmake .. -DCMAKE_INSTALL_PREFIX=$G2O_REPO_DIR/install -DG2O_BUILD_EXAMPLES=OFF
nice make -j2 install