configure: don't fail if mp4 is the only enabled input plugin.
[mpd-mk.git] / INSTALL
blobc52968695f5b19ec34b9c2975eff39bf7b7f67b8
1                        Music Player Daemon (MPD) - INSTALL
4 Introduction
5 ------------
6 This document is a very small amount of documentation about what is needed to 
7 install MPD. If more information is desired see the community wiki at 
8 http://mpd.wikia.com.
10 Dependencies
11 ------------
13 gcc - http://gcc.gnu.org/
14 Any other C99 compliant compiler should also work.
16 glib - http://www.gtk.org/
17 General-purpose utility library.
20 Optional Output Dependencies
21 ----------------------------
23 You will need at least one of these to compile MPD.
25 Most of these are available as packages on major distributions.  Be sure to
26 install both the library package as well as the development package.
28 AO - http://www.xiph.org/ao/
29 A portable library that abstracts many audio output types as one API.  Should
30 be used only if there is no native plugin available or if the native plugin
31 doesn't work.  You will need libao.
33 ALSA - http://www.alsa-project.org/
34 The Advanced Linux Sound Architecture.  Recommended audio output if you use
35 Linux.  You will need libasound.
37 FIFO
38 This is a mostly undocumented, developer plugin to transmit raw data.
40 MVP - http://en.wikipedia.org/wiki/Hauppauge_MediaMVP
41 A network media player.
43 OSS - http://www.opensound.com
44 Open Sound System.
46 OSX - http://www.apple.com
47 Necessary if you are on Mac OSX.
49 PulseAudio - http://www.pulseaudio.org/
50 An advanced sound daemon.  You will need libpulse.
52 JACK - http://www.jackaudio.org/
53 A low-latency sound daemon.
55 libshout - http://www.icecast.org/
56 For streaming to an Icecast or Shoutcast server.
57 You also need an encoder: either libvorbisenc (ogg), or liblame (mp3).
60 Optional Input Dependencies
61 ---------------------------
63 You will need at least one of these to compile MPD.
65 Most of these are available as packages on major distributions.  Be sure to
66 install both the library package as well as the development package.
68 MAD - http://www.underbit.com/products/mad/
69 For MP3 support.  You will need libmad, and optionally libid3tag if you want
70 ID3 tag support.
72 Ogg Vorbis - http://www.xiph.org/ogg/vorbis/
73 For Ogg Vorbis support.  You will need libogg and libvorbis.
75 FLAC - http://flac.sourceforge.net/
76 For FLAC support.  You will need version 1.1.0 or higher of libflac.
78 OggFLAC - http://www.xiph.org/ogg/vorbis/ and http://flac.sourceforge.net/
79 For OggFLAC support.  You will need liboggflac, which can be built from the
80 FLAC sources if libogg is already installed.  Versions of flac 1.1.3 and
81 greater will automatically detect and use OggFLAC if it's available.
83 Audio File - http://www.68k.org/~michael/audiofile/
84 For WAVE, AIFF, and AU support.  You will need libaudiofile.
86 FAAD2 - http://www.audiocoding.com/
87 For MP4/AAC support.  You will need libmp4ff.
89 libmpcdec - http://www.musepack.net/
90 For Musepack support.
92 MikMod - http://mikmod.raphnet.net/
93 For MOD support.  You will need libmikmod.
95 libavcodec, libavformat (ffmpeg) - http://ffmpeg.mplayerhq.hu/
96 Multi-codec library.
98 libsidplay2 - http://sidplay2.sourceforge.net/
99 For C64 SID support.
101 libfluidsynth - http://fluidsynth.resonance.org/
102 For MIDI support.
104 libwildmidi - http://wildmidi.sourceforge.net/
105 For MIDI support.
108 Optional Miscellaneous Dependencies
109 -----------------------------------
111 Avahi - http://www.avahi.org/
112 For Zeroconf support.
114 libsamplerate - http://www.mega-nerd.com/SRC/
115 For advanced samplerate conversions.
117 libcurl - http://curl.haxx.se/
118 For playing HTTP streams.
120 libmms - https://launchpad.net/libmms
121 For playing MMS streams.
124 pkg-config
125 ----------
127 MPD uses pkg-config to locate most external libraries.  If you do not
128 have pkg-config, or if your version of the library does not ship the
129 ".pc" file, you have to provide the library's build options in
130 environment variables.  These variables are documented in "./configure
131 --help".  Example:
133  FLAC_CFLAGS=-I/usr/include/FLAC FLAC_LIBS=-lFLAC ./configure
136 Download
137 --------
139 Get the latest release from of MPD from <http://www.musicpd.org/>.
141 Compile
142 -------
144 1) unzip and untar the archive
146 $ tar zxvf mpd-x.x.x.tar.gz
150 $ tar jxvf mpd-x.x.x.tar.bz2
152 2) change to directory created
154 $ cd mpd-x.x.x
156 3) Run configure script (this will determine what dependencies you have)
158 $ ./configure
160 4) Compile
162 $ make
164 Install (Optional)
165 -------
167 (as root)
168 $ make install
173 1) run mpd:
175 $ mpd <config file>
177 First default is ~/.mpdconf then ~/.mpd/mpd.conf then /etc/mpd.conf. If
178 neither of these exist a mpd configuration file must be specified at
179 runtime.
181 A sample config file is included with the source of MPD, mpdconf.example.
183 The first time MPD is run it will attempt to discover all music in your
184 music root, recursively. This can be affected by the symbolic link 
185 options specified in the example mpd.conf.
187 Using MPD
188 ---------
190 You can download many different interfaces for MPD at 
191         <http://mpd.wikia.com/wiki/Clients>
193 MPD can be interfaced directly using telnet (see COMMANDS, if you are brave).