# catkin_make works but catkin build fails

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.

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 close merge delete

Sort by » oldest newest most voted

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.

more

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.

more