Linphone-android 2.2.1.1 编译小结
来源:互联网 发布:软件系统数据对接方案 编辑:程序博客网 时间:2024/05/16 05:53
真心不容易啊,编译linphone for android,一把辛酸泪,。
上图先,编译生成的apk,注册在sip.linphone.org上:
编译后运行效果图,能正常启动且注册成功,功能还没覆盖测试。
下面就把编译遇到的问题描述下:
1. 我的环境是centos6.2,首先自然是参照linphone官网下载源码,期间用git工具下了好几次,特别是ffmpeg,经常下下就断开连接,据说git有方法断点续传,还没彻底研究过,参照网上的方法没有成功,只会针对ffmpeg单独clone,能力不行啊。
2. 打开源码README,瞄了几眼,就是需要安装一些依赖工具,yum一下。然后运行./check_tools.sh脚本,提示没有安装ndk,没有android sdk,一并把路径加在/etc/profile里,如下:
PATH=/home/android-ndk-r9c:/home/android-ndk-r9c/adt-bundle-linux-x86-20140702/sdk/tools:/home/android-ndk-r9c/adt-bundle-linux-x86-20140702/sdk/platform-tools:/usr/local/apache-ant-1.9.4/bin:$PATHexport PATH
记得source生效下。
3. 执行make,
a)报错“make[1]: nasm: Command not found”,安装nasm,README中有提示,看的时候忽略了;
b)报错“iLBC prepare stage failed”,下载不了extract-cfile.awk,直接上ilbc官网下载(www.ilbcfreeware.org)extract-cfile.txt,修改后缀为.awk,放入目录submodules/libilbc-rfc3951/downloads/,替换空的extract-cfile.awk,然后修改submodules/libilbc-rfc3951/downloads/Makefile,注释掉下载extract-cfile.txt相关,如下:
#$(extract_script):# $(WGET) --no-check-certificate $(extract_script_url) -O ${extract_script}
c)再次make,报错“/usr/bin/md5sum: WARNING: 1 of 1 computed checksum did NOT match make[1]: *** [extract-cfile.awk.check] Error 1”,得到替换文件extract-cfile.awk的md5值,修改submodules/libilbc-rfc3951/downloads/known_checksums/extract-cfile.awk.md5文件里的md5值;
d)继续make,噩耗来了,报错“nasm -Ox -f elf32 -g does not support section alignment (nasm <=2.08?)”, 刚才用yum安装的nasm版本低了,只能去下最新的nasm安装,centos啊。。。
e)继续make,报错“Can't locate LWP/UserAgent.pm in @INC ”,执行命令yum install perl-libwww-perl,再make报错“(Crypt::SSLeay or IO::Socket::SSL not installed”,执行命令“yum install perl-Crypt-SSLeay.i686”
f)继续make,报错“The Android Ant-based build system requires Ant 1.8.0 or later. Current version is 1.7.1”,ant版本太低了,下载最新的安装。
再次make,经过万里长征,总算默认编译完成:
ok,就这样。
- Linphone-android 2.2.1.1 编译小结
- linphone-android 编译
- linphone-android 编译
- linphone-android 编译
- linphone-android 编译
- linphone-android 编译
- linphone-android编译
- [linphone]ubuntu下,编译linphone-android
- mingw下linphone-android编译
- 编译Linphone-android补充说明
- Linphone-Android环境的编译
- mac 下编译linphone-android
- linphone-android编译(陆陆续续。。。。)
- Linphone-android 3.9.1 编译
- linphone 编译
- linphone-android在linux下编译
- linphone android源码编译 msilbc出错解决
- Linphone Android 在Linux 下编译运行
- 刘鹏计算广告学听课笔记 第三章:受众定向(一)
- usb描述符分析
- netty 学习记录二
- 关于PE病毒编写的学习(8)
- csu1178
- Linphone-android 2.2.1.1 编译小结
- 关于PE病毒编写的学习(9)
- STL_set——set::equal_range
- 动态规划之最长上升子序列 O(N log N)版
- 关于PE病毒编写的学习(10)——空隙覆盖病毒的实现方法
- 替换layout图片背景
- csu1284
- 成化鸡缸杯为什么这么贵?
- webview加载本地html、本apk内html和远程URL