diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-03-27 02:35:31 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-03-27 02:35:31 +0000 |
| commit | e9a332ac202ed7d818b9f4384347e03e6e71289a (patch) | |
| tree | 1cbad02d1a6331dffbeef7f3668f626516e1e581 | |
| parent | 70005ef4a09b44db23ff668f2fb7ed4b067c67d8 (diff) | |
automatic import of rtabmap
| -rw-r--r-- | rtabmap.spec | 3 |
1 files changed, 2 insertions, 1 deletions
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 \ |
