-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.sh
54 lines (43 loc) · 1.06 KB
/
build.sh
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
#!/bin/bash
set -e
#build silk dependency
mkdir -p /opt/silk
git clone --depth 1 https://github.com/gaozehua/SILKCodec.git /opt/silk/SILKCodec
cd /opt/silk/SILKCodec/SILK_SDK_SRC_FIX
CFLAGS='-fPIC' make all
cd /opt
mkdir -p /opt/opus
git clone https://github.com/xiph/opus.git /opt/opus
cd /opt/opus
git checkout v1.2.1
./autogen.sh
./configure --enable-shared --with-pic --enable-static
# ./configure --disable-shared --with-pic --enable-static
make
make install
# ln -s /usr/local/lib/libopus.a /usr/local/lib/libopusstatic.a
ln -s /usr/local/lib/libopus.so /usr/local/lib/libopusstatic.so
##some hack fix
ln -s /usr/include/opus /opt/opus/include/opus
#make orkbase
cd /oreka-src/orkbasecxx
autoreconf -i
./configure CXX=g++
make
make install
#g729
mkdir -p /opt/bcg729
git clone --depth 1 https://github.com/BelledonneCommunications/bcg729.git /opt/bcg729
cd /opt/bcg729
cmake . -DCMAKE_INSTALL_PREFIX=/usr
make
make install
#orkaudio
cd /oreka-src/orkaudio
autoreconf -i
./configure CXX=g++
make
make install
#ldd
echo "/usr/lib" > /etc/ld.so.conf.d/usr_lib.conf
ldconfig