首页 > Android > Mac OS X中编译Android(AOSP)

Mac OS X中编译Android(AOSP)

在Mac OS X中编译Android(AOSP),基本步骤在AOSP的帮助文档中都有说明:
http://source.android.com/source/initializing.html
http://source.android.com/source/building.html

有一些细节问题需要注意:

  1. 新版本的XCode去除了SDK 10.6,需要设置额外的环境变量:
  2. $export UILD_MAC_SDK_EXPERIMENTAL=1
    $lunch full-eng
    
  3. 如果安装了MacPorts中的Bison,则需要注意在编译过程中避免使用它
    • 1, MacPorts中的Bison版本过新,会导致在编译WebKit的时候出现变异错误
    • external/webkit/Source/WebCore/xml/XPathParser.cpp:480:39: error: too many arguments to function 'int WebCore::XPath::xpathyyparse()'
      
    • 使用XCode自带的Bison而非MacPorts中的
    • $bison --version
      bison (GNU Bison) 2.3
      
    • 在WebKit中打上新的Patch用来解决这个编译问题:http://trac.webkit.org/changeset/124099
分类:Android
  1. 还没有评论。
  1. No trackbacks yet.

留下评论