Skip to content
Newer
Older
100644 81 lines (53 sloc) 2.41 KB
49a4cd9 @hzeller o Provide an INSTALL.md that explains how to compile on older systems.
authored Sep 25, 2012
1 ## Typical installation ##
2
3 On a reasonably fresh system (e.g. Ubuntu 11.10 and 12.04), installation is
4 straightforward. To compile, this is what you need to do:
5
4185e88 @hzeller o improve indentation.
authored Sep 25, 2012
6 sudo apt-get install libsndfile-dev libflac-dev libzita-convolver-dev \
b4eec5c @hzeller o libboost caused too many troubles in embedded systems with weak
authored Sep 29, 2012
7 libfuse-dev libmicrohttpd-dev
4185e88 @hzeller o improve indentation.
authored Sep 26, 2012
8 make
49a4cd9 @hzeller o Provide an INSTALL.md that explains how to compile on older systems.
authored Sep 26, 2012
9
10 To install in the default location /usr/local/bin, just do
2f899be @hzeller o fix formatting.
authored Sep 25, 2012
11
4185e88 @hzeller o improve indentation.
authored Sep 26, 2012
12 sudo make install
49a4cd9 @hzeller o Provide an INSTALL.md that explains how to compile on older systems.
authored Sep 26, 2012
13
de78ef3 @hzeller o now really switch to PREFIX
authored Sep 30, 2012
14 .. otherwise specify the alternative location with PREFIX
2f899be @hzeller o fix formatting.
authored Sep 26, 2012
15
3cd90cb @hzeller o replace DESTDIR with more common PREFIX
authored Sep 30, 2012
16 sudo make PREFIX=/usr install
49a4cd9 @hzeller o Provide an INSTALL.md that explains how to compile on older systems.
authored Sep 26, 2012
17
07885fd @hzeller o Space around headlines
authored Sep 25, 2012
18
bc3d132 @hzeller o more clarity.
authored Sep 25, 2012
19
49a4cd9 @hzeller o Provide an INSTALL.md that explains how to compile on older systems.
authored Sep 26, 2012
20 ## Older Systems ##
07885fd @hzeller o Space around headlines
authored Sep 26, 2012
21
b29c83d @hzeller o fix more formatting.
authored Sep 25, 2012
22 Older systems, e.g. Ubuntu 10.04 lack sufficiently recent libraries for FUSE
bc3d132 @hzeller o more clarity.
authored Sep 26, 2012
23 and the zita convolver. In that case, don't install these with `apt-get`; in
24 fact, better remove the old versions to avoid confusion:
09548e5 @hzeller o Remove old libraries.
authored Sep 25, 2012
25
4185e88 @hzeller o improve indentation.
authored Sep 26, 2012
26 sudo apt-get remove libzita-convolver-dev libfuse-dev
09548e5 @hzeller o Remove old libraries.
authored Sep 26, 2012
27
28 .. and compile the latest versions yourself:
49a4cd9 @hzeller o Provide an INSTALL.md that explains how to compile on older systems.
authored Sep 26, 2012
29
4185e88 @hzeller o improve indentation.
authored Sep 26, 2012
30 # The FUSE library
31 cd /tmp
32 wget http://sourceforge.net/projects/fuse/files/fuse-2.X/2.9.1/fuse-2.9.1.tar.gz
33 tar xvzf fuse-2.9.1.tar.gz
34 cd fuse-2.9.1/
35 ./configure
36 make
37 sudo make install
49a4cd9 @hzeller o Provide an INSTALL.md that explains how to compile on older systems.
authored Sep 26, 2012
38
39 also
40
4185e88 @hzeller o improve indentation.
authored Sep 26, 2012
41 # The Zita convolver
42 cd /tmp
43 wget http://kokkinizita.linuxaudio.org/linuxaudio/downloads/zita-convolver-3.1.0.tar.bz2
44 tar xvjf zita-convolver-3.1.0.tar.bz2
45 cd zita-convolver-3.1.0/libs
46 make
47 sudo make LIBDIR=lib install
49a4cd9 @hzeller o Provide an INSTALL.md that explains how to compile on older systems.
authored Sep 26, 2012
48
09548e5 @hzeller o Remove old libraries.
authored Sep 26, 2012
49 Now, the compilation step described in *Typical installation* should succeed.
143250a @hzeller o Add static linking description.
authored Sep 25, 2012
50
07885fd @hzeller o Space around headlines
authored Sep 26, 2012
51
bc3d132 @hzeller o more clarity.
authored Sep 26, 2012
52
143250a @hzeller o Add static linking description.
authored Sep 26, 2012
53 ## Linking statically ##
07885fd @hzeller o Space around headlines
authored Sep 26, 2012
54
d379c8c @hzeller o typos, clarifications.
authored Sep 26, 2012
55 To install Folve on some embedded systems (e.g. a NAS), you might need to link
56 it statically. This depends a lot on your system, so it might require some
57 twiddeling, but let's see the basic steps.
143250a @hzeller o Add static linking description.
authored Sep 26, 2012
58
4185e88 @hzeller o improve indentation.
authored Sep 26, 2012
59 First, you need to create a static version of the zita-convolver libray; the
60 default installation does not provide this. To do so, first start
61 with compiling *The Zita convolver* yourself, as described in the
143250a @hzeller o Add static linking description.
authored Sep 26, 2012
62 *Older Systems* section.
63
64 Then run the following commands:
65
d379c8c @hzeller o typos, clarifications.
authored Sep 26, 2012
66 # .. afer compiling as described in 'Older Systems' do:
4185e88 @hzeller o improve indentation.
authored Sep 26, 2012
67 cd /tmp/zita-convolver-3.1.0/libs
68 ar rcs libzita-convolver.a zita-convolver.o
69 ranlib libzita-convolver.a
70 sudo install -m 644 libzita-convolver.a /usr/local/lib
143250a @hzeller o Add static linking description.
authored Sep 26, 2012
71
4185e88 @hzeller o improve indentation.
authored Sep 26, 2012
72 Now we can compile Folve statically:
143250a @hzeller o Add static linking description.
authored Sep 26, 2012
73
4185e88 @hzeller o improve indentation.
authored Sep 26, 2012
74 cd /directory/where/folve/git/is/checked/out
d379c8c @hzeller o typos, clarifications.
authored Sep 26, 2012
75 make clean
4185e88 @hzeller o improve indentation.
authored Sep 26, 2012
76 make LINK_STATIC=y
ac64fc1 @hzeller o more static library doc.
authored Sep 25, 2012
77
78 The last step might fail if there are additional dependencies. Add them in the
79 `ifdef LINK_STATIC` section of the Makefile.
80
Something went wrong with that request. Please try again.