Raspberry PI - Compiling and installing with Ninja

Need help with MPD?
Post Reply
Jeremys
Posts: 5
Joined: December 6th, 2018, 9:27 am

Raspberry PI - Compiling and installing with Ninja

Post by Jeremys » December 7th, 2018, 9:04 am

Dear Board.

I have manager to get the dependecys in place and "mpd-0.21.3.tar.xz " is compiled, so here is how to with Raspberry Pi 3..

Code: Select all

sudo apt-get install icecast2 python3 python3-pip ninja-build libboost1.58-all
sudo pip3 install --user meson
export PATH=$PATH:~/.local/bin
wget https://www.musicpd.org/download/mpd/0.21/mpd-0.21.3.tar.xz 
tar -xvf mpd-0.21.3.tar.xz
cd mpd-0.21.3
meson . output/release --buildtype=debugoptimized -Db_ndebug=true
ninja -C output/release
meson is 0.48.2 and ninja 1.7.2.

Code: Select all

sudo ninja -C output/release install

Jeremys
Posts: 5
Joined: December 6th, 2018, 9:27 am

Re: Raspberry PI - Compiling and installing with Ninja

Post by Jeremys » December 7th, 2018, 10:44 am

Above works great and MPD is installed, but "mpd.conf" is not in /etc/ folder. /doc has example config file, but it needs to be told to mpd like "mpd /etc/mpd.conf".

Is there something still needs to be done for all stuff to fall in?

sudp apt-get install mpd mpc did all of this and sudo /etc/init.d/mpd restart shell did the restarting of the service...

mpd did not require config file to be designated..

max
Forum team
Posts: 809
Joined: January 15th, 2013, 3:43 pm

Re: Raspberry PI - Compiling and installing with Ninja

Post by max » December 7th, 2018, 1:58 pm

MPD doesn't install a "mpd.conf" because it doesn't know what should be written in it - only you know, so it's up to you to write it.
MPD also doesn't come with a sysvinit script (/etc/init.d/mpd) because such a thing is distribution specific and sysvinit is a horrible design anyway. MPD comes with a systemd service file which you can use with "systemctl". Using Debian's sysvinit script was never a good idea in the first place.
MPD still does not require the config file to be designated. Why do you believe so? (You didn't tell - you only implied it)

Post Reply