系统:
Ubuntu 14.04 64位
源码下载:
git clone https://freeswitch.org/stash/scm/fs/freeswitch.git
依赖包安装:
libedit-dev libldns-dev
libpcre3-dev libspeexdsp-dev libspeex-dev libcurl4-openssl-dev libopus-dev
libncurses5-dev libtiff-dev libjpeg-dev zlib1g-dev libssl-dev libsqlite3-dev
build-essential automake autoconf git-core wget libtool
liblua50-dev libsndfile1-dev
还有ubuntu官方源中缺少的几个软件包:
1.下载libyuv源码并编译
cd freeswitch/dep-libs
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
2.下载yasm并编译
yasm是一个汇编编译器,是nasm的升级版
yasm下载地址:http://www.tortall.net/projects/yasm/releases/
yasm解压命令:tar -zxvf ****.tar.gz (我下载的是yasm-1.3.0.tar.gz)
yasm编译安装:① ./configure, ② make, ③ make install
yasm安装完毕之后回到第二步重新安装libvpx
3.下载libvpx源码并编译
git clone https://freeswitch.org/stash/scm/sd/libvpx.git
cd libvpx
./configure --enable-pic --disable-static --enable-shared
make install
4.下载opus并编译
git clone https://freeswitch.org/stash/scm/sd/opus.git
cd opus
./autogen.sh
./configure
make
make install
5.下载libpng并编译
git clone https://freeswitch.org/stash/scm/sd/libpng.git
cd libpng
./configure
make
make install
6.下载libsilk并编译
git clone https://freeswitch.org/stash/scm/sd/libsilk.git
cd libsilk
./configure
make
make install
安装过程:
ldconfig 确保上面安装的第三方库都能够被正确链接
./configure
make
make install
安装语音包(英文)
make sounds-install
make moh-install
安装silk解码器
make mod_silk-install
Ubuntu 14.04 64位
源码下载:
git clone https://freeswitch.org/stash/scm/fs/freeswitch.git
依赖包安装:
libedit-dev libldns-dev
libpcre3-dev libspeexdsp-dev libspeex-dev libcurl4-openssl-dev libopus-dev
libncurses5-dev libtiff-dev libjpeg-dev zlib1g-dev libssl-dev libsqlite3-dev
build-essential automake autoconf git-core wget libtool
liblua50-dev libsndfile1-dev
还有ubuntu官方源中缺少的几个软件包:
1.下载libyuv源码并编译
cd freeswitch/dep-libs
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
2.下载yasm并编译
yasm是一个汇编编译器,是nasm的升级版
yasm下载地址:http://www.tortall.net/projects/yasm/releases/
yasm解压命令:tar -zxvf ****.tar.gz (我下载的是yasm-1.3.0.tar.gz)
yasm编译安装:① ./configure, ② make, ③ make install
yasm安装完毕之后回到第二步重新安装libvpx
3.下载libvpx源码并编译
git clone https://freeswitch.org/stash/scm/sd/libvpx.git
cd libvpx
./configure --enable-pic --disable-static --enable-shared
make install
4.下载opus并编译
git clone https://freeswitch.org/stash/scm/sd/opus.git
cd opus
./autogen.sh
./configure
make
make install
5.下载libpng并编译
git clone https://freeswitch.org/stash/scm/sd/libpng.git
cd libpng
./configure
make
make install
6.下载libsilk并编译
git clone https://freeswitch.org/stash/scm/sd/libsilk.git
cd libsilk
./configure
make
make install
安装过程:
ldconfig 确保上面安装的第三方库都能够被正确链接
./configure
make
make install
安装语音包(英文)
make sounds-install
make moh-install
安装silk解码器
make mod_silk-install