Ask Your Question

why isn't catkin_make working?

asked 2019-11-03 21:25:29 -0500

patkunaa gravatar image

updated 2019-11-04 02:19:47 -0500

gvdhoorn gravatar image

I am using ROS 2 - dashing on Ubuntu 18.04.

I am trying to run catkin_make in my catkin_ws (workspace) directory but I am getting the error:

command 'catkin_make' not found

Terminal says it can be corrected by running sudo apt install catkin but that gives the error:

The following packages have unmet dependencies:
 catkin : Depends: python-catkin-pkg but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

. Most of the fixes I saw said to include the source (source /opt/ros/dashing/setup.bash) in the .bashrc but I already have included the source and have run the source ~/.bashrc command. I have also tried running sudo apt-get install ros-dashing-catkin but that gives the error:

E: Unable to locate package ros-dashing-catkin

Does anyone have any other solutions I can try?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-11-04 01:17:53 -0500

mgruhler gravatar image

AFAIR, ROS2 (post-bouncy) uses ament and, preferrably, colcon (tutorial) to build its packages. catkin is ROS1 only.

Side Note: Quick googling led to a possibility of building ROS2 packages with catkin_make_isolated (see here), but I don't think this is what you want...

edit flag offensive delete link more



In addition:

command 'catkin_make' not found

Terminal says it can be corrected by running sudo apt install catkin

This would appear to once again be an issue with wiki/UpstreamPackages. The correct package would be ros-$ROS_DISTRO-catkin, not catkin.

But as @mgruhler already mentions, ROS 2 does not use Catkin, so there is no ros-dashing-catkin package.

gvdhoorn gravatar image gvdhoorn  ( 2019-11-04 02:21:55 -0500 )edit

using colcon worked, thank you so much!

patkunaa gravatar image patkunaa  ( 2019-11-04 09:20:14 -0500 )edit

Your Answer

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

Add Answer

Question Tools

1 follower


Asked: 2019-11-03 21:25:29 -0500

Seen: 531 times

Last updated: Nov 04 '19