glim_rosnode: symbol lookup error: /usr/local/lib/libgtsam_points.so: undefined symbol: _ZNK5gtsam15NonlinearFactor5rekeyERKSt6vectorImSaImEE [ros2run]: Process exited with failure 127
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
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
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.
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.
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 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=ONChanging 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