diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-10-10 09:27:11 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-10-10 09:27:11 +0000 |
| commit | 62e1a2052f3f6943f7a98a538f3f23838b1db300 (patch) | |
| tree | 8adfe1b5bd3fc1f514bf0dad7882c8fe418e9e94 /as2-behaviors-perception.spec | |
| parent | 97ea6c279d5111ecbd84b719faa270dcff824d4b (diff) | |
automatic import of ros-humble-as2-behaviors-perception
Diffstat (limited to 'as2-behaviors-perception.spec')
| -rw-r--r-- | as2-behaviors-perception.spec | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/as2-behaviors-perception.spec b/as2-behaviors-perception.spec index 5fd97a0..47edfc8 100644 --- a/as2-behaviors-perception.spec +++ b/as2-behaviors-perception.spec @@ -85,6 +85,14 @@ autonomous multi-aerial-robot systems. export PYTHONPATH=/opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packages${PYTHONPATH:+:$PYTHONPATH} export PKG_CONFIG_PATH=/opt/ros/%{ros_distro}/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH} +# Workaround: openEuler opencv 包未安装 contrib 模块 (face, wechat_qrcode, +# xfeatures2d) 的 .so 文件,但 OpenCV CMake config 传递性引用这些模块。 +# 创建指向 libopencv_core 的 dev 符号链接,让链接器能解析 -lopencv_face 等。 +# 本包不调用这三个模块的任何函数(仅 ament_target_dependencies 传递性引入)。 +for mod in opencv_face opencv_wechat_qrcode opencv_xfeatures2d; do + [ -e /usr/lib64/lib${mod}.so ] || ln -sf "$(ls /usr/lib64/libopencv_core.so.* 2>/dev/null | head -1)" /usr/lib64/lib${mod}.so +done + # monorepo 子包,进入实际构建目录 cd as2_behaviors/as2_behaviors_object_perception mkdir -p .obj && cd .obj |
