diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-03-27 02:50:02 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-03-27 02:50:02 +0000 |
| commit | aa74fd4b41dad6719b8eba465b980f14c5de5822 (patch) | |
| tree | 2f82566a0b0fac2358148f05da686b9c0b723e50 | |
| parent | e9a332ac202ed7d818b9f4384347e03e6e71289a (diff) | |
automatic import of rtabmap
| -rw-r--r-- | add-suitesparse-include.patch | 12 | ||||
| -rw-r--r-- | rtabmap.spec | 3 |
2 files changed, 13 insertions, 2 deletions
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. |
