架设环境
sudo apt-get install autoconf automake libtool
sudo apt-get install libltdl-dev libao-dev libavahi-compat-libdnssd-dev
sudo apt-get install avahi-daemon
安装
wget https://codeload.github.com/juhovh/shairplay/zip/master -O shairplay.zip
cd shairplay-master
./autogen.sh
./configure
make
sudo make install
错误处理
- error: cannot find input file: Makefile.in
automake #It should create your Makefile.in.
- required file `./ltmain.sh’ not found
libtoolize --automake --copy --debug --force
开启airplay
cd shairplay-master
shairplay -a your_AirPlay_Name
自启动
cd ~/shairplay-master/
shairplay -a DfMus
[Desktop Entry]
Name=airplay
Comment=df
Exec=/home/pi/shairplay-master/run.sh
Type=Application
Terminal=true
参考
- shairplay详情
- 用volumio设置自己的远程播放设备,可以获得更完善的音乐播放体验,但是,需要刻录volumio的系统,使用这个就无法继续使用树莓派本身的系统
错误处理
有时候shairplay会突然用不了,通常情况下重启可以解决,如果不能解决可以尝试以下命令
sudo apt-get install libasound2-dev
sudo apt-get install libpulse-dev
sudo apt-get install git libao-dev libssl-dev libcrypt-openssl-rsa-perl libio-socket-inet6-perl libwww-perl avahi-utils libmodule-build-perl libasound2-dev libpulse-dev