Open Kay-Anonymous opened 2 years ago
It looks like you are missing the example_interfaces
messages, could you check if that repository is being included in your build?
ros2/example_interfaces:
type: git
url: https://github.com/ros2/example_interfaces
version: humble
You can also check if the Fibonacci_Goal
symbols are being included in your .a
.
Hi, @Acuadros95 .
example_interfaces
has already been build.
There is compile error :
/home/eldk/ws/microros/e1e_client/firmware/mcu_ws/install/lib/libexample_interfaces__rosidl_typesupport_c.a(add_two_ints__type_support.cpp.o):
add_two_ints__type_support.cpp:example_interfaces::srv::rosidl_typesupport_c::_AddTwoInts_Response_message_typesupport_data:
error: undefined reference to
'rosidl_typesupport_microxrcedds_c__get_message_type_support_handle__example_interfaces__srv__AddTwoInts_Response'
And then, I find symbols rosidl_typesupport_microxrcedds_c__get_message_type_support_handle__example_interfaces__srv__AddTwoInts_Response
in libexample_interfaces__rosidl_typesupport_microxrcedds_c.a
instead of libexample_interfaces__rosidl_typesupport_c.a
Is this ERROR because micro_ros_demos_rclc
only linked libexample_interfaces__rosidl_typesupport_c.a
and not linked libexample_interfaces__rosidl_typesupport_microxrcedds_c.a
?
How should i fix it...
Hi gurus,
I tried to run ros2 run micro_ros_setup create_firmware_ws.sh android generic
with only modify branchs to main/master
. There are also some ERRORs:
/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
How should I do if I want run micro_ros_demos in Android ( ndk-r21e ) on main branch?
Help me please~
anymore help?
Hello, gurus. I'm doing a research job. Could you help me with the cross-compilation issues I encountered when adding a custom platform into micro-ROS?
Best wishes!
Issue template
Steps to reproduce the issue
using android-ndk-r21e to cross compile micro_ros_demos_rclc Failed~
Expected behavior
want to integrate the micro-ROS client into the self-developed Android platform
Actual behavior
ros2 run micro_ros_setup create_firmware_ws.sh
by custom configs , but runros2 run micro_ros_setup build_firmware.sh
failed at:I was find the symbol in some *.a:
It look likes have some mistakes when link library
Additional information
config of
custom.toolchain.cmake
:config of
client_uros_packages.repos
:custom
build.sh
: