[Hero CDMA General] glenny buster:
this is a guide for setting up a build environment on ubuntu 10.10. there has been similar guides but i did not have any luck with them. i'll just post step by step what i did to get a good build environment set up and compile jaybob's source.

install ubuntu 10.10

install ubuntu, install all the latest updates, DO NOT INSTALL UBUNTU 11.04 I MADE THIS FOR 10.10!!!

restart ubuntu

go to system, administration, update manager

go to settings

go to other software

check both canonical partners and click close

download python

sudo add-apt-repository ppa:fkrull/deadsnakes

sudo apt-get update

sudo apt-get install python2.5

download jdk 6

sudo add-apt-repository "deb http://archive.canonical.com/ maverick partner"

sudo add-apt-repository "deb http://archive.canonical.com/ubuntu maverick partner"

sudo apt-get update

sudo apt-get install sun-java6-jdk

download sdk

download link: http://dl.google.com/android/android-sdk_r15-linux.tgz

take android-sdk-linux folder and move it inside your home folder

open terminal

cd android-sdk-linux

cd tools

./android

the sdk manager will open. download the platform tools and any sdk versions you wish to have

download git

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install git-core

install required build packages

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

configure your usb

gksudo gedit /etc/udev/rules.d/51-android.rules

in the blank file that opens, paste this next line in the file:

SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"

save and close the file.

then run in terminal:

sudo chmod a+r /etc/udev/rules.d/51-android.rules

cd

gedit .bashrc

in the file that opens, add these next lines to the top of the file:

#AndroidDev PATH

export PATH=${PATH}:${HOME}/android-sdk-linux/platform-tools/

save and close the file, then in terminal, type:

source ~/.bashrc

then in terminal type:

which adb

which adb will show you your adb path. if it says "/home/YOURLINUXNAME/android-sdk-linux/platform-tools//adb" your path is good.

connect your phone, do not mount usb, make sure debugging is checked, then in terminal type:

adb devices

my device showed up as "0123456789ABCDEF device", as long as it says device at the end its good.

create directories

mkdir -p ~/bin

mkdir -p ~/android/system

download repo and make executable

curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo

chmod a+x ~/bin/repo

initialize the repository

cd ~/android/system/

repo init -u git://github.com/TeamHeroC/manifest_aosp_heroc.git

(the repo above is jaybob's repo, there are a couple different repos you can choose from, you can download the AOSP repo, or cyanogenmod's repo aswell from the wiki)

repo sync

copy proprietary files

(must have jaybob's or a cm based rom already flashed to phone)

cd ~/android/system/device/htc/heroc/

./extract-files.sh

build the source

. build/envsetup.sh

lunch aosp_heroc-eng

mka bacon

if all goes well, your rom zip will be in ~/android/system/out/target/product/heroc/

*** when youre initializing the repository, if youre are compiling cyanogenmod's, follow the instructions in the wiki when you get to that section. if you are compiling aosp, follow the instructions on the aosp website. everything before that step should give you a good build environment to decide which source you want to build.***

Thank you:

dastin1015 - i used some of his guide and he is a great developer.

jaybob413 - for being a great developer and for his repo.

cyanogenmod - for the source and some of their guide.

sykopompos - i used some of his guide.

mTeryk - for helping me figure out my adb issue.

youdug - for finding some of the sources and helping me figure everything out.