micro-ROS / micro-ROS/micro_ros_setup
Error building micro_ros_agent due to missing target /opt/ros/humble/lib/libfastrtps.so.2.6.8
- Dominant language
- Shell
- Stars
- 509
- Forks
- 183
- Avg merge
- 22h 26m
- Merged PRs (30d)
- 7
Description
Hello,
I am encountering an issue while building the micro_ros_agent package in my workspace. The error indicates a missing target for /opt/ros/humble/lib/libfastrtps.so.2.6.8. Here are the details:
Build Command:
colcon build
Error Output:
[0.411s] WARNING:colcon.colcon_core.package_selection:Some selected packages are already built in one or more underlay workspaces:
... (output omitted for brevity) ...
--- stderr: micro_ros_agent
gmake[2]: *** 'micro_ros_agent' に必要なターゲット '/opt/ros/humble/lib/libfastrtps.so.2.6.8' を make するルールがありません. 中止.
gmake[1]: *** [CMakeFiles/Makefile2:137: CMakeFiles/micro_ros_agent.dir/all] エラー 2
gmake: *** [Makefile:146: all] エラー 2
---
Environment:
ROS 2 Distribution: Humble
OS: [Your OS, e.g., Ubuntu 22.04]
micro-ROS workspace: /home/takasei/microros_ws
colcon version: [Run colcon version to get this information]
Steps to Reproduce:
Source the ROS 2 Humble workspace:
source /opt/ros/humble/setup.bash
Set up the micro-ROS workspace:
cd ~/microros_ws
colcon build
Encounter the error above.
Questions:
How can I resolve the missing target for /opt/ros/humble/lib/libfastrtps.so.2.6.8?
Is this a compatibility issue between micro-ROS and ROS 2 Humble?
Are there any specific dependencies or setup steps I might have missed?
Contributor guide
Research direction
Start by reproducing the failure with `source /opt/ros/humble/setup.bash` followed by `colcon build` in `~/microros_ws`. Check whether `/opt/ros/humble/lib/libfastrtps.so.2.6.8` and its corresponding ROS 2 Humble dependency are installed, then verify the workspace builds without the missing-target error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- shell
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100