ouster-ros icon indicating copy to clipboard operation
ouster-ros copied to clipboard

deprecated declarations

Open grischi opened this issue 1 year ago • 2 comments

Describe the bug When compiling the ros2 branch with Ubuntu 22.04 & ros2 humble, gcc (11.4) prints several deprecated declaration warnings

To Reproduce Steps to reproduce the behavior:

  1. clone this repo and its submodules to a ros2 workspace
  2. source /opt/ros/humble/setup.bash
  3. colcon build --packages-up-to ouster_ros --event-handler console_direct+

Screenshots If applicable, add screenshots to help explain your problem.

Platform (please complete the following information):

  • Ouster Sensor? not relevant
  • Ouster Firmware Version? not relevant
  • ROS version/distro? humble
  • Operating System? Ubuntu Linux 22.04
  • Machine Architecture? x86-64
  • git commit hash (if not the latest). 11287a9

grischi avatar Feb 23 '24 08:02 grischi

I am also having this issue on Ubuntu 22.04. Any suggestions?

kbiesiadecki141 avatar Jul 24 '24 21:07 kbiesiadecki141

Hi @kbiesiadecki141,

all of the these deprecations will be resolved in the upcoming ouster-ros release. However, in the meantime you can try adding -DCMAKE_CXX_FLAGS="-Wno-deprecated-declarations -Wno-deprecated" to your build command. In other words:

colcon build ouster_ros --cmake-args -DCMAKE_CXX_FLAGS="-Wno-deprecated-declarations -Wno-deprecated"

Samahu avatar Jul 24 '24 23:07 Samahu