BuildBits » History » Version 11

Chris Cannam, 2011-10-05 03:39 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 11 Chris Cannam
Liblrdf is problematic as it currently requires raptor1 and we need/use raptor2.  But see https://github.com/swh/LRDF/issues/1
14 10 Chris Cannam
15 1 Chris Cannam
<pre>
16 3 Chris Cannam
cd ~/code
17 3 Chris Cannam
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:$PKG_CONFIG_PATH
18 3 Chris Cannam
wget http://fftw.org/fftw-3.3.tar.gz
19 3 Chris Cannam
tar xvzf fftw-3.3.tar.gz 
20 3 Chris Cannam
cd fftw-3.3
21 3 Chris Cannam
./configure --enable-single
22 3 Chris Cannam
make > make.log 2>&1 && sudo make install
23 3 Chris Cannam
./configure 
24 3 Chris Cannam
make clean
25 3 Chris Cannam
make > make.log 2>&1 && sudo make install
26 3 Chris Cannam
cd ..
27 3 Chris Cannam
wget http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz
28 3 Chris Cannam
tar xvzf libsndfile-1.0.25.tar.gz 
29 3 Chris Cannam
cd libsndfile-1.0.25
30 3 Chris Cannam
./configure --enable-static=yes
31 3 Chris Cannam
make > make.log 2>&1 && sudo make install
32 3 Chris Cannam
cd ..
33 3 Chris Cannam
wget http://www.mega-nerd.com/SRC/libsamplerate-0.1.8.tar.gz
34 3 Chris Cannam
tar xvzf libsamplerate-0.1.8.tar.gz 
35 3 Chris Cannam
cd libsamplerate-0.1.8
36 3 Chris Cannam
./configure --enable-static=yes
37 3 Chris Cannam
make > make.log 2>&1 && sudo make install
38 3 Chris Cannam
cd ..
39 3 Chris Cannam
sudo ldconfig -v
40 3 Chris Cannam
hg clone http://code.soundsoftware.ac.uk/hg/vamp-plugin-sdk
41 3 Chris Cannam
cd vamp-plugin-sdk/
42 3 Chris Cannam
./configure
43 3 Chris Cannam
make
44 3 Chris Cannam
sudo make install
45 4 Chris Cannam
cd ..
46 4 Chris Cannam
sudo cp ~/code/svcore/plugin/api/ladspa.h /usr/local/include
47 4 Chris Cannam
hg clone http://hg.breakfastquay.com/rubberband
48 4 Chris Cannam
cd rubberband/
49 4 Chris Cannam
./configure
50 4 Chris Cannam
make
51 4 Chris Cannam
sudo make install
52 4 Chris Cannam
cd ..
53 4 Chris Cannam
wget http://download.librdf.org/source/raptor2-2.0.4.tar.gz
54 4 Chris Cannam
tar xvzf raptor2-2.0.4.tar.gz 
55 4 Chris Cannam
cd raptor2-2.0.4
56 4 Chris Cannam
./configure --enable-static --with-www=xml 
57 4 Chris Cannam
make >make.log 2>&1 && sudo make install
58 5 Chris Cannam
cd ..
59 5 Chris Cannam
wget http://download.librdf.org/source/rasqal-0.9.27.tar.gz
60 5 Chris Cannam
tar xvzf rasqal-0.9.27.tar.gz 
61 5 Chris Cannam
cd rasqal-0.9.27
62 5 Chris Cannam
./configure --with-decimal=none --enable-static=yes --enable-query-languages=sparql
63 5 Chris Cannam
make >make.log 2>&1 && sudo make install
64 5 Chris Cannam
cd ..
65 5 Chris Cannam
wget http://download.librdf.org/source/redland-1.0.14.tar.gz
66 5 Chris Cannam
tar xvzf redland-1.0.14.tar.gz 
67 5 Chris Cannam
cd redland-1.0.14
68 5 Chris Cannam
./configure --enable-static=yes --with-sqlite=no --with-mysql=no --with-bdb=no
69 5 Chris Cannam
make >make.log 2>&1 && sudo make install
70 6 Chris Cannam
cd ..
71 6 Chris Cannam
wget http://www.portaudio.com/archives/pa_stable_v19_20110326.tgz
72 6 Chris Cannam
tar xvzf pa_stable_v19_20110326.tgz 
73 6 Chris Cannam
cd portaudio/
74 8 Chris Cannam
./configure --enable-static=yes --enable-shared=no --with-alsa --without-oss --without-jack
75 6 Chris Cannam
make && sudo make install
76 9 Chris Cannam
cd ..
77 9 Chris Cannam
wget http://downloads.sourceforge.net/project/liblo/liblo/0.26/liblo-0.26.tar.gz
78 9 Chris Cannam
tar xvzf liblo-0.26.tar.gz
79 9 Chris Cannam
cd liblo-0.26
80 9 Chris Cannam
./configure --enable-static
81 9 Chris Cannam
make
82 9 Chris Cannam
sudo make install
83 6 Chris Cannam
84 3 Chris Cannam
85 3 Chris Cannam
QTDIR=/home/cannam/qt-464-dynamic ./configure
86 1 Chris Cannam
</pre>