How to build MAVSDK with custom mavlink messages

I try to build from sources following Building library from Source · MAVSDK Guide
Is there a better way to do this than editing a patch in third_parties/mavlink ?

It’s not straightforward. I would probably do xml changes/additions and then swap out the mavlink repo here:

I’m planning to add the capability to add messages at runtime using libmav in version 4 of MAVSDK.

1 Like

thanks for the hint and quick response. Btw, will it work with local repository?

It should. It’s whatever cmake supports for that.