Mac OS X下编译Android源码

http://blog.mrseacow.org/2011-04/mac-os-x%E4%B8%8B%E7%BC%96%E8%AF%91android%E6%BA%90%E7%A0%81/

http://source.android.com/source/initializing.html


我的机器配置:Mac OS X 10.6.8 + Java 1.6 + Xode 4.0

编译过程中碰到的问题:Xcode版本过高,导致出现错误:

ld: illegal text reloc to DwarfCUImpl

解决方案:

下载xcode 3.2.4 + ios SDK 4.1


http://nexus.zteo.com/blog/2011/05/10/cross-compile-android-cm7-on-os-x/

cd /Volumes/CyanogenModWorkspace/android/system/
sudo mv /Developer /Developer.new
sudo mv /Developer324 /Developer
time make -j`sysctl -an hw.logicalcpu` bacon
sudo mv /Developer /Developer324
sudo mv /Developer.new /Developer



你可能感兴趣的:(java,ios,android,OS,xcode)