ouster-ros
ouster-ros copied to clipboard
deprecated declarations
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:
- clone this repo and its submodules to a ros2 workspace
- source /opt/ros/humble/setup.bash
- 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
I am also having this issue on Ubuntu 22.04. Any suggestions?
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"