编译CSipSimple问题总结

来源:互联网 发布:流程优化的必要性 编辑:程序博客网 时间:2024/05/21 07:48

我是在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

  1. Download “bin” Release from http://ant.apache.org/bindownload.cgi
  2. Extract & copy/move the whole folder (apache-ant-1.9xxxxx) into /opt/. So there will be /opt/apache-ant-1.9xxxxxx/
  3. Make a Symlink: ln -s /opt/apache-ant-1.9.xxxxx /opt/ant
  4. Make another Symlink: ln -s /opt/ant/bin/ant /usr/bin/ant
  5. Set ANT_HOME into the Environment vi /etc/environment and add this line: ANT_HOME=/opt/ant(without trailing slash)
  6. 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

0 0
原创粉丝点击