Skip to content

Build failure through sdl2 #54

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

Closed
alexchandel opened this issue Aug 3, 2014 · 9 comments
Closed

Build failure through sdl2 #54

alexchandel opened this issue Aug 3, 2014 · 9 comments

Comments

@alexchandel
Copy link

When I pull hematite and run cargo build, I get this:

Could not compile `sdl2`.

--- stderr
src/sdl2/audio.rs:264:100: 264:109 error: wrong number of lifetime parameters: expected 1 but found 0 [E0107]
src/sdl2/audio.rs:264     pub fn open(device: Option<&str>, iscapture: int, spec: &AudioSpec) -> SdlResult<(AudioDevice, AudioSpec)> {
                                                                                                                         ^~~~~~~~~
error: aborting due to previous error
@TyOverby
Copy link

TyOverby commented Aug 3, 2014

We are using the most recent version of SDL2, so this should probably be filed as a bug over here: https://github.com/AngryLawyer/rust-sdl2.

Closing for now.

@TyOverby TyOverby closed this as completed Aug 3, 2014
@alexchandel
Copy link
Author

Don't you mean https://github.com/PistonDevelopers/rust-sdl2#29f1db0b ? When I build hematite, this is what it tries to build.

@bvssvni
Copy link
Member

bvssvni commented Aug 3, 2014

@alexchandel Try cargo build -u

@alexchandel
Copy link
Author

$ cargo build -u
The -u flag has been deprecated, please use the `cargo update` command instead
$ cargo update
A Cargo.lock must exist before it is updated

And of course cargo build fails because the packages are outdated. I'm really growing to hate cargo.

@bvssvni
Copy link
Member

bvssvni commented Aug 3, 2014

@alexchandel Somebody mentioned that deleting ~/.cargo fixes it.

@alexchandel
Copy link
Author

~/.cargo

Are we really still considering dumping crap in the user's home directory in 2014?

@indiv0
Copy link
Member

indiv0 commented Aug 3, 2014

Where else would you put it? Besides, that's a cargo issue.

@alexchandel
Copy link
Author

Where else would you put it? Besides, that's a cargo issue.

What do you think ~/.config, ~/.cache, and ~/.local are for?

@alexchandel
Copy link
Author

But deleting this fixed everything except a ld: library not found for -lSDL2, which was remedied by installing SDL2.

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