Giter Club home page Giter Club logo

Comments (5)

diplodocuslongus avatar diplodocuslongus commented on August 16, 2024

Updates.

  1. after a reboot, rebuilding the Odometry example with the same cmake now gives the following error and no more the libcephese related error (!!!):
$ ./OdometryExample 
./OdometryExample: symbol lookup error: ./OdometryExample: undefined symbol: _ZN5gtsam19DefaultKeyFormatterB5cxx11E

This goes for both the example built when installing gtsam (the deploy version) and re-building the example in a separate test directory.

The error goes away with export LD_LIBRARY_PATH=~/libs/gtsam/lib (i.e. specify the path to where the gtsam library was installed).

If this helps, c++filt on the undefined symbol returns:

c++filt _ZN5gtsam19DefaultKeyFormatterB5cxx11E
gtsam::DefaultKeyFormatter[abi:cxx11]

I wonder: could cxx11 means here that the build was done with c++11 rather than c++17? Likely not since the result of my cmake command (used to build the develop branch yesterday) shows:
GTSAM_COMPILE_FEATURES_PUBLIC : cxx_std_17

  1. Version 4.2 (downloaded from here) and also built to a local lib user folder with the same cmake command as reported in the post above doesn't complain about the libcephese library not being found and the example executes normally, without the need for any export LD_LIBRARY_PATH=path_to_gtsam4.2_lib
$ ./OdometryExample 

Factor Graph:
size: 3

Factor 0: PriorFactor on 1
  prior mean:  (0, 0, 0)
  noise model: diagonal sigmas [0.3; 0.3; 0.1];

Factor 1: BetweenFactor(1,2)
  measured:  (2, 0, 0)
  noise model: diagonal sigmas [0.2; 0.2; 0.1];

Factor 2: BetweenFactor(2,3)
  measured:  (2, 0, 0)
  noise model: diagonal sigmas [0.2; 0.2; 0.1];


Initial Estimate:
...

Well, checking the content of path_to_gtsam_lib/lib reveals that libcephes isn't there at all, cephes seems to have been introduced after 4.2 then.

from gtsam.

varunagrawal avatar varunagrawal commented on August 16, 2024

gtsam::DefaultKeyFormatter[abi:cxx11] indicates the ABI is for C++11, so yes it is being compiled for C++11. Is it possible you have both a C++11 version and a C++17 version installed and your system path configuration is causing the C++11 version to be picked up?
This is especially possible if you installed to root aka sudo make install or installed gtsam via apt in the past. This would explain why the issue goes away when you export the LD_LIBRARY_PATH.

from gtsam.

varunagrawal avatar varunagrawal commented on August 16, 2024

@diplodocuslongus any updates on this? Did you manage to resolve it?

from gtsam.

diplodocuslongus avatar diplodocuslongus commented on August 16, 2024

Varun, I hadn't installed GTSAM before (be it via apt or build) and no, my installation was (still is) to a local folder, no sudo.
I haven't dig more into the issue as I could manage with an export LD_LIBRARY_PATH.

Not sure if this should be closed or not, I'll try to find some time to test on a brand new linux box.

from gtsam.

varunagrawal avatar varunagrawal commented on August 16, 2024

I am closing this for now. Please re-open if the issue still persists.

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.