Unit4_compiling

Hello,

$ cd ~/catkin_ws
$ catkin build
$ source devel/setup.bas

When I execute the above code, I take the below result.

user:~/catkin_ws$ catkin build
The build space at ‘/home/user/catkin_ws/build’ was previously built by ‘catkin_make’. Please remove the build space or pick a different build space.
user:~/catkin_ws$ source devel./setup.bash
bash: devel./setup.bash: No such file or directory

Please use only catkin_make going forward, for the courses, to prevent this kind of error. This should fix it:

cd ~/catkin_ws
rm -rf build/ devel/
catkin_make

# Note it's not "devel./setup.bash"
source devel/setup.bash
1 Like