catkin_make fail - must be invoked in the root of workspace?
Hello,
I'm getting an error when trying to perform the first 'catkinmake' in the tutorial exercises. I'm running hydro on Ubuntu 12.04 in virtualBox. Just following the tutorials I'm getting the following error when trying to run 'catkinmake' from the ~/catkin_ws directory created in the tutorials:
The specified base path "/home/clyde/catkinws" contains a CMakeLists.txt but "catkinmake" must be invoked in the root of workspace
Does anyone know what could possibly be causing this and/or how I might go about fixing it?
Thanks.
Asked by Clyde on 2014-03-31 13:13:22 UTC
Answers
Likely the problem was that you ran catkin_init_workspace
in ~/catkin_ws instead of ~/catkin_ws/src
Asked by jarvisschultz on 2014-03-31 14:24:54 UTC
Comments
Just a note: you don't actually need to run catkin_init_workspace
, catkin_make
(or catkin build
) will do that for you if it detects it is necessary.
Asked by gvdhoorn on 2016-12-04 09:07:13 UTC
woah.... that's neat. I didn't realize catkin_make
had that behavior built-in.
Asked by jarvisschultz on 2016-12-04 18:48:43 UTC
Comments
Deleted workspace and tried again, this time it worked. Must of just screwed up somewhere.
Asked by Clyde on 2014-03-31 13:38:33 UTC
@jarvisschultz thanks .. your comment is really helpful
Asked by 1995YogeshSharma on 2016-06-09 03:33:41 UTC