ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

rosidl on archlinuxarm

asked 2018-08-03 14:17:39 -0500

austinstig gravatar image

updated 2018-08-04 13:29:56 -0500

gvdhoorn gravatar image

I'm trying to build ROS2 on Arch Linux for Arm. The rosidl packages fail to build. Has anyone had experience with this?

Here is my error message

--- stderr: rosidl_typesupport_interface
CMake Error at /home/environ/Developer/arm_ros2_ws/install/ament_cmake_target_dependencies/share/ament_cmake_target_dependencies/cmake/ament_cmake_target_dependencies-extras.cmake:19 (find_package):
  By not providing "Findament_cmake_include_directories.cmake" in
  CMAKE_MODULE_PATH this project has asked CMake to find a package
  configuration file provided by "ament_cmake_include_directories", but CMake
  did not find one.

  Could not find a package configuration file provided by
  "ament_cmake_include_directories" with any of the following names:

    ament_cmake_include_directoriesConfig.cmake
    ament_cmake_include_directories-config.cmake

  Add the installation prefix of "ament_cmake_include_directories" to
  CMAKE_PREFIX_PATH or set "ament_cmake_include_directories_DIR" to a
  directory containing one of the above files.  If
  "ament_cmake_include_directories" provides a separate development package
  or SDK, be sure it has been installed.
Call Stack (most recent call first):
  /home/environ/Developer/arm_ros2_ws/install/ament_cmake_target_dependencies/share/ament_cmake_target_dependencies/cmake/ament_cmake_target_dependenciesConfig.cmake:38 (include)
  /home/environ/Developer/arm_ros2_ws/install/ament_cmake/share/ament_cmake/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package)
  /home/environ/Developer/arm_ros2_ws/install/ament_cmake/share/ament_cmake/cmake/ament_cmakeConfig.cmake:38 (include)
  CMakeLists.txt:5 (find_package)


---
Failed   <<< rosidl_typesupport_interface   [ Exited with code 1 ]
--- stderr: libyaml_vendor
CMake Error at /home/environ/Developer/arm_ros2_ws/install/ament_cmake_target_dependencies/share/ament_cmake_target_dependencies/cmake/ament_cmake_target_dependencies-extras.cmake:19 (find_package):
  By not providing "Findament_cmake_include_directories.cmake" in
  CMAKE_MODULE_PATH this project has asked CMake to find a package
  configuration file provided by "ament_cmake_include_directories", but CMake
  did not find one.

  Could not find a package configuration file provided by
  "ament_cmake_include_directories" with any of the following names:

    ament_cmake_include_directoriesConfig.cmake
    ament_cmake_include_directories-config.cmake

  Add the installation prefix of "ament_cmake_include_directories" to
  CMAKE_PREFIX_PATH or set "ament_cmake_include_directories_DIR" to a
  directory containing one of the above files.  If
  "ament_cmake_include_directories" provides a separate development package
  or SDK, be sure it has been installed.
Call Stack (most recent call first):
  /home/environ/Developer/arm_ros2_ws/install/ament_cmake_target_dependencies/share/ament_cmake_target_dependencies/cmake/ament_cmake_target_dependenciesConfig.cmake:38 (include)
  /home/environ/Developer/arm_ros2_ws/install/ament_cmake/share/ament_cmake/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package)
  /home/environ/Developer/arm_ros2_ws/install/ament_cmake/share/ament_cmake/cmake/ament_cmakeConfig.cmake:38 (include)
  CMakeLists.txt:5 (find_package)
edit retag flag offensive close merge delete

Comments

What do you mean it fails ? Can you give the error message?

pokitoz gravatar image pokitoz  ( 2018-08-04 05:55:30 -0500 )edit

I have edited my question to include my build error

austinstig gravatar image austinstig  ( 2018-08-04 10:15:40 -0500 )edit

How are you compiling ROS 2?

allenh1 gravatar image allenh1  ( 2018-08-04 10:40:09 -0500 )edit

I am trying to cross compile. My host is ubuntu 18.04. I am following the instructions https://github.com/ros2-for-arm/ros2/...

If it matters, rcl also failed to build because it couldn't find test_msgs-config.cmake. I'm not sure where these cmake files should be.

austinstig gravatar image austinstig  ( 2018-08-04 11:03:59 -0500 )edit
1

@pokitoz thanks for the link! I'm going to follow the instructions in that script, with the patches, with the additional changes you posted to the cmake file.I will post an update on its status.

austinstig gravatar image austinstig  ( 2018-08-04 14:15:19 -0500 )edit

Great. Hopefully it will work on your side ;) I will update the instructions on the wiki soon so it should be clearer.

pokitoz gravatar image pokitoz  ( 2018-08-04 14:18:27 -0500 )edit

The build finished. I mounted my arm image and chroot into it. I copied all of the *.so files to my image in its /lib path (/mnt/lib on host). I also copied all the bin files to its /bin. I confirmed the copy. When I run $ros2 it throws an error "ModuleNotFoundError: No module named pkg_resources"

austinstig gravatar image austinstig  ( 2018-08-04 15:21:54 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-08-04 12:58:04 -0500

updated 2018-08-04 12:59:08 -0500

Have a look at the issues in the GitHub. The instructions have not been updated yet. You need to disable the tests to avoid having "couldn't find test_msgs...". This can be done by specifying -DBUILD_TESTING=OFF in the cmake-args.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-08-03 14:17:39 -0500

Seen: 396 times

Last updated: Aug 04 '18