ros-visualization / rviz

ROS 3D Robot Visualizer
BSD 3-Clause "New" or "Revised" License
831 stars 463 forks source link

OgreVector3.h is deprecated in favor of OgreVector.h #1741

Closed lucasw closed 2 years ago

lucasw commented 2 years ago

Description

Replace all includes of OgreVector3.h with OgreVector.h for Ogre 1.12 (I noticed this because locus Fuse has Werror and errored on the OgreVector3.h with ogre 1.12).

Checklist

rhaschke commented 2 years ago

Replacing OgreVector3.h with more generic Ogre.h isn't a good way to go: this requires including many more files, which slows down compilation. In Ogre 1.12, there is OgreVector.h (without 3), but this is not available in earlier versions...

lucasw commented 2 years ago

It looks like it takes around 24 minutes instead of 20 in the ci system, assuming the ci is consistent.

What do you think of this intermediary include with an ogre version conditional include in it?

rhaschke commented 2 years ago

Using conditional includes is fine. What kind of deprecation warnings do you get? From which source file?

lucasw commented 2 years ago
In file included from /home/lucasw/base_catkin_ws/src/ros/rviz/src/rviz/robot/robot_link.h:40,
                 from /home/lucasw/base_catkin_ws/src/ros/rviz/src/rviz/robot/robot_joint.cpp:31:
/usr/include/OGRE/OgreVector3.h:2:62: note: ‘#pragma message: /usr/include/OGRE/OgreVector3.h is deprecated, migrate to Ogre.h’
    2 | #pragma message( __FILE__ " is deprecated, migrate to Ogre.h")

It's Ogre 1.12.10

rhaschke commented 2 years ago

I added a CI build job for OGRE 1.12. Please rebase your branch onto latest noetic-devel to see remaining issues. Thanks.

lucasw commented 2 years ago

Nope, just a bunch of the deprecated-copy warnings on the jenkins focal build- but that must be failing everywhere, not related to this