Skip to content

Colcon Build error #6

@edugm94

Description

@edugm94

Hello,

I am trying to build this workspace, but I am encountering an error when calling colcon build:

colcon build --symlink-install                                                                                                                                                                                
[0.344s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/home/eduardo/phd/projects/airport/drone_ws/install/tello_msgs' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.344s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/home/eduardo/phd/projects/airport/drone_ws/install/tello_description' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.344s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/home/eduardo/phd/projects/airport/drone_ws/install/ros2_shared' in the environment variable AMENT_PREFIX_PATH doesn't exist
[0.345s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/eduardo/phd/projects/airport/drone_ws/install/tello_msgs' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.345s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/eduardo/phd/projects/airport/drone_ws/install/tello_description' in the environment variable CMAKE_PREFIX_PATH doesn't exist
[0.345s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/eduardo/phd/projects/airport/drone_ws/install/ros2_shared' in the environment variable CMAKE_PREFIX_PATH doesn't exist
Starting >>> tello_msgs
Starting >>> ros2_shared
Starting >>> tello_description
Finished <<< ros2_shared [0.76s]                                                                                             
Finished <<< tello_description [0.83s]                                                        
Finished <<< tello_msgs [5.63s]                     
Starting >>> tello_driver
Starting >>> tello_gazebo
--- stderr: tello_driver                                                                            
/home/eduardo/phd/projects/airport/drone_ws/src/tello-ros2-gazebo/tello_ros/tello_driver/src/tello_joy_node.cpp:49:10: fatal error: rclcpp_components/register_node_macro.hpp: No such file or directory
   49 | #include "rclcpp_components/register_node_macro.hpp"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
/home/eduardo/phd/projects/airport/drone_ws/src/tello-ros2-gazebo/tello_ros/tello_driver/src/tello_joy_node.cpp:49:10: fatal error: rclcpp_components/register_node_macro.hpp: No such file or directory
   49 | #include "rclcpp_components/register_node_macro.hpp"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/tello_joy_node.dir/build.make:76: CMakeFiles/tello_joy_node.dir/src/tello_joy_node.cpp.o] Error 1
gmake[2]: *** [CMakeFiles/tello_joy_main.dir/build.make:90: CMakeFiles/tello_joy_main.dir/src/tello_joy_node.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** [CMakeFiles/Makefile2:197: CMakeFiles/tello_joy_node.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
gmake[1]: *** [CMakeFiles/Makefile2:249: CMakeFiles/tello_joy_main.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
---
Failed   <<< tello_driver [15.1s, exited with code 2]
Aborted  <<< tello_gazebo [24.7s]                                  

Summary: 3 packages finished [30.7s]
  1 package failed: tello_driver
  1 package aborted: tello_gazebo
  2 packages had stderr output: tello_driver tello_gazebo

I made sure to check the rclcpp_components is installed. Can I get support on this issue?

Thanks in advance.
Best regards,
Eduardo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions