[Droid Incredible Android Development] tODDaLLeN:
building issues

I'm very appreciative of the instructions provided to create a build environment. Thank you PonsAsinorem and tiny4579! I followed the instructions found here:

https://github.com/tiny4579/android_device_htc_inc/blob/cm-10.1/README.md

I spent most of a day and believe I'm now super close to making a build. Most of the pain came in deciding what OS distribution to start with and getting it set up. I went with Ubuntu 12.04 lts and installed it under virtualbox on my Ubuntu 12.10 host. The first attempt using virtualbox from Ubuntu's repository ran into issues, then I started over with the latest virtualbox direct from Oracle and it went smoothly. Actually the very worst pain of the day was with the computer I'm using is a laptop I got cheap off ebay due to both screen and keyboard being smashed and getting into the BIOS setup to enable intel VT-x support was challenging.

It might not of been needed, but after getting 12.04 up and running I installed sun-java6-jdk as opposed to openjdk-6 which was mildly tedious as it required adding multiple repositories from other versions of Ubuntu. I guess I should now remove the old repositories as there won't be any updates from them?

I ran in to a few minor issues following the remainder of the instructions and wanted to list them here so the instructions might be refined.

The first step sets up a folder ~/cm10

#Prepare to download sources

mkdir ~/cm10

...

cd ~/cm10

repo sync -j16

But then in the next section it appears the base project dir is ~/android/cm10. I used ~/cm10 instead for the following cd commands and all seemed to work ok.

#List of cherry-picks/reverts used. the first two are required to build

#Fix breakage due to CM revert part 1

#http://review.cyanogenmod.org/#/c/33305

cd ~/android/cm10/frameworks/native

...

Before executing the following I had to "cd ~/cm10" as the previous command left me in a subfolder.

# Pull in the prebuilts, like (currently only self-added GooManager)...

./vendor/cm/get-prebuilts

The final line to build has issues...

. build/envsetup.sh && time brunch inc

I inserted the missing '/' and successfully ran "./build/envsetup.sh" but first had to "cd build && chmod +x envsetup.sh && cd .."

"time brunch inc" gives an error and I'm desperate to proceed and see the build get underway and find out if I have a working build environment. Feel silly posting this error message, but for thoroughness...

No command 'brunch' found, did you mean:

Command 'branch' from package 'rheolef' (universe)

Finally, being a newbie to android development though an experienced programmer, I'd appreciate any pointers regarding efficient loading/executing/debugging of my new build - once I know how to build it...

One other thing when following the instructions at

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

to set up an android build environment under Ubuntu 12.04 my attempt to install package libgl1-mesa-glx:i386 failed. Looking at packages in synaptic showed libgl1-mesa-glx-lts-quantal installed and I hope that is ok? I'm guessing the issue came from the various repository additions I made when installing sun-java6-jdk