docs: Add step to install dependencies for a successfull build

This commit is contained in:
oSumAtrIX 2023-12-12 03:22:13 +01:00 committed by GitHub
parent a5f7c0e26d
commit 9149917122
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,7 +46,13 @@ If you want to help me accelerate this process, please feel free to contact me a
cd DownOnSpot
```
2. Build
2. Install dependencies
If you are on Linux, make sure you have the `libasound2-dev` package installed.
Additionally, you need the [libmp3lame](https://www.rarewares.org/mp3-lame-libraries.php#libmp3lame) library.
On Mac OS, run `brew install lame`, provided you have [Homebrew](https://brew.sh/) installed.
3. Build
```bash
cargo build --release
@ -64,10 +70,6 @@ If you want to help me accelerate this process, please feel free to contact me a
>
> If you do not want to use `free-librespot` (i.e. if you are using a paid Spotify account), replace `git = "ssh://git@github.com/oSumAtrIX/free-librespot.git"` with `librespot = "0.4.2"` inside the `Cargo.toml` file.
> [!WARNING]
> If you get a linker error, you might be missing the [libmp3lame](https://www.rarewares.org/mp3-lame-libraries.php#libmp3lame) library.
> On Mac OS, run `brew install lame`, provided you have [Homebrew](https://brew.sh/) installed.
## 🕹️ Usage
1. Create a [new application](https://developer.spotify.com/dashboard/applications) on the Spotify developer dashboard