CentOS 6.5下编译FreeSWITCH1.6.6

本文档详细介绍了在CentOS 6.5操作系统中编译FreeSWITCH 1.6.6的过程,包括安装和配置所需的库如libyuv、libvpx和opus。首先,从源码编译libyuv,然后编译libvpx,解决可能出现的配置失败问题,最后编译opus库。
摘要由CSDN通过智能技术生成

装完带gcc开发环境的系统之后可能需要的步骤:


1.  vi build/modules.conf.in
    打开mod_tts_commandline
2.   yum install zlib-devel
3.   yum install libjpeg-devel  libpng-devel
4.   yum install freetype freetype-devel
5.   yum install sqlite sqlite-devel
6.   yum install curl libcurl-devel
7.   yum install pcre pcre-devel
8.   yum install speex-devel
9.   yum install ldns-devel
10.  yum install libedit-devel
11.  yum install openssl-devel
12.  yum install nasm
13.  yum install lua-devel
14. ./configure
15. 
需要同时完成以下步奏才可以

(1)下载libyuv源码并编译

        cd freeswitch/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
        cp /usr/lib/pkgconfig/libyuv.pc /usr/lib64/pkgconfig/

(2)下载libvpx源码并编译

        cd ..
        git clone https://freeswitch.org/stash/scm/sd/libvpx.git
        cd libvpx
        ./configure --enable-pic --disable-static --enable-shared
        (如果出现Configuration failed。错误原因为:Neither yasm nor nasm have been found,则参考以下“※”解决该错误.)
        make
        make install
        cp /usr/local/lib/pkgconfig/vpx.pc /usr/lib64/pkgconfig/

      (※)下载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)下载opus并编译

        cd ..
        git clone https://freeswitch.org/stash/scm/sd/opus.git
        cd opus
        ./autogen.sh
        ./configure
        make
        make install
        cp /usr/local/lib/pkgconfig/opus.pc /usr/lib64/pkgconfig

16. gmake
17. gmake install
18.  gmake cd-sounds-install
19.  gmake cd-moh-install
20.  ln -s /usr/local/lib/libvpx.so.3 /usr/lib64/
21. ln -s /usr/lib/libyuv.so /usr/lib64/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值