Ask Your Question
0

Error when using catkin_make command

asked 2017-01-02 08:54:27 -0600

Werewolf_86 gravatar image

Hi,

I was going through this tutorial : http://wiki.ros.org/rviz/Tutorials/Ma...

I went step by step through the tutorial. Everything went well until i tried executing the command: catkin_make

It gives me error:

The specified base path "/home/rajesh/using_markers" contains a package but "catkin_make" must be invoked in the root of workspace

I don't know how to fix this error before proceeding with the tutorial. I appreciate any help.

Thanks and regards.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2017-01-02 10:18:22 -0600

paulbovbel gravatar image

You should go through this tutorial ( http://wiki.ros.org/catkin/Tutorials ) to learn how to use workspaces and packages.

edit flag offensive delete link more
0

answered 2018-05-06 20:14:34 -0600

Do the following:

Goto your workspace,

$ cd "your workspace path"


So,

$ ls

You will see something as

build devel src


Now execute your command-line: "$ catkin_make"

$ catkin_make


Your error occur because you are not in the workspace directory, you can see the folder in this command

$ echo $ROS_PACKAGE_PATH


If the folder not exists, you can create,

$ mkdir ~/catkin_ws/src


Copy your folder to ~/catkin_ws/src

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2017-01-02 08:54:27 -0600

Seen: 95 times

Last updated: Jan 02 '17