Open cfasana opened 10 months ago
On the host machine, run:
mkdir microros_ws && cd microros_ws git clone -b humble https://github.com/micro-ROS/micro_ros_setup.git src/micro_ros_setup rosdep update && rosdep install --from-paths src --ignore-src -y colcon build source install/local_setup.bash ros2 run micro_ros_setup create_firmware_ws.sh android generic ros2 run micro_ros_setup configure_firmware.sh ros2 run micro_ros_setup build_firmware.sh ~/android_sdk/ndk/25.2.9519653/build/cmake/android.toolchain.cmake
Micro-ros is built correctly.
An error is raised when building the package micro_ros_demos_rclc. The error is the following:
micro_ros_demos_rclc
Starting >>> micro_ros_demos_rclc --- stderr: micro_ros_demos_rclc CMake Error at /home/user_ai_001/microros_ws/firmware/mcu_ws/install/share/rosidl_typesupport_microxrcedds_c/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package): Could not find a configuration file for package "microcdr" that is compatible with requested version "". The following configuration files were considered but not accepted: /home/user_ai_001/microros_ws/firmware/mcu_ws/install/share/microcdr/cmake/microcdrConfig.cmake, version: 2.0.1 (64bit) Call Stack (most recent call first): /home/user_ai_001/microros_ws/firmware/mcu_ws/install/share/rosidl_typesupport_microxrcedds_c/cmake/rosidl_typesupport_microxrcedds_cConfig.cmake:41 (include) /home/user_ai_001/microros_ws/firmware/mcu_ws/install/share/rosidl_typesupport_c/cmake/rosidl_typesupport_c-extras.cmake:13 (find_package) /home/user_ai_001/microros_ws/firmware/mcu_ws/install/share/rosidl_typesupport_c/cmake/rosidl_typesupport_cConfig.cmake:41 (include) /home/user_ai_001/microros_ws/firmware/mcu_ws/install/share/builtin_interfaces/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package) /home/user_ai_001/microros_ws/firmware/mcu_ws/install/share/builtin_interfaces/cmake/builtin_interfacesConfig.cmake:41 (include) /home/user_ai_001/microros_ws/firmware/mcu_ws/install/share/rcl_interfaces/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package) /home/user_ai_001/microros_ws/firmware/mcu_ws/install/share/rcl_interfaces/cmake/rcl_interfacesConfig.cmake:41 (include) /home/user_ai_001/microros_ws/firmware/mcu_ws/install/share/rcl/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package) /home/user_ai_001/microros_ws/firmware/mcu_ws/install/share/rcl/cmake/rclConfig.cmake:41 (include) CMakeLists.txt:6 (find_package) gmake[2]: *** [CMakeFiles/graph_visualizer.dir/build.make:95: graph_introspection/graph_visualizer/src/graph_visualizer-stamp/graph_visualizer-configure] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:192: CMakeFiles/graph_visualizer.dir/all] Error 2
The following environment variables are set:
export ANDROID_HOME='~/android_sdk/' export ANDROID_NDK='~/android_sdk/ndk/25.2.9519653' export ANDROID_NATIVE_API_LEVEL=android-31 export ANDROID_ABI=arm64-v8a
Can you continue try this , any update this ?
Unfortunately, I did not experiment further with microROS on Android. I went ahead with another solution.
If I manage to try it again soon I will let you know
Issue template
Steps to reproduce the issue
On the host machine, run:
Expected behavior
Micro-ros is built correctly.
Actual behavior
An error is raised when building the package
micro_ros_demos_rclc
. The error is the following:Additional information
The following environment variables are set: