From e9a332ac202ed7d818b9f4384347e03e6e71289a Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 27 Mar 2026 02:35:31 +0000 Subject: automatic import of rtabmap --- rtabmap.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtabmap.spec b/rtabmap.spec index 3b72b89..d817408 100644 --- a/rtabmap.spec +++ b/rtabmap.spec @@ -55,6 +55,8 @@ 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. @@ -64,7 +66,6 @@ export PYTHONPATH=/opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packa # in the install tree and source it. It will set things like # CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH. if [ -f "/opt/ros/%{ros_distro}/setup.sh" ]; then . "/opt/ros/%{ros_distro}/setup.sh"; fi -export CXXFLAGS="-I/usr/include/suitesparse $CXXFLAGS" mkdir -p .obj-%{_target_platform} && cd .obj-%{_target_platform} %cmake3 \ -UINCLUDE_INSTALL_DIR \ -- cgit v1.2.3