Colcon Build Fail When Creating Workspace
I am following the ROS2 Foxy tutorial here: https://docs.ros.org/en/foxy/Tutorial... However, when I get to the "colcon build" step, it fails with exit code 2 and "stderr: turtlesim" with very little description as to why. I think I have all the dependencies installed and everything up to date so I am not sure why this is happening. I am working on Ubuntu 20.04.
This is the error message: make[2]: * [CMakeFiles/turtlesin_rosidl_typesupport_cpp.dir/build.make:82:rosidl_typesupport_cpp/turtlesin/action/rotate_absolu te_type_support.cpp] Error 1 make[2]: Deleting file *rosidl_typesupport_cpp/turtlesin/action/rotate_absolute_ _type support. cDD" make[1]: [CMakeFiles/Makefile2:451: CMakeFiles/turtlesin_rosidl_typesupport_cpp.dir/all]Error2 make: * (Makefile: 141: all] Error 2 Failed << turtlesin [0.75s, exited with code 2]
There is a typo in your setup as it’s
turtlesim
vsturtlesin
Check if you have renamed the
turtlesim
folder accidentally after you cloneros tutorials
. This error is happening when you applycolcon build
because it generates unexpected path files as per your error and final message.Oops sorry I got that text by taking a picture of my screen so the text just didn't get read over well. It seems to be spelled correctly on my end.
There is other
m
s in the text, double check plsWait sorry, I don't quite understand. I think that all of them are supposed to be turtlesim and in my terminal they are written as such. It just won't seem to build when I run "build colcon". I'm not quite sure what could be the issue because the error message has very little information and the tutorial is fairly simple. Thank you for your help by the way!
Can you please show the output of your install:
cd ~/dev_ws/src/ros_ tutorials
ls
In that folder I have: roscpp_tutorials rospy_tutorials ros_tutorials turtlesim I do know that all but the turtlesim have COLCON_IGNORE so only turtlesim should be building when I run colcon build
And what is inside
turtlesim/src
pls copy paste the output.