mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 16:25:52 +03:00
[GH-ISSUE #399] Can not compile on Arch Linux with pulseaudio backend. #257
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#257
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MrKinauJr on GitHub (Nov 9, 2019).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/399
Hello i have a problem compiling librespot with pulseaudio backend.
Errorlog:
Compiling unreachable v1.0.0
Compiling base64 v0.5.2
Compiling shannon v0.2.0
error[E0503]: cannot use state because it was mutably borrowed
--> /home/kinau/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.14/src/lib.rs:1008:33
|
955 | let mut machine = |cont: &mut bool, (i, c): (usize, char)| {
| ---------------------------------------- borrow of state occurs here
...
959 | state = match (state, whitespace, limit) {
| ----- borrow occurs due to use of state in closure
...
1008 | while cont && match state { B | C => true, A => false } {
| ^ use of borrowed state
1009 | machine(&mut cont, (fake_i, ' '));
| ------- borrow later used here
error: aborting due to previous error
For more information about this error, try rustc --explain E0503.
error: could not compile getopts.
warning: build failed, waiting for other jobs to finish...
error: build failed
@ashthespy commented on GitHub (Nov 9, 2019):
What version of Rust are you on? Looks like you need to update to at least 1.32
@MrKinauJr commented on GitHub (Nov 9, 2019):
I am on rustc 1.39.0 (4560ea788 2019-11-04)
@ashthespy commented on GitHub (Nov 10, 2019):
Not sure why you have such an old version of
getoptsthough - 0.2.14 is from 2015. CurrentCargo.lockuses0.2.19.@MrKinauJr commented on GitHub (Nov 10, 2019):
idk too. i just git cloned it. After that downloaded cargo via pacman -S cargo rustup and then tried to compile it.
@ashthespy commented on GitHub (Nov 10, 2019):
We recommend using rustup directly, from https://rustup.rs/.
You normally don't need to install cargo separately, as its bundled with rustup
@MrKinauJr commented on GitHub (Nov 10, 2019):
yeah idk anything about rust. I just want to use it cause its headless so i can do some stuff with it via remote control and the spotify api. lemme try
@MrKinauJr commented on GitHub (Nov 10, 2019):
well sorry. had the wrong librespot repo D; this is the reason. sorry im a idiot xD
@MrKinauJr commented on GitHub (Nov 10, 2019):
fuck it. new error. compiled with
cargo build --release --features pulseaudio-backend.cant use the pulseaudio backend tho.
`
[2019-11-10T19:18:15Z INFO librespot] librespot (). Built on 2019-11-09. Build ID: BGt9RQk2
Available Backends :
`
@ashthespy commented on GitHub (Nov 10, 2019):
You still have the wrong repo -
portaudiohasn't been default for quite a while now.. Check out the wiki on compilation.@MrKinauJr commented on GitHub (Nov 10, 2019):
oh fuck im just a idiot. sorry never compiled something with rust. I thought it will get install instantly. but i needed to get the binary. Well sorry D; but thanks for pointing that out.