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

Include libsdl2-dev as default dependency for Linux systems #466

Closed
GyulyVGC opened this issue Jan 8, 2023 · 1 comment
Closed

Include libsdl2-dev as default dependency for Linux systems #466

GyulyVGC opened this issue Jan 8, 2023 · 1 comment

Comments

@GyulyVGC
Copy link

GyulyVGC commented Jan 8, 2023

On Linux, rodio doesn't compile, as already described in #200, until a missing dependency is installed.

Personally, I solved with: sudo apt install libsdl2-dev.

However, I'm developing an application that depends on rodio and it'd be cool for my Linux users to not have to worry about installing any additional dependency.

Is there a way to achieve that?

@est31
Copy link
Member

est31 commented Jan 8, 2023

Unfortunately you have to ask your users to install the apt packages beforehand (or other linux packages), as cargo does not deal with them. Regarding sdl, actually we need alsa bindings only. sdl is not used by rodio (or cpal, which handles the cross platform part). See the packages listed in the issue you linked.

On userland, Linux has no clear separation between OS API and "libraries", so applications targetting linux instead have to link to specific libraries, like Alsa for example. So instead of being able to install one OS "SDK", there are a bunch of smaller libraries instead.

@est31 est31 closed this as completed Jan 8, 2023
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

2 participants