标签:
debian的包太老了,添加新源
echo "deb http://files.freeswitch.org/repo/deb/debian/ jessie main" > /etc/apt/sources.list.d/freeswitch.list wget -O - http://files.freeswitch.org/repo/deb/debian/key.gpg |apt-key add -
echo "deb http://files.freeswitch.org/repo/deb/freeswitch-1.6/ jessie main" > /etc/apt/sources.list.d/freeswitch.list
下载源码
git clone https://freeswitch.org/stash/scm/fs/freeswitch.git git clone -b v1.6 https://freeswitch.org/stash/scm/fs/freeswitch.git 1.6
安装编译需要的东西
sudo apt-get install yasm autoconf libtool-bin libghc-zlib-dev libjpeg-dev pkg-config libsqlite3-dev libcurl4-openssl-dev libpcre++-dev libspeex-dev libspeexdsp-dev libldns-dev libedit-dev libyuv-dev libvpx2-dev
安装需要的库
cd $FREESWITCH/libs
编译安装libyuv
git clone https://freeswitch.org/stash/scm/sd/libyuv.git cd libyuv make -f linux.mk CXXFLAGS="-fPIC -O2 -fomit-frame-pointer -Iinclude/" make install
编译安装VPX
git clone https://freeswitch.org/stash/scm/sd/libvpx.git cd libvpx ./configure --enable-pic --disable-static --enable-shared make make install
编译freeswitch
./bootstrap
./configure --prefix=/home/`whoami`/fs/freeswitch-bin make make install
标签:
原文地址:http://www.cnblogs.com/ziyouchutuwenwu/p/5188392.html