Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecated declarations #304

Closed
grischi opened this issue Feb 23, 2024 · 2 comments · Fixed by #363
Closed

deprecated declarations #304

grischi opened this issue Feb 23, 2024 · 2 comments · Fixed by #363
Assignees
Labels
bug Something isn't working

Comments

@grischi
Copy link

grischi commented Feb 23, 2024

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 grischi added the bug Something isn't working label Feb 23, 2024
@kbiesiadecki141
Copy link

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

@Samahu Samahu self-assigned this Jul 24, 2024
@Samahu
Copy link
Contributor

Samahu commented Jul 24, 2024

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants