最近项目需要加上sip功能,从官网下载了linphone-android源码。在编译卡了好几天。本人是在mac上开发的。
一、下载linphone源码
Mac 上是自带git的
git clone git://git.linphone.org/linphone-iphone.git
(很多人说300多M,我下载完是700多M)
二、编译
0) download the Android sdk with platform-tools and tools updated to latest revision (at least API 16 is needed), then add both 'tools' and 'platform-tools' folders in your path.
1) download the Android ndk (=r10c) from google and add it to your path (no symlink !!!).
2) install yasm, nasm, curl, ant, rsync and the autotools: autoconf, automake, aclocal, libtoolize, pkgconfig
On 64 bits linux systems you'll need the ia32-libs package
With the latest Debian (multiarch), you need this:
dpkg --add-architecture i386
aptitude update
aptitude install libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386
在README文档里有这么3句话,是编译前的环境准备.
0)下载android sdk 并把tools和platform-tools 拷贝到源码目录下
export ANDROID_SDK=/Users/hermithermit/Documents/android-tools/sdk
export PATH=$ANDROID_SDK/platform-tools:$ANDROID_SDK/tools:$PATH
1)下载android ndk 并配置黄金变量
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/Users/hermithermit/Documents/android-tools/ndk-r10c"
在/etc/environment 中添加 source environment 生效
2)网上好多说安装libtoolize 就是按照libtool 但我编译的时候出现 找不到libtoolize
后来找到一个办法
ln -s /usr/local/bin/glibtoolize /usr/local/bin/libtoolize