First of all thanks to ArmanUV for the guide format and Birdman for the advice and CM for the commits.
DISCLAIMER: I AM NOT RESPONSIBLE FOR ANYTHING THAT HAPPENS TO YOU WHILE FOLLOWING THIS GUIDE BUT I HAVE FOLLOWED IT MYSELF AND AM ALIVE AND WELL!!
Instructions:
First you need to go to the App Store and download Xcode 4. Once that is installed, open it up and go to preferences. Now click on the "Downloads" tab and then next to where it says "Command Line Tools" click install. That'll will take a few minutes.
Also you want to make sure you have android-sdk downloaded and installed and have it placed in /usr/local/ and make sure adb and fastboot work.
Open up the terminal and type:
Install homebrew (note: technically you could use MacPorts to achieve the same thing, but I used homebrew):
Now make sure android-sdk and homebrew are in $PATH
Now run this and see if you need to update anything.
If you do (and you probably will once a day) type:
Now we need to get our dev packages
Once that is done, run
if it shows anything, run
Now run this the correct a few symlinks [While it may not be needed anymore, I did it and I know AOKP builds after what I did]:
Now to create our case sensitive image for our AOKP work [NOTE: the 60g can be changed to anything. It only takes up what it needs but I used 60GB]:
Now to create our working directory
Now to initialize the git and to download it [NOTE: 'say finished' is just for funzies and your mac will actually say finished when it is done. if you take it off, it'll just end and not tell you.]:
Now just sit back and wait because, depending on your internet connection it can take a long time.
[UPDATE: According to ProTekk, those cherry-picks below have been merged. So repo sync and you should be able to build off the bat
Let me know if somethings goes wrong.
Now, some are reporting that AOKP will build now and doesn't need any extra steps on Mountain Lion. However there are some (myself included) that received emulator errors while trying to build.
Luckily, there are two things we can do to fix this.
One is cherry-pick from CM (until it get's merged with AOKP):
and the other is:
Now where ever there is lines of code, add a # to the beginning of it. After you have done that, hit CTRL-X, it will ask you if you want to keep modified changes and you hit "Y".
After that you just build below. Remember if you cherry-pick, once you repo sync again, it will discard the pick so you need to redo it after each repo sync.
NOW we are ready to build [NOTE: toro is vzw galaxy nexus. for other supported devices, replace 'toro' with it's name (ie maguro)]:
And you're done. I know this seems round about way to do things, but if you just can't wait on some nightlies for your device, this is a way to do it on the OSX 10.8 operating system.
-Cheers and hopefully everything works for y'all and there are no typos
DISCLAIMER: I AM NOT RESPONSIBLE FOR ANYTHING THAT HAPPENS TO YOU WHILE FOLLOWING THIS GUIDE BUT I HAVE FOLLOWED IT MYSELF AND AM ALIVE AND WELL!!
Instructions:
First you need to go to the App Store and download Xcode 4. Once that is installed, open it up and go to preferences. Now click on the "Downloads" tab and then next to where it says "Command Line Tools" click install. That'll will take a few minutes.
Also you want to make sure you have android-sdk downloaded and installed and have it placed in /usr/local/ and make sure adb and fastboot work.
Open up the terminal and type:
Code:
<br />
java<br />
Code:
<br />
/usr/bin/ruby -e "$(/usr/bin/curl -fsSL [URL=https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew]https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew[/URL].rb)"<br />
Code:
<br />
touch ~/.bash_profile && echo "PATH=/usr/local/bin:/usr/local/sbin:$PATH:/usr/local/android-sdk/tools:/usr/local/android-sdk/platform-tools" >> ~/.bash_profile<br />
Code:
<br />
brew doctor<br />
Code:
<br />
brew update<br />
Code:
<br />
brew install git coreutils findutils gnu-sed gnupg pngcrush repo<br />
Code:
brew outdated
Code:
brew upgrade
Code:
<br />
ln -s /usr/local/bin/gfind /usr/local/bin/find && ln -s /usr/local/bin/gsed /usr/local/bin/sed<br />
Code:
<br />
hdiutil create -type SPARSE -fs "Case-sensitive Journaled HFS+" -size 60g -volname "android" -attach ~/Desktop/Android<br />
Code:
<br />
cd /Volumes/android && mkdir aokp && cd aokp<br />
Code:
<br />
repo init -u [URL=git://github.com/AOKP/platform_manifest.git]git://github.com/AOKP/platform_manifest.git[/URL] -b jb && repo sync && say 'finished'<br />
[UPDATE: According to ProTekk, those cherry-picks below have been merged. So repo sync and you should be able to build off the bat
Luckily, there are two things we can do to fix this.
One is cherry-pick from CM (until it get's merged with AOKP):
Code:
<br />
cd /volumes/android/aokp/sdk/emulator/opengl/tests/translator_tests && git fetch [URL=http://review.cyanogenmod.com/CyanogenMod/android_sdk]http://review.cyanogenmod.com/CyanogenMod/android_sdk[/URL] refs/changes/87/19487/1 && git cherry-pick FETCH_HEAD<br />
Code:
<br />
cd /Volumes/android/aokp/external/qemu && nano Makefile.android<br />
NOW we are ready to build [NOTE: toro is vzw galaxy nexus. for other supported devices, replace 'toro' with it's name (ie maguro)]:
Code:
<br />
. build/envsetup.sh && brunch toro<br />
-Cheers and hopefully everything works for y'all and there are no typos