cnbbx_asterisk编译

# 编译参数
~~~
wget https://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-15.7.1.tar.gz


tar -xzvf asterisk-15.7.1.tar.gz && cd ./asterisk-15.7.1


sed -i -e 's/ASTSSL_LIBS:=$(OPENSSL_LIB)/ASTSSL_LIBS:=-Wl,--no-as-needed $(OPENSSL_LIB) -Wl,--as-needed/g' main/Makefile
~~~


# 编译环境
~~~
gcc g++ findutils tar wget bsd-compat-headers libtool ncurses-dev popt-dev newt-dev zlib-dev libedit-dev tiff-dev curl-dev openssl-dev lua-dev libcap-dev jansson-dev util-linux-dev sqlite-dev postgresql-dev unixodbc-dev freetds-dev mariadb-connector-c-dev alsa-lib-dev pjproject-dev dahdi-tools-dev libpri-dev libsrtp-dev spandsp-dev libresample speex-dev speexdsp-dev libogg-dev bluez-dev libxml2-dev imap-dev


./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--libdir=/usr/lib \
--localstatedir=/var \
--disable-xmldoc \
--with-gsm=internal \
--with-popt \
--with-z \
--with-newt \
--with-unixodbc \
--with-postgres \
--with-tds \
--with-dahdi \
--with-pri \
--with-tonezone \
--with-resample \
--with-sqlite3 \
--with-speex \
--with-asound \
--without-x11 \
--without-pjproject-bundled \
--with-spandsp \
--with-bluetooth \
--with-libcurl \
--with-libedit \
--with-srtp \
--with-imap=system
~~~


# 编译选择
~~~


rm -f menuselect.makeopts && make menuselect.makeopts


./menuselect/menuselect \
--enable chan_mobile \
--enable app_meetme \
--enable cdr_mysql \
--enable app_mysql \
--enable res_config_mysql \
--enable res_realtime \
--enable pbx_realtime \
--enable func_realtime \
--disable BUILD_NATIVE \
--enable IMAP_STORAGE \
menuselect.makeopts


make ASTCFLAGS="$CFLAGS" ASTLDFLAGS="$LDFLAGS" LDCONFIG=
~~~

分类: asterisk15

发布于:2019-05-14 17:46:15