Jmavsim not found during installation: ninja error : unknown target 'jmavsim', did you mean 'jsbsim'?

I am trying to build the PX4 firmware using the procedure layed out here: Ubuntu Development Environment | PX4 User Guide

However, when I try to make the jmavsim environment using the command: make px4_sitl jmavsim ; I get a ninja error : unknown target ‘jmavsim’, did you mean ‘jsbsim’?

I have tried installing java and ant as suggested in a previous issue, but it sill does not remove the error.

1 Like

I am getting the same error even after installing ant and java. My Ubuntu version is 22.04

I had the same error and I tried to run make distclean before make px4_sitl jmavsim and fixed it.