From 8c5130b56da614f98ad7618dd650a8007cc6c012 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Sat, 19 Sep 2026 12:33:25 +0000 Subject: automatic import of ros-humble-aruco-markers --- aruco-markers.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 |#include |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 - 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 - 0.0.3-1 - Initial import (ROS batch) -- cgit v1.2.3