[help request] Librespot/Spotify Connect on Pogoplug Pro July 17, 2019 12:12PM |
Registered: 6 years ago Posts: 156 |
curl https://sh.rustup.rs -sSf | sh info: downloading installer Illegal instruction
Re: [help request] Librespot/Spotify Connect on Pogoplug Pro July 18, 2019 12:14AM |
Admin Registered: 12 years ago Posts: 17,303 |
Quote
Tier 2
Tier 2 platforms can be thought of as “guaranteed to build”. Automated tests are not run so it’s not guaranteed to produce a working build, but platforms often work to quite a good degree and patches are always welcome! Specifically, these platforms are required to have each of the following:
Official binary releases are provided for the platform.
Automated building is set up, but may not be running tests.
Landing changes to the rust-lang/rust repository’s master branch is gated on platforms building. For some platforms only the standard library is compiled, but for others rustc and cargo are too.
target std rustc cargo notes
....
....
arm-unknown-linux-gnueabi ✓ ✓ ✓ ARMv6 Linux
arm-unknown-linux-gnueabihf ✓ ✓ ✓ ARMv6 Linux, hardfloat
arm-unknown-linux-musleabi ✓ ARMv6 Linux with MUSL
arm-unknown-linux-musleabihf ✓ ARMv6 Linux, MUSL, hardfloat
...
...
Re: [help request] Librespot/Spotify Connect on Pogoplug Pro July 18, 2019 10:00AM |
Registered: 6 years ago Posts: 156 |
Re: [help request] Librespot/Spotify Connect on Pogoplug Pro July 25, 2019 11:27AM |
Registered: 6 years ago Posts: 156 |
curl https://sh.rustup.rs -sSf | sh info: downloading installer Welcome to Rust! This will download and install the official compiler for the Rust programming language, and its package manager, Cargo. It will add the cargo, rustc, rustup and other commands to Cargo's bin directory, located at: /root/.cargo/bin This path will then be added to your PATH environment variable by modifying the profile file located at: /root/.profile You can uninstall at any time with rustup self uninstall and these changes will be reverted. Current installation options: default host triple: arm-unknown-linux-gnueabihf default toolchain: stable modify PATH variable: yes 1) Proceed with installation (default) 2) Customize installation 3) Cancel installation >1 info: syncing channel updates for 'stable-arm-unknown-linux-gnueabihf' info: latest update on 2019-07-04, rust version 1.36.0 (a53f9df32 2019-07-03) info: downloading component 'rustc' 73.6 MiB / 73.6 MiB (100 %) 2.4 MiB/s in 36s ETA: 0s info: downloading component 'rust-std' 65.1 MiB / 65.1 MiB (100 %) 2.7 MiB/s in 31s ETA: 0s info: downloading component 'cargo' 4.1 MiB / 4.1 MiB (100 %) 1.6 MiB/s in 3s ETA: 0s info: installing component 'rustc' 73.6 MiB / 73.6 MiB (100 %) 875.2 KiB/s in 1m 6s ETA: 0s info: installing component 'rust-std' 65.1 MiB / 65.1 MiB (100 %) 1.6 MiB/s in 48s ETA: 0s info: installing component 'cargo' 4.1 MiB / 4.1 MiB (100 %) 1.2 MiB/s in 5s ETA: 0s info: default toolchain set to 'stable' stable installed - rustc 1.36.0 (a53f9df32 2019-07-03) Rust is installed now. Great! To get started you need Cargo's bin directory ($HOME/.cargo/bin) in your PATH environment variable. Next time you log in this will be done automatically. To configure your current shell run source $HOME/.cargo/env
root@moode:/home/pi# source $HOME/.cargo/env root@moode:/home/pi# apt-get install build-essential libasound2-dev Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version (12.3). libasound2-dev is already the newest version (1.1.3-5+rpi3). 0 upgraded, 0 newly installed, 0 to remove and 42 not upgraded.
root@moode:/home/pi/librespot# cargo build --release --target arm-unknown-linux-gnueabi
error[E0463]: can't find crate for `std` | = note: the `arm-unknown-linux-gnueabi` target may not be installed error: aborting due to previous error For more information about this error, try `rustc --explain E0463`. error: Could not compile `rand_core`. To learn more, run the command again with --verbose. root@moode:/home/pi/librespot# rustc --explain E0463
A plugin/crate was declared but cannot be found. Erroneous code example: ``` #![feature(plugin)] #![plugin(cookie_monster)] // error: can't find crate for `cookie_monster` extern crate cake_is_a_lie; // error: can't find crate for `cake_is_a_lie` ``` You need to link your code to the relevant crate in order to be able to use it (through Cargo or the `-L` option of rustc example). Plugins are crates as well, and you link to them the same way.
Re: [help request] Librespot/Spotify Connect on Pogoplug Pro July 26, 2019 12:17AM |
Admin Registered: 12 years ago Posts: 17,303 |
OPTIONS: --default-host <default-host> Choose a default host triple --default-toolchain <default-toolchain> Choose a default toolchain to install --default-toolchain none Do not install any toolchains
default host triple: arm-unknown-linux-gnueabihf
cargo build --release --target arm-unknown-linux-gnueabihf
Re: [help request] Librespot/Spotify Connect on Pogoplug Pro July 26, 2019 11:41AM |
Registered: 6 years ago Posts: 156 |
docker run -v /tmp/librespot-build:/build librespot-cross cargo build --release --target arm-unknown-linux-gnueabi --no-default-features
scp -r /private/tmp/librespot-build root@debian.local:~/
mkfifo /home/share/librepipe mkfifo /home/share/librepipe.metadata
./librespot -n "Hiveify" -u "myusername" -p "mypassword" --backend pipe --device "/home/share/librepipe" --initial-volume "100"
Re: [help request] Librespot/Spotify Connect on Pogoplug Pro July 29, 2019 11:18AM |
Registered: 6 years ago Posts: 156 |
Re: [help request] Librespot/Spotify Connect on Pogoplug Pro July 29, 2019 12:24PM |
Admin Registered: 12 years ago Posts: 17,303 |
armv5te-unknown-linux-gnueabi ARMv5TE Linux armv5te-unknown-linux-musleabi ARMv5TE Linux with MUSL
Re: [help request] Librespot/Spotify Connect on Pogoplug Pro July 29, 2019 12:26PM |
Registered: 6 years ago Posts: 156 |
docker run -v /tmp/librespot-build:/build librespot-cross cargo build --release --target armv5te-unknown-linux-gnueabi --no-default-features --features with-tremorI get an error:
error[E0463]: can't find crate for `core` | = note: the `armv5te-unknown-linux-musleabi` target may not be installed error: aborting due to previous error For more information about this error, try `rustc --explain E0463`. error: Could not compile `lazy_static`. warning: build failed, waiting for other jobs to finish... error: Could not compile `rand_core`.
Re: [help request] Librespot/Spotify Connect on Pogoplug Pro July 29, 2019 11:28PM |
Admin Registered: 12 years ago Posts: 17,303 |