mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #357] Question: Easiest way to compile for running on armv5tel device #235
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#235
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 @cdlenfert on GitHub (Jul 29, 2019).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/357
I have a Mac running Docker, Pi3B and PiZero W at my disposal. I'm looking to attempt running librespot on an old PogoPlug e-02 Model (1.2ghz processor, 256mb RAM, running debian stretch). I've tried the Docker cross compiler image but the generic target doesn't run on armv5. Thanks for any tips.
@ashthespy commented on GitHub (Jul 29, 2019):
Have you tried adding the
armv5te-unknown-linux-gnueabitarget and cross building it? According to https://forge.rust-lang.org/platform-support.html, it should be a supported target.@cdlenfert commented on GitHub (Jul 29, 2019):
@ashthespy thanks for the reply. I tried this command to cross compile using the docker container:
docker run -v /tmp/librespot-build:/build librespot-cross cargo build --release --target armv5te-unknown-linux-gnueabi --no-default-features --features with-tremorand ended up with an error:
::edited to show correct error::
@ashthespy commented on GitHub (Jul 29, 2019):
Sorry, I should have been more specific:
As the error states, the target wasn't installed, You would have to update the Dockerfile to add the required c compiler and the actual target you want to build. Take a look at how the other targets have been added.
So something along the lines of
You will also have to check what it corresponding versions of the c compiler you need (
arm-none-linux-gnueabimaybe?) and link it so that Cargo can pick it up.@ashthespy commented on GitHub (Mar 20, 2020):
Closing this as an inactive issue, please feel free to comment to have it opened again..