Skip to content

Micro Ros Agent won't build under Kilted #8

@pitosalas

Description

@pitosalas

realize that Kilted is not a supported platform. But I am hoping that jazzy micro ros agent is compatible. So I am asking for a workaround. I am willing to get my hands dirty :)

mkdir ~/uros_ws/src -p
cd ~/uros_ws/src
git clone -b $ROS_DISTRO https://github.com/micro-ROS/micro-ROS-Agent.git
git clone -b $ROS_DISTRO https://github.com/micro-ROS/micro_ros_msgs.git
cd ..
rosdep install --from-paths src --ignore-src -r -y
colcon build --symlink-install
cd ~
echo "source \$HOME/uros_ws/install/setup.bash" >> ~/.bashrc
source ~/.bashrc

Fails with this.

Starting >>> micro_ros_msgs
[Processing: micro_ros_msgs]
[Processing: micro_ros_msgs]
Finished <<< micro_ros_msgs [1min 9s]
Starting >>> micro_ros_agent
[Processing: micro_ros_agent]
[Processing: micro_ros_agent]
--- stderr: micro_ros_agent
Cloning into 'xrceagent'...
HEAD is now at 7362281 Release v2.4.3
Cloning into 'spdlog'...
HEAD is now at eb322062 Bump version to 1.9.2
CMake Error at CMakeLists.txt:153 (find_package):
  By not providing "Findfastrtps.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "fastrtps",
  but CMake did not find one.

  Could not find a package configuration file provided by "fastrtps"
  (requested version 2) with any of the following names:

    fastrtpsConfig.cmake
    fastrtps-config.cmake

  Add the installation prefix of "fastrtps" to CMAKE_PREFIX_PATH or set
  "fastrtps_DIR" to a directory containing one of the above files.  If
  "fastrtps" provides a separate development package or SDK, be sure it has
  been installed.


gmake[5]: *** [CMakeFiles/uagent.dir/build.make:94: uagent-prefix/src/uagent-stamp/uagent-configure] Error 1
gmake[4]: *** [CMakeFiles/Makefile2:111: CMakeFiles/uagent.dir/all] Error 2
gmake[3]: *** [Makefile:91: all] Error 2
gmake[2]: *** [CMakeFiles/xrceagent.dir/build.make:86: agent/src/xrceagent-stamp/xrceagent-build] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:85: CMakeFiles/xrceagent.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2
---
Failed   <<< micro_ros_agent [1min 22s, exited with code 2]

Summary: 1 package finished [2min 32s]
  1 package failed: micro_ros_agent
  1 package had stderr output: micro_ros_agent

I attempted to temporarily set ROS_DISTRO to jazzy and that didn't work.

p.s. I followed an incorrect instruction earlier and started building ROS2 from source. I think I deleted all remnants of that attempt after aborting it. But it might have left something behind that is causing this problem..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions