-
Notifications
You must be signed in to change notification settings - Fork 109
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
Unable to build gst-plugins-spotify #358
Comments
You need to source the directory To load the development tools either relogin or execute |
Thanks, but I've already done that. ~/.cargo/bin is on my PATH which cargo cargo --version The error is clearly coming from cargo itself, but I've tried setting CARGO_LOG=debug and I don't get any further information. I did previously have cargo installed from the Raspbian repository but it was too old to build this project so I apt-purged it before installing as in the Mopidy instructions. Could there be some config somewhere that it left behind? |
How about invoking directly ? |
OK finally found it on Google. The issue is that Raspbian is 32-Bit and the installer incorrectly identifies it as 64 Bit. You need to do a custom installation of Rust and, when asked for the default host triple, enter arm-unknown-linux-gnueabihf (This is for Raspberry Pi 4. It might be different for other Pi versions) It has now built and installed. Now to see if I can remember my Spotify password.... |
Hmm. Just reinstated my Spotify Premium subscription, regenerated the secrets, updated my mopidy.conf and
|
You'll notice there is no new release yet. You'll need to remove mopidy-spotify Debian package and/or pypi package and install the latest development version from GitHub instead e.g. (using sudo if necessary)
To be fair, this isn't at all clear from the readme. I had meant to address that, sorry. |
Fantastic! Thank you, Spotify has returned! Big thanks for all your work on this, I really did think Spotify support would never come back. It's hugely appreciated. Now, perhaps I should see about reinstating those spotify features I pulled out of RompR in a fit of rage? |
I have built a radio for my kids, running on a Raspberry Pi Zero 2W. It involves some hardware and Mopidy, and my main Python script uses MPD to make the buttons to do things with Mopidy/Spotify. The radio is not working anymore for more than a year, but I really want to fix it now. I'm a hobbyist and not a professional programmer, which option you think is the easiest to take:
|
@MrTolchock I just built a Pirate Audio using a Pi Zero and all of the instructions in the README are easy to follow except for building the driver: the Pi Zero does not have enough memory to compile/link the library. What I did:
The "trick" is that the library driver has to be compiled on the target system and the Pi Zero can only run the 32-bit OS -- and everyone else in the world is now using 64-bits. 😏 |
What I did was similar as @EAGrahamJr , cross-compile the I did this for a 64-bit OS. You can find the compiled library on my website (see below). Tested on many RPi3b+ and 4, both running Raspberry Pi OS (64-bit, Debian Bullseye). What I do to install gstreamer with the spotify library:
|
I've been playing on and off with automating the builds. There's a 32-bit Pi0 compatible deb at https://github.com/kingosticks/gst-plugin-spotify-build/suites/16959617041/artifacts/968984234 you can test if you like. |
New pre-release at https://github.com/mopidy/mopidy-spotify/releases/tag/v5.0.0a1 and gst-plugins-spotify package for a few platforms at https://github.com/kingosticks/gst-plugins-rs-build/releases/tag/gst-plugin-spotify_0.12.2-1 |
On a Raspberry Pi 4 running Raspbian bullseye. I've followed the instructions - downloaded rust, all the dependencies etc. When I do
cargo build --package gst-plugin-spotify --release
I get
error: command failed: 'cargo': No such file or directory (os error 2)
There's no other information and I know nothing about Rust. Can anybody help?
The text was updated successfully, but these errors were encountered: