bark
bark copied to clipboard
Build instructions
Just some quick notes on build instructions.
I'm doing this on Fedora, so I'm just writing down those instructions
- Needs speexdsp (rpm:
speexdsp-devel, apt:libspeexdsp-dev), alsa cargo build
cross-compiling (eg raspberry pi) fedora:
- Cross-compiling system stuff (rpm:
binutils-arm-linux-gnu,gcc-arm-linux-gnu/binutils-aarch64-linux-gnu,gcc-aarch64-linux-gnu) - Get appropriate rust bits (
rustup target add arm-unknown-linux-gnueabihf/rustup target add aarch64-unknown-linux-gnu/ etc) - libraries???
PKG_CONFIG_SYSROOT_DIR=/usr/aarch64-linux-gnu cargo build --target aarch64-unknown-linux-gnu/PKG_CONFIG_SYSROOT_DIR=/usr/arm-none-eabi cargo build --target arm-unknown-linux-gnueabihf
actually, i never figured out how to fix the linking errors on fedora (i think it's trying to link in the x86 libraries into the arm binaries), so I'm just going to compile on the Pis.
rpi build script:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
. "$HOME/.cargo/env"
sudo apt update
sudo apt install -y git libspeexdsp-dev libasound2-dev pulseaudio-utils pulseaudio
git clone https://github.com/haileys/bark.git
cd bark
cargo build --release
mkdir ~/.config
cp bark.toml ~/.config/
Might be a nice PR against the README?