build_exosip2.sh
1005 Bytes
#!/bin/bash
currentPath=$(pwd)
libPath=/home/cmhu/sip_server/3rdparty/libexosip2-5.3.0
if [ -d "./libexosip" ]; then
rm -rf libexosip
fi
mkdir libexosip
cd libexosip
installPath=$(pwd)
export PKG_CONFIG_PATH=/home/cmhu/sip_server/3rdparty/libosip2-5.3.0/release/lib/pkgconfig:$PKG_CONFIG_PATH
echo ${PKG_CONFIG_PATH}
#
# export C_INCLUDE_PATH=/home/cmhu/vpt_ascend_arm/3rdparty/c-ares-1.18.1/release/include:$C_INCLUDE_PATH
#echo $C_INCLUDE_PATH
cd ${libPath}
./configure --build=x86_64-arm-linux --host=x86_64-arm-linux --target=x86_64-arm-linux --disable-openssl --prefix=${installPath} --includedir="/home/cmhu/sip_server/3rdparty/libosip2-5.3.0/release/include" --libdir="/home/cmhu/sip_server/3rdparty/libosip2-5.3.0/release/lib" CFLAGS="-g -O2 -pthread -fPIC -D_GNU_SOURCE -DENABLE_MAIN_SOCKET -DSRV_RECORD"
make -j
make install
cd ${currentPath}
# 执行make时遇到问题,找了篇帖子解决了,原因不详细 // TODO 研究
# aclocal-1.14: command not found
# autoreconf -ivf