Skip to content

Add features x11, wayland and alsa to sdl #628

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

Merged
merged 2 commits into from
Jul 12, 2025

Conversation

unexploredtest
Copy link
Contributor

@unexploredtest unexploredtest commented Jul 12, 2025

In commit fa48461, the sdl version was upgraded from 2.24.2 to 2.30.11 in vcpkg. From what I understood, in older versions even if you disable default features, SDL would be built with x11 anyways (?) however that changed since version 2.26.2 in vcpkg and not using default features resulted in neither building with x11 nor with wayland support, which results in having the no display issue.

Here we explicitly specify to use features x11 and wayland, which fixes the issue. We don't enable default features as that includes ibus and dbus which aren't necessary and cause build issues anyways.

Fixes #625.

Also sdl was never built with audio support on Linux, which we enable the feature alsa for the audio to work.

Partially fixes #588. (Only solves Linux's issue)

@pseudo-rnd-thoughts
Copy link
Member

@unexploredtest Thanks for the PR. Do you want to add #588 fix here?

@unexploredtest
Copy link
Contributor Author

Yeah will add shortly

@unexploredtest unexploredtest changed the title Add features x11 and wayland to sdl Add features x11, wayland and alsa to sdl Jul 12, 2025
@unexploredtest
Copy link
Contributor Author

@pseudo-rnd-thoughts Fix added

@pseudo-rnd-thoughts pseudo-rnd-thoughts merged commit 84f3fad into Farama-Foundation:master Jul 12, 2025
33 of 34 checks passed
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.

Visually not getting rendered in Ubuntu No sound on Windows and Linux
2 participants