[GH-ISSUE #200] librespot hangs on compilation #138

Closed
opened 2026-02-27 19:29:02 +03:00 by kerem · 5 comments
Owner

Originally created by @Wqrld on GitHub (Apr 7, 2018).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/200

pi@raspberry:~/spotifix/librespot $ sudo cargo build --release
    Updating registry `https://github.com/rust-lang/crates.io-index`

it doesnt seem to continiue after that, are there precompiled binaries available for me to use?
edit: raspberry pi
edit: eyy issue 200

Originally created by @Wqrld on GitHub (Apr 7, 2018). Original GitHub issue: https://github.com/librespot-org/librespot/issues/200 ``` pi@raspberry:~/spotifix/librespot $ sudo cargo build --release Updating registry `https://github.com/rust-lang/crates.io-index` ``` it doesnt seem to continiue after that, are there precompiled binaries available for me to use? edit: raspberry pi edit: eyy issue 200
kerem closed this issue 2026-02-27 19:29:02 +03:00
Author
Owner

@ashthespy commented on GitHub (Apr 7, 2018):

It takes quite a while to build on the pi*, especially the first build. I'd suggest using the docker images to cross compile instead.

*I have managed on the pi3, takes about 30+mins.

<!-- gh-comment-id:379499719 --> @ashthespy commented on GitHub (Apr 7, 2018): It takes quite a while to build on the pi*, especially the first build. I'd suggest using the docker images to cross compile instead. *I have managed on the pi3, takes about 30+mins.
Author
Owner

@Wqrld commented on GitHub (Apr 8, 2018):

it compiled way faster now weirdly but im getting

   Compiling getopts v0.2.17
error[E0301]: cannot mutably borrow in a pattern guard
   --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.17/src/lib.rs:405:73
    |
405 |                         } else if was_long || name_pos < names.len() || args.peek().map_or(true, |n| is_arg(&n)) {
    |                                                                         ^^^^ borrowed mutably in pattern guard

error: aborting due to previous error

error: Could not compile `getopts`.
Build failed, waiting for other jobs to finish...

during compilation

edit moved getops in the registry and it now seems to work, compiling...

nope, now getting a lot of

error: `pub(restricted)` syntax is experimental (see issue #32409)
   --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/lewton-0.8.0/src/header.rs:216:6
    |
216 |   pub(crate) cached_bs_derived :[CachedBlocksizeDerived; 2],
    |  
<!-- gh-comment-id:379524264 --> @Wqrld commented on GitHub (Apr 8, 2018): it compiled way faster now weirdly but im getting ``` Compiling getopts v0.2.17 error[E0301]: cannot mutably borrow in a pattern guard --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/getopts-0.2.17/src/lib.rs:405:73 | 405 | } else if was_long || name_pos < names.len() || args.peek().map_or(true, |n| is_arg(&n)) { | ^^^^ borrowed mutably in pattern guard error: aborting due to previous error error: Could not compile `getopts`. Build failed, waiting for other jobs to finish... ``` during compilation edit moved getops in the registry and it now seems to work, compiling... nope, now getting a lot of ``` error: `pub(restricted)` syntax is experimental (see issue #32409) --> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/lewton-0.8.0/src/header.rs:216:6 | 216 | pub(crate) cached_bs_derived :[CachedBlocksizeDerived; 2], | ```
Author
Owner

@Wqrld commented on GitHub (Apr 8, 2018):

i have gotten this to work by using raspotify

i still have a problem with the audio not playing anymore after around 5 songs, i remember there being a github issue for this but i cant seem to find it

<!-- gh-comment-id:379536778 --> @Wqrld commented on GitHub (Apr 8, 2018): i have gotten this to work by using raspotify i still have a problem with the audio not playing anymore after around 5 songs, i remember there being a github issue for this but i cant seem to find it
Author
Owner

@ComlOnline commented on GitHub (Apr 11, 2018):

It could be related to the re connection issue. If librespot is disconnected from the internet it will crash.

<!-- gh-comment-id:380560128 --> @ComlOnline commented on GitHub (Apr 11, 2018): It could be related to the re connection issue. If librespot is disconnected from the internet it will crash.
Author
Owner

@Wqrld commented on GitHub (Apr 11, 2018):

for the other people this was an issue with portaudio so i will try to rework that while adding my new soundcard

(with no frkin tutorial on how to set it up in software)

<!-- gh-comment-id:380562266 --> @Wqrld commented on GitHub (Apr 11, 2018): for the other people this was an issue with portaudio so i will try to rework that while adding my new soundcard (with no frkin tutorial on how to set it up in software)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#138
No description provided.