glim icon indicating copy to clipboard operation
glim copied to clipboard

colcon build "1 package failed: glim_ros"

Open alejandro-alonso-isi opened this issue 1 year ago • 9 comments

I have the same problem from of issue and I checked a version of GTSAM how you sugere but is in tag 4.2a9

I encountered the same issue "A build error when using colcon build in ROS2 #67" as described in a previous issue. I verified that the GTSAM tag is set to the version tag 4.2a9, but the problem persists. I have attached screenshots of the error for reference.

Screenshot from 2024-09-17 11-22-39 image

Environment (please complete the following information):

  • CPU/GPU: 13th Gen Intel(R) Core(TM) i7-13700/NVIDIA GeForce RTX 3060
  • OS: Ubuntu 22.04.4 LTS
  • ROS: Ros humble
  • CUDA: 12.2
  • Build with CUDA: OFF

alejandro-alonso-isi avatar Sep 17 '24 14:09 alejandro-alonso-isi

Can you check and try the following?

  • CMake options for GTSAM were set as following the installation instruction
  • GTSAM and gtsam_points were placed outside ros2_ws and built and installed to the system
  • Check if demo programs in gtsam_points work
  • Run sudo ldconfig after installing GTSAM and gtsam_points

koide3 avatar Sep 21 '24 21:09 koide3

I have the same problem. I've tried calling make for gtsam_points with build demos option, but all of them failed with a lot of undefined references. But if I call make without this option - gtsam_points builds just fine. Oh, and gtsam_points also fails when I'm trying to build examples.

UriyMihailov avatar Sep 26 '24 13:09 UriyMihailov

Is it possible it has something to do with the CUDA option?

UriyMihailov avatar Sep 26 '24 13:09 UriyMihailov

Screenshot from 2024-09-26 16-57-30 Screenshot from 2024-09-26 16-57-41 Screenshot from 2024-09-26 16-57-50 Screenshot from 2024-09-26 16-57-54

UriyMihailov avatar Sep 26 '24 13:09 UriyMihailov

Now when I try to install gtsam_points, I get the following error mentioning an incompatibility with the Eigen version. I followed the step-by-step instructions as provided in the README image

alejandro-alonso-isi avatar Oct 01 '24 13:10 alejandro-alonso-isi

These errors are typically caused by installing a wrong version of GTSAM. Please check the installed GTSAM version with:

ls /usr/local/lib/libgtsam*
# /usr/local/lib/libgtsam_points_cuda.so  /usr/local/lib/libgtsam.so    /usr/local/lib/libgtsam.so.4.2.0     /usr/local/lib/libgtsam_unstable.so.4
# /usr/local/lib/libgtsam_points.so       /usr/local/lib/libgtsam.so.4  /usr/local/lib/libgtsam_unstable.so  /usr/local/lib/libgtsam_unstable.so.4.2.0

If there exist libgtsam.so.4.3a0 or something similar, remove them and re-install GTSAM 4.2a9.

koide3 avatar Oct 13 '24 13:10 koide3

@UriyMihailov @alejandro-alonso-isi Hi guys! Have you resolved this issue? I'm experiencing the same problem. GTSAM 4.2a9.

ikhann avatar Feb 05 '25 21:02 ikhann

For anyone still struggling, for me, the issue comes from ROS having its own GTSAM, so when you source ROS before colcon build, the wrong GTSAM version is used. I simply did sudo apt remove ros-jazzy-gtsam and it built no problem.

gfr-misha avatar Jul 02 '25 13:07 gfr-misha

For anyone still struggling, for me, the issue comes from ROS having its own GTSAM, so when you source ROS before colcon build, the wrong GTSAM version is used. I simply did sudo apt remove ros-jazzy-gtsam and it built no problem.

Wow! Thank you sir! you saved my day. worked for me also

kirillemko avatar Jul 20 '25 10:07 kirillemko