[build] Error: Unable to find source space `/home/usr/Desktop/src`
I am trying to build a workspace that is stored in: /home/usr/Desktop/ROS/workspace/
, the workspace
directory is clean and does not contain any hidden files hence .catkin_tools
is not present. It only contains one directory src
. I have tried catkin init
with empty src
directory and by putting a package in src
. Here is the output:
Catkin workspace `/home/usr/Desktop` is already initialized. No action taken.
-----------------------------------------------------------
Profile: alternate
Extending: [explicit] /opt/ros/melodic
Workspace: /home/usr/Desktop
-----------------------------------------------------------
Build Space: [missing] /home/usr/Desktop/build
Devel Space: [missing] /home/usr/Desktop/devel
Install Space: [unused] /home/usr/Desktop/install
Log Space: [missing] /home/usr/Desktop/logs
Source Space: [missing] /home/usr/Desktop/src
DESTDIR: [unused] None
-----------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
-----------------------------------------------------------
Additional CMake Args: None
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-----------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-----------------------------------------------------------
-----------------------------------------------------------
WARNING: Source space `/home/usr/Desktop/src` does
not yet exist.
-----------------------------------------------------------
What I don't understand is why is catkin looking for workspace in /home/usr/Desktop
and not the current directory
? The same package is easily built with catkin_make though
and I am able to run all the nodes. Also If I put src
in /home/usr/Desktop
I am able to build successfully.
I am using ROS Melodic on Ubuntu 18.04. I am not sure about the catkin tools version but i installed it from here: https://jbohren-ct.readthedocs.io/en/...
Please try to always use the main documentation when using any tools. In this case that would be here:
The fact that the link you posted (eventually) leads to an account called:
jbohren-forks
seems to suggest it is not the main version of the documentation.