glim icon indicating copy to clipboard operation
glim copied to clipboard

glim_rosnode: symbol lookup error: /usr/local/lib/libgtsam_points.so: undefined symbol: _ZNK5gtsam15NonlinearFactor5rekeyERKSt6vectorImSaImEE [ros2run]: Process exited with failure 127

Open kkarnatak opened this issue 1 year ago • 4 comments

Describe the bug Undefined symbol error while executing different glim_rosnode, glim_rosbag etc

To Reproduce Steps to reproduce the behavior: ros2 run glim_ros glim_rosnode

Expected behavior

Following error occurs every time: /opt/ros/humble/lib/glim_ros/glim_rosnode: symbol lookup error: /usr/local/lib/libgtsam_points.so: undefined symbol: _ZNK5gtsam15NonlinearFactor5rekeyERKSt6vectorImSaImEE [ros2run]: Process exited with failure 127

Environment (please complete the following information): I am using ubuntu 22.04 on virtualbox

  • ROS: ROS2 humble
  • Build with CUDA: OFF

kkarnatak avatar Dec 06 '24 14:12 kkarnatak

This error is sometimes caused by previously installed GTSAM with a wrong version. Please check and try this https://github.com/koide3/glim/issues/91#issuecomment-2408989503

koide3 avatar Dec 29 '24 20:12 koide3

I have checked the ticket you suggested but i dont have any other gtsam version installed. I followed the instructions and have installed 4.2.a9 from the repo.

Image

Image

Image

I still get the same error. I have resintalled everything many times with source code ( gtsam, gtsam_points, glim and glim_ros2). I dont have anything installed via ppa.

kkarnatak avatar Mar 13 '25 13:03 kkarnatak

I had a similar issue which turned out to be the gtsam compiled with the included Eigen even though I used the -DGTSAM_USE_SYSTEM_EIGEN=ON Changing the flag directly inside cmake/HandleEigen.cmake solved the issue for me

hoangsep avatar Apr 11 '25 05:04 hoangsep

I had a similar issue which turned out to be the gtsam compiled with the included Eigen even though I used the -DGTSAM_USE_SYSTEM_EIGEN=ON Changing the flag directly inside cmake/HandleEigen.cmake solved the issue for me

I tried your solution, but the issue remains.

agx-orin@agx-orin:~$ ros2 run glim_ros glim_rosnode
/home/agx-orin/colcon_ws/install/glim_ros/lib/glim_ros/glim_rosnode: symbol lookup error: /lib/aarch64-linux-gnu/libgtsam_unstable.so.4: undefined symbol: _ZNK5gtsam14JacobianFactor13updateHessianERKSt6vectorImN3tbb13tbb_allocatorImEEEPNS_20SymmetricBlockMatrixE
[ros2run]: Process exited with failure 127

HappySamuel avatar May 07 '25 03:05 HappySamuel