mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #337] Could not compile librespot-audio #222
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#222
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 @jtonk on GitHub (Jun 7, 2019).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/337
I'm getting an error on latest version on an RPI, OSX and Ubuntu for Windows.
any idea why?
~/librespot $ cargo build --release
Compiling librespot-audio v0.1.0 (file:///opt/librespot/librespot/audio)
error[E0407]: method
sourceis not a member of traiterror::Error--> audio/src/lewton_decoder.rs:78:5
|
78 | / fn source(&self) -> Option<&(dyn error::Error + 'static)> {
79 | | error::Error::source(&self.0)
80 | | }
| |_____^ not a member of trait
error::Error@bodiroga commented on GitHub (Jun 22, 2019):
+1
EDIT: this is the error I get when trying to compile the program with 'verbose' option enabled.
Raspberry Pi 3, latest git version (2019-06-22) and cargo 1.28.0, rustc 1.28.0 and built with the command "cargo build --features pulseaudio-backend --release".
Thanks for all the hard work!
@kingosticks commented on GitHub (Jun 22, 2019):
The build instructions in the readme state that at least rust v1.30.0 is required.
@bodiroga commented on GitHub (Jun 22, 2019):
Ouch, sorry, I have upgraded my rust and cargo version to 1.35.0 and now everything works correctly. Give it a try @jtonk and let us know 😉
PS: @kingosticks, you have been a minute faster 😄
EDIT: as stated by @kingosticks, I have corrected the version number (it's 1.35.0, not 1.3.5)
@kingosticks commented on GitHub (Jun 22, 2019):
No worries, glad it's working for you now (I assume you meant v1.35.0).
And if you still have problems @jtonk please provide more details (e.g. your version numbers).
@jtonk commented on GitHub (Jun 25, 2019):
that resolved the issue on osx, couldn't test yet with other OS, but I think we can close this. Tnx!