micro-ROS / micro-ROS/micro_ros_setup
micro_ros_setup build `android generic` falied
- 主要言語
- Shell
- スター
- 509
- フォーク
- 183
- 平均マージ
- 22時間 26分
- マージ済み PR(30日)
- 7
説明
## Issue template
- Hardware description: demo config : android generic
- RTOS: android
- Installation type: micro_ros_setup( branch:main)
- Version or commit hash: rolling
#### Steps to reproduce the issue
1. switch branch to main/master:

2. `ros2 run micro_ros_setup create_firmware_ws.sh android generic`
3. `ros2 run micro_ros_setup build_firmware.sh`
#### Expected behavior
#### Actual behavior
build failed:
```
/home/eldk/ws/microros/android/firmware/mcu_ws/uros/rcl/rcl/src/rcl/graph.c:106: error: undefined reference to 'rmw_get_publisher_names_and_types_by_node'
/home/eldk/ws/microros/android/firmware/mcu_ws/uros/rcl/rcl/src/rcl/graph.c:148: error: undefined reference to 'rmw_get_subscriber_names_and_types_by_node'
/home/eldk/ws/microros/android/firmware/mcu_ws/uros/rcl/rcl/src/rcl/graph.c:189: error: undefined reference to 'rmw_get_service_names_and_types_by_node'
/home/eldk/ws/microros/android/firmware/mcu_ws/uros/rcl/rcl/src/rcl/graph.c:229: error: undefined reference to 'rmw_get_client_names_and_types_by_node'
/home/eldk/ws/microros/android/firmware/mcu_ws/uros/rcl/rcl/src/rcl/graph.c:257: error: undefined reference to 'rmw_get_topic_names_and_types'
/home/eldk/ws/microros/android/firmware/mcu_ws/uros/rcl/rcl/src/rcl/graph.c:283: error: undefined reference to 'rmw_get_service_names_and_types'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [CMakeFiles/rcl.dir/build.make:510:librcl.so] 错误 1
```
#### Additional information
Similar issue has been mentioned before:[issues:548](https://github.com/micro-ROS/micro_ros_setup/issues/548)
コントリビューションガイド
調査の方向性
まず `ros2 run micro_ros_setup create_firmware_ws.sh android generic` を実行し、続けて `ros2 run micro_ros_setup build_firmware.sh` を実行します。`uros/rcl/rcl/src/rcl/graph.c` の未定義参照を調査し、関連する issue 548 と比較します。Android generic ファームウェアのビルドがリンカーエラーなしで完了すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- android, shell
- 領域
- build-system, embedded-iot
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100