1.下载代码
svn checkout http://telepresence.googlecode.com/svn/trunk/ telepresence-read-only
2.安装系统环境
sudo yum update
sudo yum install make libtool autoconf subversion git wget cmake gcc gcc-c++ pkgconfig
3.编译三方库
a:libsrtp
git clone https://github.com/cisco/libsrtp
cd libsrtp
CFLAGS="-fPIC" ./configure --enable-pic && make && make install
b:libspeex
sudo yum install speex-devel
c:YASM
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar -xvzf yasm-1.2.0.tar.gz
cd yasm-1.2.0
./configure && make && make install
d:libvpx
sudo yum install libvpx-devel
e:libopus
wget http://downloads.xiph.org/releases/opus/opus-1.0.2.tar.gz
tar -xvzf opus-1.0.2.tar.gz
cd opus-1.0.2
./configure --with-pic --enable-float-approx && make && make install
f:libgsm
sudo yum install gsm-devel
g:G729
svn co http://g729.googlecode.com/svn/trunk/ g729b
cd g729b
./autogen.sh && ./configure --enable-static --disable-shared && make && make install
h:x264
wget ftp://ftp.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
tar -xvjf last_x264.tar.bz2
cd x264-snapshot-20121201-2245
./configure --enable-shared --enable-pic && make && make install
i:libfreetype
sudo yum install freetype-devel
j:FFmpeg
git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
cd ffmpeg
git checkout n1.2
./configure --extra-cflags="-fPIC" --extra-ldflags="-lpthread" --enable-pic --enable-memalign-hack --enable-pthreads --enable-shared --disable-static --disable-network --enable-pthreads --disable-ffmpeg --disable-ffplay --disable-ffserver --disable-ffprobe --enable-gpl --disable-debug --enable-libfreetype --enable-libx264
make && make install
k:doubango
svn checkout http://doubango.googlecode.com/svn/branches/2.0/doubango doubango
cd doubango && ./autogen.sh && ./configure --with-speexdsp --with-ffmpeg
make && make install
4.编译
svn checkout https://telepresence.googlecode.com/svn/trunk/ telepresence
cd telepresence
./autogen.sh && ./configure
make && make install
make samples
5.执行
修改配置文件telepresence.cfg 注释掉:
# pin-code=1234
用MicroSIP两个客户端进行测试 效果如下: