build_osip.sh 548 Bytes
#!/bin/bash
currentPath=$(pwd)

libPath=/home/cmhu/sip_server/3rdparty/libosip2-5.3.0

if [ -d "./libosip" ]; then
    rm -rf libosip
fi
mkdir libosip
cd libosip
installPath=$(pwd)

cd ${libPath}
./configure  --build=x86_64-arm-linux --host=x86_64-arm-linux --target=x86_64-arm-linux --disable-openssl --prefix=/home/cmhu/sip_server/3rdparty/libosip2-5.3.0/release
make -j
make install
cd ${currentPath}

# 执行make时遇到问题,找了篇帖子解决了,原因不详细  // TODO 研究
# aclocal-1.14: command not found
# autoreconf -ivf