mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 16:25:52 +03:00
[GH-ISSUE #1573] cross-compiling for arm fails without --features rustls-tls-native-roots #716
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#716
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 @sethtroisi on GitHub (Sep 6, 2025).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1573
Description
Leaving this here in case other people are having the same problem. Ultimately I just want a armv7hf binary I can scp to my RPi 3B+.
I had to add
--features rustls-tls-native-rootsto the cross compile command to get it to succeeddocker run -v /tmp/librespot-build:/build librespot-cross cargo build --release --target arm-unknown-linux-gnueabihf --no-default-features --features alsa-backend --features rustls-tls-native-rootsMy understanding is
So I tried to follow the cross-compiling guide
Version
head (0.7.1)
How to reproduce
docker run -v /tmp/librespot-build:/build librespot-cross cargo build --release --target arm-unknown-linux-gnueabihf --no-default-features --features alsa-backendI tried adding
--features native-tlsbut that didn't workLog
Host (what you are running
librespoton):Building on Linux, x86_64
Trying to cross-compile for armhf e.g. RPi 3B+
@roderickvd commented on GitHub (Sep 6, 2025):
To succeed building with native TLS, you need to install the OpenSSL libraries.
@kingosticks commented on GitHub (Sep 6, 2025):
Maybe the wiki could be more explicit about requiring which additional packages. Or should they already be present in the docker container? I'm not sure how the cargo cross system works, I never got on with it!