这里先扯淡下,如果要论那个开源软件是个劝退大师,估计非freeswitch莫属了,对新人太不友好了。个人在源码编译freeswitch-1.10.7版本时,遇到过好多个问题,中间好几次就想放弃了,最后咬牙坚持下来,最终初步编译了一个可用版本。
编译过程及问题总结:
从freeswitch的1.10.x某个版本开始,freeswitch将sofia-sip和spandsp分离出来了,需要对这两个模块进行单独编译,因此在编译freeswitch前先检查下spandsp和sofia-sip,不然可能会报以下错误:
checking for spandsp >= 3.0... configure: error: no usable spandsp; please install spandsp3 devel package or equivalent
checking for sofia-sip-ua >= 1.xx.xx... configure: error: no usable sofia-sip; please install sofia-sip-ua devel package or equivalent
安装sofia-sip和spandsp步骤如下:
安装sofia-sip:
git cloen https://github.com/freeswitch/sofia-sip.git
如果网络不太好,git可能下载不下来,可以直接下载sofia-sip的zip压缩包
cd sofia-sip
./bootstrap.sh
./configure
make
make install
安装spandsp:
git clone https://github.com/freeswitch/spandsp
如果网络不太好,git可能下载不下来,可以直接下载spandsp的zip压缩包
cd spandsp
./bootstrap.sh
./configure
make
make install
e

本文详细记录了freeswitch-1.10.7版本的源码编译过程,包括解决sofia-sip和spandsp依赖问题、配置调整及常见错误处理。

7861

被折叠的 条评论
为什么被折叠?



