This repository has been archived by the owner on Aug 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 31
/
INSTALL
81 lines (59 loc) · 1.59 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
Install
=======
Dependencies
------------
- gmake
- pthreads
- libao
- gnutls
- gcrypt
- json-c
- libfaad2 (compiled with --without-drm)
- libmad (optional, Pandora One users only)
- UTF-8 console/locale
- libid3tag http://www.underbit.com/products/mad/
Building
--------
If you have all of the dependencies listed above just type
make clean && make
You can run the client directly from the source directory now
./pianobarfly
Or install it by issuing
make install
Selecting features
++++++++++++++++++
It is possible to disable certain features when building pianobar by setting
one of the variables listed below. In fact it is required if you don’t have the
corresponding library installed. So if you don’t want AAC playback or don’t
have libfaad installed for example, run
gmake DISABLE_FAAD=1
instead of a plain `gmake`.
DISABLE_FAAD=1
Disables AAC playback.
DISABLE_MAD=1
Disables MP3 playback.
DISABLE_ID3TAG=1
Disables libid3tag.
Mac OS X
++++++++
NOTE: The above won't work on Mac OS X (Snow Leopard) since c99 targets i386
and cc (gcc4.2) targets x86_64. If you've built supporting libraries
(libao, etc.) using gcc, you'll be unable to link. You can work around
this issue by overriding CFLAGS[1]
make clean && make CFLAGS="-O2 -DNDEBUG -W64"
[1] https://github.com/PromyLOPh/pianobar/issues/98
Ubuntu 12.04
++++++++++++
To install on Ubuntu >= 12.04
sudo apt-get install \
libao-dev \
libmad0-dev \
libfaad-dev \
libgnutls-dev \
libjson0-dev \
libgcrypt11-dev \
libid3tag0 \
libid3tag0-dev
make
sudo make install
You can then fire it up with `pianobarfly`