最近研究linphone-android,在ubuntu环境下编译
1.下载源码
建议用下面命令:git clone git://git.linphone.org/linphone-android.git --recursive2.安装NDK
3.安装几个包 sudo apt-get install libtool
sudo apt-get install autoconf
4.确保前面都正确,在linphone-android目录下执行./prepare_sources.sh
5.然后执行ndk-build
如果遇见错误
Invalid attribute name: android:debuggable Build X264 plugin for mediastreamer2 Compile thumb : linphone <= linphonecore.c jni/..//submodules/linphone/build/android/http://www.cnblogs.com/coreapi/linphonecore.c:49:40: error: expected ',' or ';' before 'Devel' jni/..//submodules/linphone/build/android/http://www.cnblogs.com/coreapi/linphonecore.c:1519:29: error: expected ',' or ';' before 'Devel' make: *** [obj/local/armeabi-v7a/objs/linphone/linphonecore.o] Error 1
就执行 ndk-build LINPHONE_VERSION=debug