ouster-lidar / ouster-ros

Official ROS drivers for Ouster sensors (OS0, OS1, OS2, OSDome)
https://ouster.com
Other
116 stars 139 forks source link

deprecated declarations #304

Open grischi opened 6 months ago

grischi commented 6 months ago

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):

kbiesiadecki141 commented 1 month ago

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

Samahu commented 1 month ago

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"