BuildBits » History » Version 14

Chris Cannam, 2011-10-05 05:32 PM

1 1 Chris Cannam
h1. Build Bits
2 1 Chris Cannam
3 1 Chris Cannam
We deliberately use out-of-date systems for SV and Sonic Annotator builds, so as to try to ensure the result works on as many machines as possible.  These are some random notes piled up during build configuration.
4 1 Chris Cannam
5 1 Chris Cannam
h2. Linux
6 1 Chris Cannam
7 1 Chris Cannam
h3. Centos 5.4 32-bit
8 2 Chris Cannam
9 3 Chris Cannam
First add @/usr/local/lib@ to @/etc/ld.so.conf@.  Even where we ultimately link statically, we use dynamic libraries during dependency builds.
10 3 Chris Cannam
11 6 Chris Cannam
PulseAudio is too hard to build on this system (even though we only want the library, not the server -- sigh).  So we build for PortAudio (ALSA support only) and JACK.  PortAudio with ALSA _might_ work through PulseAudio on other systems anyway.
12 6 Chris Cannam
13 1 Chris Cannam
<pre>
14 3 Chris Cannam
cd ~/code
15 3 Chris Cannam
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:$PKG_CONFIG_PATH
16 3 Chris Cannam
wget http://fftw.org/fftw-3.3.tar.gz
17 3 Chris Cannam
tar xvzf fftw-3.3.tar.gz 
18 3 Chris Cannam
cd fftw-3.3
19 3 Chris Cannam
./configure --enable-single
20 3 Chris Cannam
make > make.log 2>&1 && sudo make install
21 3 Chris Cannam
./configure 
22 3 Chris Cannam
make clean
23 3 Chris Cannam
make > make.log 2>&1 && sudo make install
24 3 Chris Cannam
cd ..
25 3 Chris Cannam
wget http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz
26 3 Chris Cannam
tar xvzf libsndfile-1.0.25.tar.gz 
27 3 Chris Cannam
cd libsndfile-1.0.25
28 3 Chris Cannam
./configure --enable-static=yes
29 3 Chris Cannam
make > make.log 2>&1 && sudo make install
30 3 Chris Cannam
cd ..
31 3 Chris Cannam
wget http://www.mega-nerd.com/SRC/libsamplerate-0.1.8.tar.gz
32 3 Chris Cannam
tar xvzf libsamplerate-0.1.8.tar.gz 
33 3 Chris Cannam
cd libsamplerate-0.1.8
34 3 Chris Cannam
./configure --enable-static=yes
35 3 Chris Cannam
make > make.log 2>&1 && sudo make install
36 3 Chris Cannam
cd ..
37 3 Chris Cannam
sudo ldconfig -v
38 3 Chris Cannam
hg clone http://code.soundsoftware.ac.uk/hg/vamp-plugin-sdk
39 3 Chris Cannam
cd vamp-plugin-sdk/
40 3 Chris Cannam
./configure
41 3 Chris Cannam
make
42 3 Chris Cannam
sudo make install
43 4 Chris Cannam
cd ..
44 4 Chris Cannam
sudo cp ~/code/svcore/plugin/api/ladspa.h /usr/local/include
45 4 Chris Cannam
hg clone http://hg.breakfastquay.com/rubberband
46 4 Chris Cannam
cd rubberband/
47 4 Chris Cannam
./configure
48 4 Chris Cannam
make
49 4 Chris Cannam
sudo make install
50 4 Chris Cannam
cd ..
51 4 Chris Cannam
wget http://download.librdf.org/source/raptor2-2.0.4.tar.gz
52 4 Chris Cannam
tar xvzf raptor2-2.0.4.tar.gz 
53 4 Chris Cannam
cd raptor2-2.0.4
54 4 Chris Cannam
./configure --enable-static --with-www=xml 
55 4 Chris Cannam
make >make.log 2>&1 && sudo make install
56 5 Chris Cannam
cd ..
57 5 Chris Cannam
wget http://download.librdf.org/source/rasqal-0.9.27.tar.gz
58 5 Chris Cannam
tar xvzf rasqal-0.9.27.tar.gz 
59 5 Chris Cannam
cd rasqal-0.9.27
60 5 Chris Cannam
./configure --with-decimal=none --enable-static=yes --enable-query-languages=sparql
61 5 Chris Cannam
make >make.log 2>&1 && sudo make install
62 5 Chris Cannam
cd ..
63 5 Chris Cannam
wget http://download.librdf.org/source/redland-1.0.14.tar.gz
64 5 Chris Cannam
tar xvzf redland-1.0.14.tar.gz 
65 5 Chris Cannam
cd redland-1.0.14
66 5 Chris Cannam
./configure --enable-static=yes --with-sqlite=no --with-mysql=no --with-bdb=no
67 5 Chris Cannam
make >make.log 2>&1 && sudo make install
68 6 Chris Cannam
cd ..
69 6 Chris Cannam
wget http://www.portaudio.com/archives/pa_stable_v19_20110326.tgz
70 6 Chris Cannam
tar xvzf pa_stable_v19_20110326.tgz 
71 6 Chris Cannam
cd portaudio/
72 8 Chris Cannam
./configure --enable-static=yes --enable-shared=no --with-alsa --without-oss --without-jack
73 6 Chris Cannam
make && sudo make install
74 9 Chris Cannam
cd ..
75 9 Chris Cannam
wget http://downloads.sourceforge.net/project/liblo/liblo/0.26/liblo-0.26.tar.gz
76 9 Chris Cannam
tar xvzf liblo-0.26.tar.gz
77 1 Chris Cannam
cd liblo-0.26
78 1 Chris Cannam
./configure --enable-static
79 12 Chris Cannam
make && sudo make install
80 12 Chris Cannam
cd ..
81 12 Chris Cannam
wget https://github.com/swh/LRDF/tarball/master --no-check-certificate
82 12 Chris Cannam
mv master lrdf.tar.gz
83 12 Chris Cannam
tar xvzf lrdf.tar.gz 
84 12 Chris Cannam
cd swh-LRDF-*
85 12 Chris Cannam
bash autogen.sh
86 12 Chris Cannam
./configure --enable-static=yes
87 12 Chris Cannam
make && sudo make install
88 13 Chris Cannam
cd ..
89 13 Chris Cannam
wget ftp://ftp.mars.org/pub/mpeg/libmad-0.15.1b.tar.gz
90 13 Chris Cannam
tar xvzf libmad-0.15.1b.tar.gz 
91 13 Chris Cannam
cd libmad-0.15.1b
92 13 Chris Cannam
./configure --enable-static
93 13 Chris Cannam
make && sudo make install
94 13 Chris Cannam
cd ..
95 13 Chris Cannam
wget ftp://ftp.mars.org/pub/mpeg/libid3tag-0.15.1b.tar.gz
96 13 Chris Cannam
tar xvzf libid3tag-0.15.1b.tar.gz 
97 13 Chris Cannam
cd libid3tag-0.15.1b
98 13 Chris Cannam
./configure --enable-static
99 13 Chris Cannam
make && sudo make install
100 14 Chris Cannam
cd ..
101 14 Chris Cannam
wget http://jackaudio.org/downloads/jack-audio-connection-kit-0.121.3.tar.gz
102 14 Chris Cannam
tar xvzf jack-audio-connection-kit-0.121.3.tar.gz 
103 14 Chris Cannam
cd jack-audio-connection-kit-0.121.3
104 14 Chris Cannam
./configure --enable-static=yes --disable-oss --enable-alsa
105 14 Chris Cannam
make && sudo make install
106 3 Chris Cannam
107 3 Chris Cannam
QTDIR=/home/cannam/qt-464-dynamic ./configure
108 1 Chris Cannam
</pre>