Blame view

3rdparty/build_exosip2.sh 1005 Bytes
73ef4ff3   Hu Chunming   提交三方库
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  #!/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