Odometry-publisher-system doesnt work with "ign gazebo world.sdf"

Hi! I’d like to have my drone publish odometry messages, but this only seems to be possible with gz sim world.sdf, which only works with ROS2. When I try with ign gazebo world.sdf, I get the following error : [Err] [SystemLoader.cc:66] Failed to load system plugin [ignition-gazebo-odometry-publisher-system] : couldn't find shared library.

Both of the following forms of this plugin work in gz sim world.sdf, and neither in ign gazebo world.sdf :

<plugin
      filename="gz-sim-odometry-publisher-system"
      name="gz::sim::systems::OdometryPublisher">
      <dimensions>3</dimensions>
  </plugin>
  
  <plugin
      filename="ignition-gazebo-odometry-publisher-system"
      name="ignition::gazebo::systems::OdometryPublisher">
      <dimensions>3</dimensions>
  </plugin>

Thanks!