Build CM10 for Nexus 7

How To intro
The actual How To
Guide for nook that is referred to

My notes:

  1. It does not work on 32 bit Ubuntu 12.04 since you can only compile jellybean on 64 bit O/S.  I learned this the hard way.  Thank goodness I have unlimited broadband.
  2. You can do apt-get install eclipse on Ubuntu 12.04 and you get eclipse and java, contrary to the out of date google instructions.
  3. To install libncurses5-dev you can do
    sudo apt-get install libncurses5-dev:i386
  4. Did repo sync -j16.  It started at three pm and ended the following day after two restarts, and the one that worked was using -j10.
  5. Did . build/envsetup.sh so that the lunch command would work
  6. Did
    croot
    brunch grouper
    to build the rom and waited a long time.  I got a warning about java that made no sense – telling me I neded java_6.0.x but I only had java_6.0.34 or something.  There was also a warning at the start, but it ran OK.  For hours and hours on my Inspiron 1525 (Celeron 900 at 2.2 GHz Processor).  I went to bed.
  7. It failed.  It turned out I should have done
    cd ./android/system/vendor/cm/
    ./get-prebuilt
  8. Left it building with the step 6 again and went to work.  I came back to it nearly being complete but no .zip file 🙁
  9. I worked out that the ./get-prebuilts had not worked.  I looked at the script and worked out that the Term.apk was “file not found”. I installed the Android Terminal Editor on my nexus, found the file in /data/app using root explorer, sent it to dropbox, downloaded it, renamed it to Term.apk, commented out the two curl lines in get-prebuilts and ran it again. It worked. I love the internet. No idea if it solves my build problems, but I am closer. 
  10. Build problems not solved!!  Had to install several more packages and was put on to this thread that helped:
    http://forum.xda-developers.com/showthread.php?t=1505006
  11. Found I also needed to install xsltproc
  12. Tried compiling again and went to bed waited eagerly to see what would happen since it seemed to be working.
  13. SUCCESS!