summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-09-19 12:33:25 +0000
committerCoprDistGit <infra@openeuler.org>2026-09-19 12:33:25 +0000
commit8c5130b56da614f98ad7618dd650a8007cc6c012 (patch)
tree1e9d7c7a3ee7c0550a79ead4c34565179f82a7c4
parenta998dada9822af37db259485e56b67af5a667e8a (diff)
automatic import of ros-humble-aruco-markers
-rw-r--r--aruco-markers.spec11
1 files changed, 10 insertions, 1 deletions
diff --git a/aruco-markers.spec b/aruco-markers.spec
index d8e246b..26c80b4 100644
--- a/aruco-markers.spec
+++ b/aruco-markers.spec
@@ -4,7 +4,7 @@
Name: ros-%{ros_distro}-%{RosPkgName}
Version: 0.0.3
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A ros2 node for detecting aruco markers in camera images
License: MIT
URL: https://github.com/namo-robotics/aruco_markers/tree/humble
@@ -46,6 +46,11 @@ A ros2 node for detecting aruco markers in camera images
%prep
%autosetup -n %{RosPkgName}-%{src_version}
+# OpenCV 4.5.x 不存在 opencv2/aruco/dictionary.hpp 子目录头文件,
+# 该文件是 OpenCV 4.6+ 引入的新路径;4.5.x 中所有 aruco 类型均在
+# opencv2/aruco.hpp 中,替换后源码保持完全兼容。
+sed -i 's|#include <opencv2/aruco/dictionary\.hpp>|#include <opencv2/aruco.hpp>|g' \
+ aruco_markers/include/aruco_markers/utils.hpp
%build
source /opt/ros/%{ros_distro}/setup.sh 2>/dev/null || true
@@ -75,5 +80,9 @@ make install DESTDIR=%{buildroot}
/opt/ros/%{ros_distro}
%changelog
+* Fri Sep 19 2026 ai-importer <ai-importer@openeuler.org> - 0.0.3-2
+- Fix build failure: replace opencv2/aruco/dictionary.hpp with opencv2/aruco.hpp
+ to be compatible with OpenCV 4.5.x available in openEuler 24.03 LTS SP3
+
* Sat Sep 19 2026 ai-importer <ai-importer@openeuler.org> - 0.0.3-1
- Initial import (ROS batch)