天天看點

centos編譯telepresence測試效果

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兩個用戶端進行測試 效果如下:

centos編譯telepresence測試效果