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

catkin_make works but catkin build fails

asked 2017-12-01 08:53:58 -0500

danividanivi gravatar image

I am working with a complex software where I have to make some changes. In order to build it, I was instructed to use catkin_make, which was (and is) working well. Now I have to use MAVROS, and the guide says to use catkin build instead.

However, I am unable to do so, it keeps giving a lot of errors, most of them about not found header files.

Why is this happening? shouldn't both methods build fine? (or fail both)

Is it possible to work with MAVROS with catkin_make?

(I know you can't work with both at the same time, so before switching I am doing catkin clean --all)

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2017-12-01 09:19:48 -0500

mgruhler gravatar image

updated 2017-12-01 09:20:30 -0500

Well, it would be easier to help if you would post the error Output...

catkin build is more strict in some ways than catkin_make. E.g. it is more sensitive to having dependencies specified correctly. I guess (as there is no error output) this is your Problem.

About whether you can bild MAVROS with catkin_make, I'd like to cite the guide you linked to:

Note that while the package can be built using catkin_make the prefered method is using catkin_tools as it is a more versatile and "friendly" build tool.

edit flag offensive delete link more

answered 2017-12-01 14:57:26 -0500

jayess gravatar image

updated 2017-12-01 14:58:36 -0500

In addition to what @mig said, checkout @joq's answer in which he states not to mix catkin_make and catkin build. Here's the body of his answer.

Do not combine the two build tools in the same workspace at the same time. Their build artifacts are incompatible.

If you run catkin config, it will tell you which toolset is currently in use. If you wish to switch to catkin build, run catkin clean -bdyfirst.

Here's the catkin_tools docs.

edit flag offensive delete link more

Question Tools



Asked: 2017-12-01 08:53:58 -0500

Seen: 2,504 times

Last updated: Dec 01 '17