Setup Building Environment for Android ICS/FireFox OS from and clean Ubuntu10.04 LTS

1, in “system -> administration -> software sources”

“ubuntu software” tab: download from “Main Server”

“updates” tab: check “important security updates” and “recommended updates”


2, run

sudo apt-get update

sudo apt-get upgrade

reboot (maybe not necessary)


3, install other libs needed

sudo apt-get install git-core gnupg flex bison gperf build-essential \
 zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
 x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
 libgl1-mesa-dev g++-multilib mingw32 tofrodos


4, install JDK and JRE

http://www.oracle.com/technetwork/java/javase/downloads/jre6downloads-1902815.html

1.6.0_26 is the best? I just download the 1.6.0_43, we’ll see...


5, setup JAVA path

add these lines to /etc/profile, need root permission:

# stone: add this for android building

export JAVA_HOME=/home/stone/projects/tools/jdk1.6.0_43

export JRE_HOEE=/home/stone/projects/tools/jre1.6.0_43

export PATH=/home/stone/projects/tools/jdk1.6.0_43/bin:$PATH

export CLASSPATH=.:/home/stone/projects/tools/jdk1.6.0_43/lib:/home/stone/projects/tools/jre1.6.0_43/lib

adjust the path in your PC, reboot or logout will make


build can be done after all steps completed

你可能感兴趣的:(Setup Building Environment for Android ICS/FireFox OS from and clean Ubuntu10.04 LTS)