Edit: I cleaned up this post to make it easier to understand. It now includes all of Blarf's recomendations for a simpler cleaner build process, thanks Blarf!
@Blarf: I'm a noob at repo, git, and compiling Android, so I really appreciate your efforts to help people learn how to build from source.
Here's what you need to do to use Wubi on a Windows 7 computer to build the InferiorHumanOrgans repository and create your own ROM.
1)
Download and install the Wubi installer for Ubuntu, this will partition your hdd (virtual partition), and install Ubuntu10.xx in the new partition. It does it all automatically, so you don't have to follow any arcane instructions. Just be sure you choose 64bit, I don't know if you can compile Android on 32bit installs.
2) Boot into Ubuntu and open the package manager, and update everything
3)
Install the Java6 JDK (6 is required for gingerbread builds)
4)
Install the Android SDK, I highly recommend installing it to ~/android for ease of use, eclipse is optional
5) Using terminal, install and update all required packages, you can use the package manager, I use
sudo apt-get install <package_name_here>, you need these packages:
Code:
sudo apt-get install git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.6-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev sun-java6-jdk pngcrush schedtool
6) Install the required 64bit packages the same way, you need these packages:
Code:
sudo apt-get install g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline5-dev
7) If you use Ubuntu10.xx, you need to add this repository:
Code:
sudo add-apt-repository "deb http://archive.canonical.com/ maverick partner"
8) In terminal, make necessary folders for your build environment:
Code:
mkdir -p ~/bin
mkdir -p ~/android/system
9) Setup repo (note- you
may need to reboot after chmod the repo file, to insure it sticks)
Note- repo is the program that will download the needed files to your computer
Code:
sudo curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > /bin/repo
chmod a+x ~/bin/repo
10) Now we need to initialize repo to grab the InferiorHumanOrgans Gingerbread branch:
Code:
cd ~/android/system/
repo init -u git://github.com/inferiorhumanorgans/android.git -b gingerbread
repo sync -j16
11) Final setup of build environment, be sure that you have a space after the period and before build:
12) Run
lunch and select VM670
13) Run
make -j2 bacon
Once it finished compiling (about an hour later), there was a beautiful zip file in ~/android/system/out/target/product/thunderc with an accompanying md5 checksum. I used adb to push it to my phone's sdcard, booted into recovery, made a nandroid backup, wiped cache, wiped dalvik cache, formated boot, system, data, and cache, then flashed my new zip file, and gapps. Rebooted the phone, and I'm now running on my first build.