diff options
| -rw-r--r-- | aruco-markers.spec | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/aruco-markers.spec b/aruco-markers.spec index beccb4b..2414504 100644 --- a/aruco-markers.spec +++ b/aruco-markers.spec @@ -4,7 +4,7 @@ Name: ros-%{ros_distro}-%{RosPkgName} Version: 0.0.3 -Release: 4%{?dist} +Release: 5%{?dist} Summary: A ros2 node for detecting aruco markers in camera images License: MIT URL: https://github.com/namo-robotics/aruco_markers/tree/humble @@ -48,7 +48,8 @@ A ros2 node for detecting aruco markers in camera images %prep %autosetup -n %{RosPkgName}-%{src_version} # openEuler opencv 4.5.2 lacks the aruco contrib module; bundle from opencv_contrib 4.5.2 -sed -i 's/find_package(OpenCV REQUIRED COMPONENTS core imgproc aruco)/find_package(OpenCV REQUIRED COMPONENTS core imgproc)/' aruco_markers/CMakeLists.txt +# Remove aruco component (bundled) but add calib3d (was transitively pulled by aruco) +sed -i 's/find_package(OpenCV REQUIRED COMPONENTS core imgproc aruco)/find_package(OpenCV REQUIRED COMPONENTS core imgproc calib3d)/' aruco_markers/CMakeLists.txt # Replace catch-all <opencv2/opencv.hpp> with specific includes to prevent # system OpenCV 4.8+ objdetect aruco headers (new API) from being pulled in # and conflicting with bundled 4.5.x aruco (old API). Code only uses core, @@ -143,6 +144,11 @@ make install DESTDIR=%{buildroot} /opt/ros/%{ros_distro} %changelog +* Mon Oct 12 2026 ai-importer <ai-importer@openeuler.org> - 0.0.3-5 +- Add calib3d to find_package(OpenCV COMPONENTS) to resolve linker errors + (projectPoints/solvePnP/calibrateCamera/Rodrigues/drawFrameAxes/undistortPoints/findHomography) + caused by removing aruco component which transitively pulled calib3d + * Mon Oct 12 2026 ai-importer <ai-importer@openeuler.org> - 0.0.3-4 - Replace catch-all <opencv2/opencv.hpp> with specific includes (core/imgproc/calib3d) - Mask system objdetect/aruco_*.hpp headers to prevent new/old API conflict |
