ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

1) Its odd the gtsam libraries are in a subdirectory of your home folder, did you install gtsam from source? Maybe you could try removing the current install of gtsam and install from Ubuntu-PPA instead. That may fix the linking issue. See: https://gtsam.org/get_started/. For the last stable release the steps would be:

# first, uninstall old gtsatm, then do:
sudo add-apt-repository ppa:borglab/gtsam-release-4.0
sudo apt install libgtsam-dev libgtsam-unstable-dev

2) Here are other options. Not sure if they are best practices, so proceed cautiously.

  • If you want to keep your current install, you could try appending /home/jdflo/lib/ to LIBRARY_PATH instead of LD_LIBRARY_PATH, as suggested here: https://stackoverflow.com/a/5490284.
  • Or you could try symbolically linking the library file to a location that ld searches in, as suggested here: https://stackoverflow.com/a/21647591 (look into ln bash command with the -s option)