From aa74fd4b41dad6719b8eba465b980f14c5de5822 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 27 Mar 2026 02:50:02 +0000 Subject: automatic import of rtabmap --- add-suitesparse-include.patch | 12 ++++++++++++ rtabmap.spec | 3 +-- 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 add-suitesparse-include.patch diff --git a/add-suitesparse-include.patch b/add-suitesparse-include.patch new file mode 100644 index 0000000..9b1d02c --- /dev/null +++ b/add-suitesparse-include.patch @@ -0,0 +1,12 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -2,6 +2,9 @@ + + cmake_minimum_required(VERSION 3.10) + ++# Add suitesparse include for g2o's csparse extension (cs.h) ++include_directories(/usr/include/suitesparse) ++ + project(rtabmap VERSION 0.22.1) + + set(CMAKE_CXX_STANDARD 17) diff --git a/rtabmap.spec b/rtabmap.spec index d817408..439fea5 100644 --- a/rtabmap.spec +++ b/rtabmap.spec @@ -17,6 +17,7 @@ Summary: RTAB-Map's standalone library. RTAB-Map is a RGB-D SLAM approach Url: http://introlab.github.io/rtabmap License: BSD Source0: https://github.com/introlab/rtabmap/archive/refs/tags/%{version}.tar.gz +Patch0: add-suitesparse-include.patch Requires: ros-%{ros_distro}-cv-bridge Requires: ros-%{ros_distro}-libg2o @@ -55,8 +56,6 @@ RTAB-Map's standalone library. RTAB-Map is a RGB-D SLAM approach with real-time %prep %autosetup -p1 -n rtabmap-%{version} -# Add suitesparse include directory for g2o's csparse extension -sed -i '/^project/a include_directories(/usr/include/suitesparse)' CMakeLists.txt %build # Needed to bootstrap since the ros_workspace package does not yet exist. -- cgit v1.2.3