micro-ROS / micro-ROS/micro_ros_setup

micro_ros_setup build `android generic` falied

Open
#551 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
509
Forks
183
Avg merge
22h 26m
Merged PRs (30d)
7

Description

## 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:
![image](https://user-images.githubusercontent.com/43065280/181451524-75c52fd2-6d8f-46a7-8ac4-cf0622483e99.png)

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)

Contributor guide

Open the contributing guide

Research direction

Start by running `ros2 run micro_ros_setup create_firmware_ws.sh android generic` followed by `ros2 run micro_ros_setup build_firmware.sh`. Inspect the undefined references from `uros/rcl/rcl/src/rcl/graph.c` and compare with the related issue 548; done means the Android generic firmware build completes without linker errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, shell
Domain
build-system, embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.