PX4 SITL with Gazebo Harmonic — error loading libGstCameraSystem.so and EKF2 missing data

Hello! I have a question about PX4 SITL. I’ve completed the Toolchain installation, and setup PX4 with the no-sim-tools option cause I’ve already installed Gazebo Harmonic, and when I run “make px4_sitl gz_x500“ I get an error and some warnings.

Error:

[Err] [SystemLoader.cc:92] Failed to load system plugin [libGstCameraSystem.so] : Could not find shared library.

Warnings:

Warning [Utils.cc:132] [/sdf/model[@name=“x500_base”]/link[@name=“base_link”]/sensor[@name=“air_pressure_sensor”]/gz_frame_id:/home/maxime/PX4-Autopilot/Tools/simulation/gz/models/x500_base/model.sdf:L219]: XML Element[gz_frame_id], child of element[sensor], not defined in SDF. Copying[gz_frame_id] as children of [sensor].
Warning [Utils.cc:132] [/sdf/model[@name=“x500_base”]/link[@name=“base_link”]/sensor[@name=“magnetometer_sensor”]/gz_frame_id:/home/maxime/PX4-Autopilot/Tools/simulation/gz/models/x500_base/model.sdf:L233]: XML Element[gz_frame_id], child of element[sensor], not defined in SDF. Copying[gz_frame_id] as children of [sensor].
Warning [Utils.cc:132] [/sdf/model[@name=“x500_base”]/link[@name=“base_link”]/sensor[@name=“imu_sensor”]/gz_frame_id:/home/maxime/PX4-Autopilot/Tools/simulation/gz/models/x500_base/model.sdf:L259]: XML Element[gz_frame_id], child of element[sensor], not defined in SDF. Copying[gz_frame_id] as children of [sensor].
Warning [Utils.cc:132] [/sdf/model[@name=“x500_base”]/link[@name=“base_link”]/sensor[@name=“navsat_sensor”]/gz_frame_id:/home/maxime/PX4-Autopilot/Tools/simulation/gz/models/x500_base/model.sdf:L311]: XML Element[gz_frame_id], child of element[sensor], not defined in SDF. Copying[gz_frame_id] as children of [sensor].

WARN [health_and_arming_checks] Preflight Fail: ekf2 missing data

I am new to using gazebo with PX4-Autopilot and was wondering what can I do to solve these errors.

I am using ubuntu 24.04.5 LTS, ROS2 Jazzy and Gazebo Harmonic. Thank you!

Can you try with main? Before building run make distclean

I switched to the main branch (I was already on it), make distclean, pulled and then make px4_sitl gz_x500 and unfortunately there’s no difference :confused:

There might be other things occuring in the sim setup in the install script. Like setting env var paths for resources. I’m not at my computer to check , but if I were you I would use Claude Code to analyze the install script to help you debug the issue.

Thank you, I will try it!

Any luck? I’m running into the same issue.

I’m running Gazebo Jetty. I’ve tried installing and reinstalling PX4 and Gazebo so I may have some artifact in my environment that is now causing problems?