ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

"catkin_make" must be invoked in the root of workspace

asked 2019-06-12 17:24:59 -0500

vidalquent gravatar image

updated 2019-06-13 16:42:33 -0500

jayess gravatar image

Hi, I've got this problem, I saw other people with it, but answer on their topic didn't help me So i exactly have The specified base path "/home/eisti/catkin_ws/src/turtlesim_cleaner" contains a package but "catkin_make" must be invoked in the root of workspace When I try

~/catkin_ws/src/turtlesim_cleaner$ catkin_make

I'm just trying to do this tutorial

So the last things to do in this tutorials doesn't work " rosrun turtlesim_cleaner move.py" I think it's because of that, but I don't know how to fix this, I just follow the turorials

this is my workespace

catkin_ws/
     /build
     /devel
    /frames.gv
    /frames.pdf
   /install
   /src (in this one)
        /beginner_tutorials
        /CMakeLists.txt
        /learning_tf
        /turtlesim_cleaner

Edit:

Thank you,

In fact I had an other problem and I thougth it was from this catkin_make, but it wasn't I had a rospack error, like this, and solve it with this topic

But I still do not understant this line in the tutorial

$ cd ~/catkin_ws/src/turtlesim_cleaner 
$ mkdir src 
$ catkin_make

because like this catkin_make can't work

edit retag flag offensive close merge delete

Comments

I saw other people with it, but answer on their topic didn't help me

Can you please update your question with links to the answers that you've tried using? This will help to keep people from suggesting solutions that you've already attempted

jayess gravatar image jayess  ( 2019-06-12 18:06:42 -0500 )edit

1 Answer

Sort by » oldest newest most voted
5

answered 2019-06-12 18:03:30 -0500

jayess gravatar image

updated 2019-06-13 18:12:08 -0500

You need to run that command from the root of your workspace, not from the root of your package. In other words, cd to the root of your workspace and run that command:

cd ~/catkin_ws
catkin_make

Update:

The part of that tutorial that says

$ cd ~/catkin_ws/src/turtlesim_cleaner 
$ mkdir src 
$ catkin_make

is incorrect. You should only call catkin_make from the root of your workspace. I've updated the tutorial. What it should (and does now) read is

$ cd ~/catkin_ws/src/turtlesim_cleaner
$ mkdir src
$ cd ~/catkin_ws
$ catkin_make
edit flag offensive delete link more

Comments

@vidalquent If this answered your question, please click on the check mark (✓) next to the answer to mark it as correct

jayess gravatar image jayess  ( 2019-06-14 23:50:18 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2019-06-12 17:24:59 -0500

Seen: 3,042 times

Last updated: Jun 13 '19