ros2-java / ros2_java

Java and Android bindings for ROS2
Apache License 2.0
172 stars 93 forks source link

Dashing branch ros_java build error #157

Closed ahmadnav closed 3 years ago

ahmadnav commented 3 years ago

Starting >>> rosidl_generator_java --- stderr: rosidl_generator_java
CMake Error at /home/loacaladmin/ros2_dashing/ros2-linux/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:86 (message): rosidl_generate_interfaces() the passed file '/home/jenkins-agent/workspace/ci_packaging_linux/ws/install/share/test_interface_files/msg/Arrays.msg' doesn't exist Call Stack (most recent call first): CMakeLists.txt:54 (rosidl_generate_interfaces)

ahmadnav commented 3 years ago

When using the provided ci script build_java.sh this error occurs

Traceback (most recent call last): File "/home/loacaladmin/ros2_java/ci-scripts/output/install_isolated_ament/ament_tools/bin/ament", line 33, in sys.exit(load_entry_point('ament-tools', 'console_scripts', 'ament')()) File "/home/loacaladmin/ros2_java/ci-scripts/output/install_isolated_ament/ament_tools/bin/ament", line 22, in importlib_load_entry_point for entry_point in distribution(dist_name).entry_points File "/home/loacaladmin/.local/lib/python3.6/site-packages/importlib_metadata/init.py", line 573, in distribution return Distribution.from_name(distribution_name) File "/home/loacaladmin/.local/lib/python3.6/site-packages/importlib_metadata/init.py", line 203, in from_name raise PackageNotFoundError(name) importlib_metadata.PackageNotFoundError: No package metadata was found for ament-tools

ahmadnav commented 3 years ago

Can be resolved by modifying ros2_dashing/ros2-linux/share/test_interface_files/cmake/test_interface_files-extras.cmake to reflect proper paths.

jacobperron commented 3 years ago

What method of installing ROS 2 are you using? It sounds like you are following the "install from fat archive" instructions.

ahmadnav commented 3 years ago

@jacobperron Yes due to #158 I am running an older verstion of dashing (7). But I guess all this is irrelevant if opensplice dependancies are removed entirely from both ros_java and ros_android

jacobperron commented 3 years ago

We can certainly remove OpenSplice as a default dependency from rcljava (and we have in https://github.com/ros2-java/ros2_java/pull/163). AFAIK, OpenSplice is still a supported RMW for Dashing, so it still might be worth investigating this issue. Though since it has been dropped from ROS 2 Eloquent, I'd say it is not high-priority.

jacobperron commented 3 years ago

Since Dashing is EOL, I'm going to close this. I encourage you to try the main branch with ROS Galactic :)