Quote: Originally Posted by grad061980 Originally Posted by Nice write up. Thanks.



Before I start again from scratch I have a question. Does this guide apply to previous versions of mac os x (mine is 10.6.8)? I used the official android initializing build environment page & cm7 wiki page for the instructions to setup my build environment.



Also, any tips to switch from macports to homebrew?



In the past I've had to cherry pick to get my OS X build environment set up for CM9. The compile from source fails because I started with macports instead of homebrew (bad idea). I tried to switch to homebrew without success. Any tips to switch from macports to homebrew?



For the sake of keeping this page on topic a pm response is ok if that is what you prefer.

Quote: Originally Posted by WonkyYew Originally Posted by Hi thanks for this !! Helpful one question what do i change so i can do AOSP instead of cm9??

Code: repo init -u https://android.googlesource.com/platform/manifest

Code: make -j$(sysctl -n hw.ncpu)

Yes, this guide should work fine on Snow Leopard. It mostly depends on your Xcode version. If you have Xcode 3, you can skip step 1 entirely, since you already have gcc4.2 as part of Xcode.If you have access to Xcode 4.2 and above, you will need to install gcc4.2 separately, as explained in the guide.Now regarding Macports, I strongly suggest that you completely uninstall Macports before installing homebrew. Instructions are here: http://guide.macports.org/chunked/in...nstalling.html Full instructions are available on android.com : http://source.android.com/source/initializing.html If you are using this guide, you need to change the repo initialization command to :and then do repo sync. You can setup ccache as usual. I don't think AOSP has the "brunch command", so you have to use launch and then make.Run "lunch" and select an option from the menu. You can find more info about the options here: http://source.android.com/source/building.html . For maguro, you should use "full_maguro-userdebug".To start the build, use