我是在CentOS上编译的,中间碰到各种各样的依赖问题,大部分没有记录解决办法,但最重要的是官方文档一定要仔细读一下,其它的一点一点补充吧
1,Hunk error
这个一般是由于代码不一致引起的,我对两个文件都用dos2unix转换了一下,问题解决。
2, fatal error: sys/cdefs.h: No such file or directory
/usr/local/android_sdk/tools/ant/build.xml:396: The Android Ant-based build system requires Ant 1.8.0 or later. Current version is 1.7.1
- Download “bin” Release from http://ant.apache.org/bindownload.cgi
- Extract & copy/move the whole folder (apache-ant-1.9xxxxx) into
/opt/
. So there will be/opt/apache-ant-1.9xxxxxx/
- Make a Symlink:
ln -s /opt/apache-ant-1.9.xxxxx /opt/ant
- Make another Symlink:
ln -s /opt/ant/bin/ant /usr/bin/ant
- Set
ANT_HOME
into the Environmentvi /etc/environment
and add this line:ANT_HOME=/opt/ant
(without trailing slash) - Re-login to initiate the Environment.
参考:
官方文档:https://code.google.com/p/csipsimple/wiki/HowToBuild
编译csipsimple的native部分,http://yeyingxian.blog.163.com/blog/static/34471242014113101413286/
csipsimple编译遇到的问题总结, http://blog.csdn.net/harry_helei/article/details/7482724