-
Notifications
You must be signed in to change notification settings - Fork 654
Compiling
Colm edited this page Feb 5, 2018
·
41 revisions
Rust 1.18.0 or later is required to build librespot.
Please install rust using rustup
If you are building librespot on macOS, the homebrew provided rust may fail due to the way in which homebrew installs rust. In this case, uninstall the homebrew version of rust and use rustup, and librespot should then build.
A kernel version of 3.9 or higher is required, for versions below this please see here.
It also requires a C, with portaudio.
On debian / ubuntu, the following command will install these dependencies :
sudo apt install build-essential portaudio19-dev
On Fedora systems, the following command will install these dependencies :
sudo dnf install portaudio-devel make gcc
On macOS, using homebrew :
brew install portaudio
Once you've cloned this repository you can build librespot using cargo
.
cargo build --release
The default for librespot if to build with portaudio-backend
.
Flag | Feature |
---|---|
alsa-backend |
Support for alsa. |
portaudio-backend |
Support for PortAudio . |
pulseaudio-backend |
Support for PulseAudio. |
jackaudio-backend |
Support for JACK. |
with-tremor |
A fixed point Vorbis decoder. |
with-lewton |
Rust vorbis decoder. |
with-dns-sd |
Builds librespot with dns-sd instead of the default mDNS. |