-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathdoorberry.install-dep
executable file
·44 lines (37 loc) · 1.1 KB
/
doorberry.install-dep
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
#!/bin/bash
echo "* Install dependencies"
sudo apt-get install alsaplayer-alsa python2.7-dev python-daemon python-lockfile libv4l-dev libx264-dev libssl-dev libasound2-dev asterisk
echo "* Download & Compile dependencies"
cd
mkdir tmp
# required for video support
#cd $HOME/tmp
#wget http://www.libsdl.org/tmp/SDL-2.0.tar.gz
#tar xvfz SDL-2.0.tar.gz
#cd SDL-2.0.0-*
#./configure
#make
#sudo make install
#
#cd $HOME/tmp
#wget http://ffmpeg.org/releases/ffmpeg-0.10.7.tar.bz2
#tar xvfj ffmpeg-0.10.7.tar.bz2
#cd ffmpeg-0.10.7
#./configure --enable-shared --disable-static --enable-memalign-hack --enable-gpl --enable-libx264
#make
#sudo make install
cd $HOME/tmp
wget http://www.pjsip.org/release/2.1/pjproject-2.1.tar.bz2
tar xvfj pjproject-2.1.tar.bz2
cd pjproject-2.1.0/
./configure --disable-video --disable-l16-codec --disable-gsm-codec --disable-g722-codec --disable-g7221-codec --disable-ilbc-codec
cat << PJ > pjlib/include/pj/config_site.h
# define PJMEDIA_AUDIO_DEV_HAS_ALSA 1
# define PJMEDIA_AUDIO_DEV_HAS_PORTAUDIO 0
PJ
make dep
make
sudo make install
cd pjsip-apps/src/python
make
sudo make install