librespot-org / librespot

Open Source Spotify client library
MIT License
4.46k stars 540 forks source link

fix: working armv6hf docker image for cross-compiling #1263

Closed gpajot closed 3 months ago

gpajot commented 3 months ago

Hello, first off, thanks for this awesome repository!

The cross-compile docker image uses debian:strech for which apt repositories have been moved to archive. Since some packages have been marked as broken I could not find a way to keep using that image.

After using something very similar to what spotifyd is using I managed to have something working. I have managed to compile successfully both from x86 and arm64 (M2), also confirming the resulting binary works on a Pi 1.

Ideally, something similar should probably be done for other architectures, though I don't have the means to test the compiled binaries.

If you are OK with this I can also update the wiki to reflect those changes.

roderickvd commented 3 months ago

Great, I believe it :wink: absolutely go ahead with updating the wiki 👍

gpajot commented 3 months ago

Thanks for taking the time to look at it! The wiki is updated: https://github.com/librespot-org/librespot/wiki/Cross-compiling#raspberry-pi-1-or-zero-armv6hf