microxrcedds_agent.so fails to link in cross environment
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 42/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- cpp
- 领域
- build-system
调研方向
从 Docker 化的交叉编译说明以及生成 libmicroxrcedds_agent.so 的构建命令开始。检查为什么 /opt/ros/humble/lib/libfastrtps.so.2.6.8 出现在链接器输入中,而不是 sysroot 库中,然后为报告的目标架构重现构建过程。只有当 agent 仅使用 sysroot 中的库成功完成链接时,才算完成。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
I tried using a cross compile workflow for Micro ROS Agent and it has linker errors.
To Reproduce
Steps to reproduce the behaviour:
- Clone repo on this branch and follow the dockerized instructions: https://github.com/Ryanf55/x-ros/tree/micro-ros-agent
- Compile the micro ros agent as explained
- Observe the following error:
# [ 2%] Linking CXX shared library libmicroxrcedds_agent.so
# /usr/lib/gcc-cross/aarch64-linux-gnu/11/../../../../aarch64-linux-gnu/bin/ld: /opt/ros/humble/lib/libfastrtps.so.2.6.8: error adding symbols: file in wrong format
The linker is incorrectly trying to link to /opt/ros/humble/lib/libfastrtps.so.2.6.8. It should be linking to the shared library in the sysroot, not the host.
Expected behaviour
Successful compilation in a sysroot and linkage only to libraries in the sysroot.
System information (please complete the following information):
- OS: Host OS Ubuntu 22
- ROS 2 humble on host OS
- Target OS: Ubuntu 22
Additional context
I have ROS 2 humble installed on the host OS. MicroROS should compile in the sysroot and ignore all host libraries.
Because it does not ignore host libraries, it is finding libraries of the wrong architecture.
- 主要语言
- C++
- 星标
- 201
- 派生
- 111
- 平均合并
- 1 天 6 小时
- 30 天内合并 PR
- 10
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
micro-ROS/micro-ROS-Agent 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 68/100
micro-ROS/micro-ROS-Agent#270 ·
-
难度 4/5 3-5 天 新手友好度 35/100
micro-ROS/micro-ROS-Agent#269 ·
-
Release to apt 未关闭
难度 5/5 一周以上 新手友好度 25/100
micro-ROS/micro-ROS-Agent#267 ·
-
难度 4/5 3-5 天 新手友好度 42/100
micro-ROS/micro-ROS-Agent#266 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 20/100
micro-ROS/micro-ROS-Agent#265 · 1 条评论 ·
查看 micro-ROS/micro-ROS-Agent 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 90/100
AXERA-TECH/ax-llm#77 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
games-on-whales/wolf#509 ·
-
难度 2/5 1-3 小时 新手友好度 74/100
-
bug-unconfirmed
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 2/5 1-3 小时 新手友好度 74/100
NVIDIA/cuda-samples#453 ·