mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[GH-ISSUE #1124] Compiling librespot for armv7-unknown-linux-musleabihf #523
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#523
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 @Barcol on GitHub (Feb 25, 2023).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1124
Has anyone compiled librespot for armv7-unknown-linux-musleabihf successfully? I cant pick a proper linker.
This is how I modified yours contrib/Dockerfile as my attempt to build it:
Docker build finishes flawlessly, but
docker run -v /tmp/librespot-build:/build librespot-cross cargo build --release --target armv7-unknown-linux-musleabihf --no-default-features --features alsa-backendproduces:I don't know how to label this issue properly, as this is not a feature request, nor is it a bug report.
@benblasco commented on GitHub (Sep 12, 2023):
= note: /usr/lib/aarch64-linux-gnu/libc.a: error adding symbols: File format not recognizedI believe this means you have a dependency in there somewhere for aarch64, aka armv8 or armv9. Since you are trying to compile for armv7, this dependency check fails.
More reading: https://www.quora.com/How-do-you-resolve-Gcc-error-adding-symbol-file-in-wrong-format-Linux-C-Ubuntu-GCC-development
Sorry I have no insight on how to fix the issue, but I believe this is the cause.