GithubHelp home page GithubHelp logo

Comments (14)

hello-sea avatar hello-sea commented on July 19, 2024 9

This helps me:

mkdir build && cd build
cmake -DGTSAM_USE_SYSTEM_EIGEN=ON ..
sudo make install

@YangSiri

from gtsam.

varunagrawal avatar varunagrawal commented on July 19, 2024

The error message gives you the problem: ROS/catkin seems to be using a different version of Eigen than the one you used to compile GTSAM with. You may have to manually specify the Eigen path using cmake during compilation.

from gtsam.

YangSiri avatar YangSiri commented on July 19, 2024

Thanks, what you mean is there are two kinds of eigen in my system? But i already rebuilt them two, why didnt it work?

from gtsam.

varunagrawal avatar varunagrawal commented on July 19, 2024

There is one version of Eigen that possibly came with ROS or was already on your system, and there seems to be another one, which is most likely what you have installed manually.

This is a support question and not a GTSAM problem. I highly recommend asking this doubt on the Google group.

from gtsam.

YangSiri avatar YangSiri commented on July 19, 2024

@hello-sea

Thanks, but i tried. it doesnt work...

from gtsam.

TixiaoShan avatar TixiaoShan commented on July 19, 2024

This helps me:

mkdir build && cd build
cmake -DGTSAM_USE_SYSTEM_EIGEN=ON ..
sudo make install

@YangSiri

This solved my problem without changing any of my code

from gtsam.

YangSiri avatar YangSiri commented on July 19, 2024

@hello-sea @TixiaoShan @varunagrawal
Thank you all for the attention, I've found the problem: i was not using the specific version of gtsam you (@TixiaoShan ) mentioned in LeGO-loam. Instead I was using the newest version and after i changed it. It works now.
But it seems that i cannot use this gtsam in other projects. Such like when i add gtsam in the CMakelists and AS LONG AS #include some gtsam headers in my cpp, it goes like "Process finished with exit code 134 (interrupted by signal 6: SIGABRT)" even though i reinstalled it some times. Some headers are fine, but #include <gtsam/slam/BetweenFactor.h> doesnt !

Do you have any ideas about this ? I would be grateful.

from gtsam.

TixiaoShan avatar TixiaoShan commented on July 19, 2024

@YangSiri
I am using the latest GTSAM for LeGO-LOAM, it seems to be working fine. Sorry I have no insight for your problem.

from gtsam.

YangSiri avatar YangSiri commented on July 19, 2024

@TixiaoShan
You do ? But i had to download the gtsam you provided. And it would work. Maybe i was wrong. Sorry, But why cant i use it in other projects ? Im really confused.

from gtsam.

TixiaoShan avatar TixiaoShan commented on July 19, 2024

@YangSiri
I think something is changed in GTSAM between the alpha version and the current version. Honestly, I don't know the real reason behind this.

from gtsam.

YangSiri avatar YangSiri commented on July 19, 2024

@TixiaoShan
Yes, thank you anyway. I think you had done a great work !

from gtsam.

MohamedAfifii avatar MohamedAfifii commented on July 19, 2024

@YangSiri

This problem can also rise if you have different Eigen versions on your system. For example I faced this problem when GTSAM used Eigen from /usr/local/include when I specified -DGTSAM_USE_SYSTEM_EIGEN=ON, while the other library that I was trying to build used Eigen from /usr/include.

from gtsam.

YangSiri avatar YangSiri commented on July 19, 2024

Hi, @MohamedAfifii thanks
Now this problem is gone somehow. But i cant use gtsam in my own project.

So you were saying we'd better avoid using two different version of Eigen in one project(CMakeList)? There seems to be two version of gtsam, how can i remove it?

from gtsam.

ahar avatar ahar commented on July 19, 2024

@YangSiri
cat install_manifest.txt | xargs echo sudo rm | sh
Please check if it helps.

from gtsam.

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.