BuildBits » History » Version 5

Chris Cannam, 2011-10-05 12:29 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 1 Chris Cannam
<pre>
12 3 Chris Cannam
cd ~/code
13 3 Chris Cannam
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:$PKG_CONFIG_PATH
14 3 Chris Cannam
wget http://fftw.org/fftw-3.3.tar.gz
15 3 Chris Cannam
tar xvzf fftw-3.3.tar.gz 
16 3 Chris Cannam
cd fftw-3.3
17 3 Chris Cannam
./configure --enable-single
18 3 Chris Cannam
make > make.log 2>&1 && sudo make install
19 3 Chris Cannam
./configure 
20 3 Chris Cannam
make clean
21 3 Chris Cannam
make > make.log 2>&1 && sudo make install
22 3 Chris Cannam
cd ..
23 3 Chris Cannam
wget http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz
24 3 Chris Cannam
tar xvzf libsndfile-1.0.25.tar.gz 
25 3 Chris Cannam
cd libsndfile-1.0.25
26 3 Chris Cannam
./configure --enable-static=yes
27 3 Chris Cannam
make > make.log 2>&1 && sudo make install
28 3 Chris Cannam
cd ..
29 3 Chris Cannam
wget http://www.mega-nerd.com/SRC/libsamplerate-0.1.8.tar.gz
30 3 Chris Cannam
tar xvzf libsamplerate-0.1.8.tar.gz 
31 3 Chris Cannam
cd libsamplerate-0.1.8
32 3 Chris Cannam
./configure --enable-static=yes
33 3 Chris Cannam
make > make.log 2>&1 && sudo make install
34 3 Chris Cannam
cd ..
35 3 Chris Cannam
sudo ldconfig -v
36 3 Chris Cannam
hg clone http://code.soundsoftware.ac.uk/hg/vamp-plugin-sdk
37 3 Chris Cannam
cd vamp-plugin-sdk/
38 3 Chris Cannam
./configure
39 3 Chris Cannam
make
40 3 Chris Cannam
sudo make install
41 4 Chris Cannam
cd ..
42 4 Chris Cannam
sudo cp ~/code/svcore/plugin/api/ladspa.h /usr/local/include
43 4 Chris Cannam
hg clone http://hg.breakfastquay.com/rubberband
44 4 Chris Cannam
cd rubberband/
45 4 Chris Cannam
./configure
46 4 Chris Cannam
make
47 4 Chris Cannam
sudo make install
48 4 Chris Cannam
cd ..
49 4 Chris Cannam
wget http://download.librdf.org/source/raptor2-2.0.4.tar.gz
50 4 Chris Cannam
tar xvzf raptor2-2.0.4.tar.gz 
51 4 Chris Cannam
cd raptor2-2.0.4
52 4 Chris Cannam
./configure --enable-static --with-www=xml 
53 4 Chris Cannam
make >make.log 2>&1 && sudo make install
54 5 Chris Cannam
cd ..
55 5 Chris Cannam
wget http://download.librdf.org/source/rasqal-0.9.27.tar.gz
56 5 Chris Cannam
tar xvzf rasqal-0.9.27.tar.gz 
57 5 Chris Cannam
cd rasqal-0.9.27
58 5 Chris Cannam
./configure --with-decimal=none --enable-static=yes --enable-query-languages=sparql
59 5 Chris Cannam
make >make.log 2>&1 && sudo make install
60 5 Chris Cannam
cd ..
61 5 Chris Cannam
wget http://download.librdf.org/source/redland-1.0.14.tar.gz
62 5 Chris Cannam
tar xvzf redland-1.0.14.tar.gz 
63 5 Chris Cannam
cd redland-1.0.14
64 5 Chris Cannam
./configure --enable-static=yes --with-sqlite=no --with-mysql=no --with-bdb=no
65 5 Chris Cannam
make >make.log 2>&1 && sudo make install
66 3 Chris Cannam
67 3 Chris Cannam
QTDIR=/home/cannam/qt-464-dynamic ./configure
68 1 Chris Cannam
</pre>