华为鲲鹏+银河麒麟V10编译FreeSWITCH1.10.9

# uname -r
4.19.90-17.5.ky10.aarch64

本想编译FreeSWITCH1.10.7,但碰到点问题,后来改1.10.9,相对比较顺利,记录如下:

先安装工具/开发库等:

yum install -y git
yum install -y wget
yum install -y autoconf
yum install -y automake
yum install -y cmake
yum install -y bison

yum install -y openssl-devel
yum install -y curl-devel
yum install -y gdbm-devel
yum install -y gcc-c++

yum install -y gnutls-devel
yum install -y libjpeg-devel
yum install -y libogg-devel
yum install -y libtiff-devel
yum install -y libtool

yum install -y uuid-devel
yum install -y libuuid-devel
yum install -y libxml2-devel
yum install -y ncurses-devel
yum install -y opus-devel
yum install -y pcre-devel
yum install -y pkgconfig
yum install -y postgresql-devel
yum install -y sqlite-devel
yum install -y unixODBC-devel
yum install -y zlib-devel
yum install -y yasm
yum install -y libedit-devel
yum install -y libatomic

yum install -y speex-devel 
yum install -y speexdsp-devel 
yum install -y libsndfile-devel

yum install -y readline-devel
yum install -y swig patch
  • 编译libks

波澜不惊,不赘述

  • 编译sofia-sip

同上

  • spandsp有个bug,要看这个工单:

https://github.com/signalwire/freeswitch/issues/2248

git clone https://github.com/freeswitch/spandsp.git
cd spandsp/
git checkout 0d2e6ac
sh autogeh.sh && ./bootstrap.sh && ./configure && make && make install
  • export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig/:$PKG_CONFIG_PATH
  • export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib

libks.pc在/usr/lib/pkgconfig目录下,sofia-sip.pc和spandsp.pc在/usr/local/lib/pkgconfig目录下,于是有上面的二条命令

  • ffmpeg-devel如果源码编译可能是个大工程,同时不容易yum安装,于是决定暂时禁止视频
  • ./configure --disable-libyuv --disable-libvpx 
  • mod_enum不编译,一般用不到
  • mod_shout和mod_av 暂时不编译

其它就没什么值得记录的

你可能感兴趣的:(FreeSWITCH,FreeSWITCH)