GithubHelp home page GithubHelp logo

Build error in ROS Indigo about sptam HOT 7 CLOSED

lrse avatar lrse commented on August 11, 2024
Build error in ROS Indigo

from sptam.

Comments (7)

taihup avatar taihup commented on August 11, 2024

Hi MB, It looks like g2o is missing or bad configurated because the following error appear:

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

The variable CHOLMOD_INCLUDE_DIR is defined in g2o library, maybe if you reinstall it will dissapear.

openni-dev is not required by S-PTAM so it is ok if it is not found.

Give it a shot and let me know.

Taihú

from sptam.

mb55420 avatar mb55420 commented on August 11, 2024

Dear @taihup ,

Thanks for your reply.
Yes, I had rebuilt the g2o as guided from README.md.
Here are my steps on installing g2o:
$ svn co https://svn.openslam.org/data/svn/g2o
$ cd ~/g2o/trunk/build
$ cmake ..
$ make
$ make install

g2o header file location:
https://www.dropbox.com/s/9xbfiy1f73tcz2e/g2o_include.jpg?dl=0

g2o lib file location:
https://www.dropbox.com/s/bhkj6q6gwaaht5v/g2o_lib.jpg?dl=0

How could I fix it for the variable CHOLMOD_INCLUDE_DIR?
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

THX~
MB

from sptam.

taihup avatar taihup commented on August 11, 2024

Hi MB,

I have been looking this error in the web and there is an answer in: uzh-rpg/rpg_svo#29

The message:

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

So the steps are:

  1. Uninstall g2o (remove completely)
  2. install suitsparse library ( sudo apt-get install libsuitesparse-dev libsuitesparse-metis-dev )
  3. Build g2o (again) and Install g2o

Let me know if it helps.

Taihú

from sptam.

mb55420 avatar mb55420 commented on August 11, 2024

Awesome, it works :)
I just follow steps you suggested.
Thank you so much, Taihú~

MB

from sptam.

taihup avatar taihup commented on August 11, 2024

Great!

from sptam.

HaniItani avatar HaniItani commented on August 11, 2024

Hello @taihup

I was wondering if there is any way to build/use the SPTAM code of RAS 2017 on Ubuntu 14.04 with OpenCV 2.4 with loop closure enabled. My question comes after bumping into distributed-sptam that is said to be compatible with my system. I acknowledge that my setup is relatively archaic, but upgrading is not an option at the moment.

Any insight is much appreciated! Thank you in advance.

from sptam.

taihup avatar taihup commented on August 11, 2024

Hi @HaniItani, mmm I am not sure if it is going to work. The early version of S-PTAM used to work on 14.04 but it was not maintained anymore. I think it is possible, but could take some work. You can give it a shot. Notice that in S-PTAM we have to patch how to find the OpenCV that comes with ROS. You can find the related code in https://github.com/lrse/sptam/blob/master/cmake-modules/dependencies.cmake. So, to use opencv 2.4 you should change this, and ask OpenCV 2.4 in the right way.

Another option that you have is to install a docker with an ubuntu 16.04 image in your ubuntu 14.04. I think this is the easiest solution. Then you can install the new version of S-PTAM in the docker.

from sptam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.