Ubuntu下安装TelePresence

本文将演示TelePresence的安装,已ubuntu 14.04 64bit为安装平台,理论上适合各种linux平台,因为大部分都是采用源码的方式,如果使用centos等平台只需变换软件安装的方式而已:

1.apt-get update upgrade
2.apt-get install make libtool autoconf subversion git wget cmake gcc gcc-c++ pkgconfig
会发现gcc-c++ pkgconfig安装不上去,暂且搁置,后面会有其他安装方法
3. libsrtp 安装
git clone https://github.com/cisco/libsrtp/
cd libsrtp
CFLAGS="-fPIC" ./configure --enable-pic && make && make install

4. OpenSSL安装
wget http://www.openssl.org/source/openssl-1.0.1c.tar.gz
tar -xvzf openssl-1.0.1c.tar.gz
cd openssl-1.0.1c
./config shared --prefix=/usr/local --openssldir=/usr/local/openssl && make && make install


5.安装Building libogg, libvorbis and libtheora
会发现没有源,在网上单独找这一系列安装包
git://git.xiph.org/mirrors/ogg.git
git://git.xiph.org/mirrors/vorbis.git
git://git.xiph.org/mirrors/theora.git
http://git.xiph.org/    //该网址包含这些包

5.1.libogg
git clone git://git.xiph.org/mirrors/ogg.git
xz -d libogg-1.3.0.tar.xz
tar -xvf libogg-1.3.0.tar
cd libogg-1.3.0
autoconf
./configure
make && make install

5.2.libvorbis
git clone git://git.xiph.org/mirrors/vorbis.git
无法安装,后发现在ubuntu源中包含该安装包
sudo apt-get install vorbis-tools 


5.3.


安装libogg
wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
tar xvf libogg-1.1.3.tar.gz
cd libogg-1.1.3 
./configure 
make 
make install


安装libtheora (svn获取)
svn co http://svn.xiph.org/trunk/theora theora
cd theora 
./autogen.sh 
./configure 
make 
make install

安装libvorbis
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.2.0.tar.gz
tar xvfz libvorbis-1.2.0.tar.gz
cd libvorbis-1.2.0 
./configure 
make 
make install

6.安装speex和libspeex and libspeexdsp
6.1.apt-get install libspeexdsp-dev

或者
6.2.
wget http://downloads.xiph.org/releases/speex/speex-1.2beta3.tar.gz
tar -xvzf speex-1.2beta3.tar.gz
cd speex-1.2beta3
./configure --disable-oggtest --without-libogg && make && make install
./configure && make && make install

7.Building 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

8.Building libvpx
git clone http://git.chromium.org/webm/libvpx.git
cd libvpx
./configure --enable-realtime-only --enable-error-concealment --disable-examples --enable-vp8 --enable-pic --enable-shared --as=yasm
make && make install

9.Building opencore-amr

git clone git://opencore-amr.git.sourceforge.net/gitroot/opencore-amr/opencore-amr
autoreconf --install && ./configure && make && make install

10.Building 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


11.Building libgsm
wget http://www.quut.com/gsm/gsm-1.0.13.tar.gz
tar -xvzf gsm-1.0.13.tar.gz
cd gsm-1.0-pl13 && make && make install
#cp -rf ./inc/* /usr/local/include
#cp -rf ./lib/* /usr/local/lib

12.Building g729
G729 is optional. Adds support for G.729 audio codec.
svn co http://g729.googlecode.com/svn/trunk/ g729b
cd g729b
./autogen.sh && ./configure --enable-static --disable-shared && make && make install


13.Building iLBC
iLBC is optional. Adds support for iLBC audio codec.
svn co http://doubango.googlecode.com/svn/branches/2.0/doubango/thirdparties/scripts/ilbc
cd ilbc
wget http://www.ietf.org/rfc/rfc3951.txt
awk -f extract.awk rfc3951.txt
./autogen.sh && ./configure
make && make install

14.Building x264
x264 is optional but highly recommended and adds support for H.264 video codec (requires
FFmpeg). x264 is required if you want to use *.mp4 container.

wget ftp://ftp.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
tar -xvjf last_x264.tar.bz2

# the output directory may be difference depending on the version and date
cd x264-snapshot-20121201-2245
./configure --enable-shared --enable-pic && make && make install

15.Building libfreetype
libfreetype is required and used for video overlays.
Or build the source by yourself:


wget http://download.savannah.gnu.org/releases/freetype/freetype-2.4.12.tar.bz2
tar -xvjf freetype-2.4.12.tar.bz2
cd freetype-2.4.12
./configure && make && make install

16.Building libfaac
wget http://downloads.sourceforge.net/faac/faac-1.28.tar.bz2
tar -xvjf faac-1.28.tar.bz2
cd faac-1.28 && ./configure && make && make install

编译FAAC-1.28时遇到错误:
mpeg4ip.h:126: error: new declaration ‘char* strcasestr(const char*, const char*)’
解决方法:
/faac-1.28/common/mp4v2# vi mpeg4ip.h
从123行开始修改此文件mpeg4ip.h,到129行结束。
修改前:
#ifdef __cplusplus
extern "C" {
#endif
char *strcasestr(const char *haystack, const char *needle);
#ifdef __cplusplus
}
#endif

修改后:(测试中直接注释也可以)
#ifdef __cplusplus
extern "C++" {
#endif
const char *strcasestr(const char *haystack, const char *needle);
#ifdef __cplusplus
}
#endif

17.Building Ffmpeg

17.1.git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
cd ffmpeg
17.2.git checkout n1.2

17.3.
./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-libfaac \
\
--enable-nonfree
17.4.make && make install


18.Building OpenAL Soft

wget http://kcat.strangesoft.net/openal-releases/openal-soft-1.15.1.tar.bz2
tar -xvjf openal-soft-1.15.1.tar.bz2
cd openal-soft-1.15.1/build
cmake ..
make && make install

19.Building 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

此处发现openssl不可用( DTLS-SRTP  = no)

# apt-get install libc6-dev


最后编译

编译Telepresence system(此处由于官方的svn地址做了变化,文档中的有所改变)
svn checkout http://telepresence.googlecode.com/svn/trunk/ telepresence-read-only
cd telepresence
./autogen.sh && ./configure
make && make install
make samples


问题归纳:

在编译的安装某些软件的过程中,一定要安装上面的顺序来编译,其实很大一部分的软件是为了Doubango做的准备,有的configure的时候会提示文件错误,这种一般都是由于文件格式不正确导致,只需要dos2unix命定转化一下文件格式即可,经测试在64位系统很好安装,比较顺利,但是在32bit上面一直提示找不到ffmpeg的av_gettime函数,很是蛋疼,有时间我会把所有源文件上传到网盘,到时候会在本文档更新地址,毕竟里面很多代码需要翻墙才可以下载得到的。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值