SITL Build Issue

Hi, I’m currently trying to build two PX4s so that I can connect PX4 to multiple simulators at a time. To do so, I’ve created two PX4 directories and changed their TCP & UDP Port (all the directories in makefile are set as separate directories). But, when I try to build them together, this error message shows up.

I’ve tried building both px4 separately and they work perfectly when only one of them are built. But when I finish building one, and try to build the second, the error message above shows up and the second one doesn’t get built. How should I build multiple PX4? Thank you.

It sounds like you want more than one PX4 instance.

Have you tried using the instance argument?