git clone https://github.com/mikebrady/shairport-sync.git #下载项目
cd shairport-sync #进入项目目录
git checkout development #切换到development分支
autoreconf -fi #编译
./configure --sysconfdir=/etc --with-alsa --with-soxr --with-avahi --with-ssl=openssl --with-systemd --with-airplay-2 #配置
make -j #构建环境
make install #安装
输出信息如下:
> Device Full Name: "hw:HISIAIAO"
Short Name: "hw:0"
This device seems suitable for use with Shairport Sync.
The following rate and format would be chosen by Shairport Sync in "auto" mode:
Rate Format
44100 S16_LE
> Device Full Name: "hw:Device"
Short Name: "hw:2"
This device is already in use and can not be checked.
To check it, take it out of use and try again.