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

Build fails on Ubuntu 20.04 #330

Closed
r1walz opened this issue Aug 24, 2020 · 4 comments
Closed

Build fails on Ubuntu 20.04 #330

r1walz opened this issue Aug 24, 2020 · 4 comments
Labels
A-Build-System Related to build systems or continuous integration C-Dependencies A change to the crates that Bevy depends on C-Docs An addition or correction to our documentation

Comments

@r1walz
Copy link

r1walz commented Aug 24, 2020

Bevy requires alsa (provided by libsdl2-dev on Ubuntu) to be compiled
on Linux based platforms as mention by the following error:

Error Log
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "`\"pkg-config\" \"--libs\" \"--cflags\" \"alsa\"` did not exit successfully: exit code: 1\n--- stderr\nPackage alsa was not found in the pkg-config search path.\nPerhaps you should add the directory containing `alsa.pc\'\nto the PKG_CONFIG_PATH environment variable\nNo package \'alsa\' found\n"', /home/r1walz/.cargo/registry/src/github.com-1ecc6299db9ec823/alsa-sys-0.1.2/build.rs:4:5

But I was unable to find this in the docs or anywhere else. Please, investigate and
provide a list of such dependencies for different platforms.

@multun
Copy link
Contributor

multun commented Aug 24, 2020

It's pretty well documented already https://bevyengine.org/learn/book/getting-started/setup/
(there's a link to this page in the readme)

@karroffel karroffel added A-Build-System Related to build systems or continuous integration C-Docs An addition or correction to our documentation C-Dependencies A change to the crates that Bevy depends on labels Aug 24, 2020
@karroffel
Copy link
Contributor

This could probably be made a bit clearer in the README then

@Zooce
Copy link
Contributor

Zooce commented Sep 21, 2020

I get a similar failure but for libudev. The Linux dependencies document does not include either libudev-dev or libsdl2-dev.

@alice-i-cecile
Copy link
Member

Documented in Linux dependencies now <3 Credit to @MinerSebas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Build-System Related to build systems or continuous integration C-Dependencies A change to the crates that Bevy depends on C-Docs An addition or correction to our documentation
Projects
None yet
Development

No branches or pull requests

5 participants