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

Wayland Support #847

Open
ghost opened this issue Apr 1, 2022 · 8 comments
Open

Wayland Support #847

ghost opened this issue Apr 1, 2022 · 8 comments

Comments

@ghost
Copy link

ghost commented Apr 1, 2022

Please enable OGRE EGL support with the CMake flag -DOGRE_GLSUPPORT_USE_EGL=1

@ciandonovan
Copy link

$ /usr/bin/podman run --rm -it --net=host --env QT_QPA_PLATFORM=wayland --env XDG_RUNTIME_DIR=/run --volume=/run/user/1000/wayland-0:/run/wayland-0 --device=/dev/dri/card0 rviz_test /bin/bash
root@a4ae111c8866:/# rviz2
Using Wayland-EGL
Using the 'xdg-shell' shell integration
Segmentation fault

Without EGL support compiled into OGRE, RViz segfaults when trying to use the Wayland platform.
AFAIK starting with OGRE 1.13 EGL support will be compiled in by default, does ROS2 plan to move to OGRE 1.13 anytime soon?

@clalancette
Copy link
Contributor

AFAIK starting with OGRE 1.13 EGL support will be compiled in by default, does ROS2 plan to move to OGRE 1.13 anytime soon?

No, not soon. Our main platform (Ubuntu 22.04) is still on OGRE 1.12, so we generally follow that.

@ciandonovan
Copy link

Is the RViz that you ship as binary packages as part of an official ROS distro built from the Ubuntu OGRE package or from source? The build instructions on github seem to indicate that that building from source without relying on other Ubuntu ROS packages is preferred.
If it is the case that RViz is built from upstream OGRE, is there any possibility that its build flags can be modified, or is it the case that RViz dynamically links with Ubuntu's OGRE libraries?

@clalancette
Copy link
Contributor

As it stands, we always vendor our own package (build from source). The goal is to eventually link against Ubuntu's OGRE libraries, but we aren't ready to do that yet.

@ciandonovan
Copy link

In that case would you be open to tweaking how you build OGRE in order to support features like Wayland, or would you rather keep the OGRE libraries built from upstream as similar to the Ubuntu libraries as possible if the goal is to eventually link against them?

@clalancette
Copy link
Contributor

In that case would you be open to tweaking how you build OGRE in order to support features like Wayland, or would you rather keep the OGRE libraries built from upstream as similar to the Ubuntu libraries as possible if the goal is to eventually link against them?

We can tweak it (we already do in other ways), but that tweak might go away if we ever use the upstream package.

@victorcarvesk
Copy link

I'm unable to run RViz2 on Ubuntu 22.04 (using Wayland), what I can do to resolve this?

@Yadunund
Copy link
Member

I'm unable to run RViz2 on Ubuntu 22.04 (using Wayland), what I can do to resolve this?

Does exporting envar QT_QPA_PLATFORM=xcb help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants