[Bug] colcon build 에러입니다

This is an error report.


Screenshot of the error


Error details

user:~/ros2_ws$ colcon build Starting >>> my_package [0.353s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/home/user/ros2_ws/install/topics_quiz' in the environment variable AMENT_PREFIX_PATH doesn't exist [0.353s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/home/user/ros2_ws/install/topic_subscriber_pkg' in the environment variable AMENT_PREFIX_PATH doesn't exist [0.353s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/home/user/ros2_ws/install/topic_publisher_pkg' in the environment variable AMENT_PREFIX_PATH doesn't exist [0.353s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/home/user/ros2_ws/install/services_quiz' in the environment variable AMENT_PREFIX_PATH doesn't exist [0.353s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/home/user/ros2_ws/install/my_components' in the environment variable AMENT_PREFIX_PATH doesn't exist [0.353s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/home/user/ros2_ws/install/my_action_server' in the environment variable AMENT_PREFIX_PATH doesn't exist [0.353s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/home/user/ros2_ws/install/my_action_client' in the environment variable AMENT_PREFIX_PATH doesn't exist [0.353s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/home/user/ros2_ws/install/movement_pkg' in the environment variable AMENT_PREFIX_PATH doesn't exist [0.353s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/home/user/ros2_ws/install/logs_test' in the environment variable AMENT_PREFIX_PATH doesn't exist [0.353s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/home/user/ros2_ws/install/exercise42_pkg' in the environment variable AMENT_PREFIX_PATH doesn't exist [0.353s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/home/user/ros2_ws/install/executors_exercises_pkg' in the environment variable AMENT_PREFIX_PATH doesn't exist [0.353s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/home/user/ros2_ws/install/custom_interfaces' in the environment variable AMENT_PREFIX_PATH doesn't exist [0.353s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/home/user/ros2_ws/install/client_pkg' in the environment variable AMENT_PREFIX_PATH doesn't exist [0.354s] WARNING:colcon.colcon_ros.prefix_path.ament:The path '/home/user/ros2_ws/install/actions_quiz' in the environment variable AMENT_PREFIX_PATH doesn't exist [0.354s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/user/ros2_ws/install/topics_quiz' in the environment variable CMAKE_PREFIX_PATH doesn't exist [0.354s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/user/ros2_ws/install/topic_subscriber_pkg' in the environment variable CMAKE_PREFIX_PATH doesn't exist [0.354s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/user/ros2_ws/install/topic_publisher_pkg' in the environment variable CMAKE_PREFIX_PATH doesn't exist [0.354s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/user/ros2_ws/install/services_quiz' in the environment variable CMAKE_PREFIX_PATH doesn't exist [0.354s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/user/ros2_ws/install/services_quiz_srv' in the environment variable CMAKE_PREFIX_PATH doesn't exist [0.354s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/user/ros2_ws/install/my_components' in the environment variable CMAKE_PREFIX_PATH doesn't exist [0.354s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/user/ros2_ws/install/my_action_server' in the environment variable CMAKE_PREFIX_PATH doesn't exist [0.354s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/user/ros2_ws/install/my_action_client' in the environment variable CMAKE_PREFIX_PATH doesn't exist [0.354s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/user/ros2_ws/install/movement_pkg' in the environment variable CMAKE_PREFIX_PATH doesn't exist [0.354s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/user/ros2_ws/install/logs_test' in the environment variable CMAKE_PREFIX_PATH doesn't exist [0.354s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/user/ros2_ws/install/exercise42_pkg' in the environment variable CMAKE_PREFIX_PATH doesn't exist [0.354s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/user/ros2_ws/install/executors_exercises_pkg' in the environment variable CMAKE_PREFIX_PATH doesn't exist [0.355s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/user/ros2_ws/install/custom_interfaces' in the environment variable CMAKE_PREFIX_PATH doesn't exist [0.355s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/user/ros2_ws/install/client_pkg' in the environment variable CMAKE_PREFIX_PATH doesn't exist [0.355s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/user/ros2_ws/install/actions_quiz' in the environment variable CMAKE_PREFIX_PATH doesn't exist [0.355s] WARNING:colcon.colcon_ros.prefix_path.catkin:The path '/home/user/ros2_ws/install/actions_quiz_msg' in the environment variable CMAKE_PREFIX_PATH doesn't exist Finished <<< my_package [2.12s]

Hello @mrbinggrae ,

This is not really an Error, but a Warning. In this case, it indicates that the build process is expecting some packages in the workspace that don’t exist anymore (ie. topics_quiz, topic_subscriber_pkg, topic_publisher_pkg…).

This can happen, for instance, when you remove packages from your workspace. In most cases, you can just ignore it and it will disappear once the terminal is reset.

Best,

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.