下的最新的Ubuntu 12.10 Server,Win7上装的虚拟机,全部默认安装,然后就开始编译Linphone。除了README上要求的以外,也还有有一些需要的东西,比如git、ant、jdk(JDK需要通过网站下载)等。但是基本上来说还算是很顺畅的。下面的history,我去掉了一些没用或是重复的。
sudo apt-get update
sudo apt-get upgrade
unzip adt-bundle-linux-x86_64-20130219.zip
bunzip2 android-ndk-r8e-linux-x86_64.tar.bz2
tar xvf android-ndk-r8e-linux-x86_64.tar
tar zxvf linphone-android-20130410.tar.gz
cp SILK_SDK_SRC_v1.0.8.zip linphone-android/submodules/mssilk/sdk/
export PATH=$PATH:/home/sding/adt-bundle-linux-x86_64-20130219/sdk/platform-tools:/home/sding/adt-bundle-linux-x86_64-20130219/sdk/tools:/home/sding/android-ndk-r8e
sudo apt-get install autoconf
sudo apt-get install automake
sudo apt-get install libtool
sudo apt-get install pkg-config
sudo apt-get install ia32-libs
sudo apt-get install make
sudo apt-get install git
sudo apt-get install ant
tar zxvf jdk-7u17-linux-x64.tar.gz
mv -f jdk1.7.0_17/ /usr/local/
export JAVA_HOME=/usr/local/jdk1.7.0_17/
cd linphone-android/
make