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

surface: Force QT plugin to match supported surface extension #222

Conversation

HildarTheDorf
Copy link
Contributor

This results in useful info always being produced unless QT_QPA_PLATFORM has been explicitly set in the environment.

Note: Setting QT_QPA_PLATFORM=xcb when running on not-xcb will result in a segfault without #221.

@HildarTheDorf
Copy link
Contributor Author

HildarTheDorf commented Nov 21, 2024

Note2: This causes the wayland build to not run on an X display server at all. This seems unlikely to be a problem in practice, and I intent to write a longer PR fixing that, but I can rethink things if that's unacceptable.

The error message is reasonably helpful, as error messages go:

karenw@zalera:~/src/VulkanCapsViewer$ ./vulkanCapsViewer 
Failed to create wl_display (No such file or directory)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Aborted (core dumped)

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

Successfully merging this pull request may close these issues.

1 participant