分类: LINUX
2009-07-31 23:29:17
一,先安装一堆软件包:
apt-get install gcc g++ flex bison gperf libsdl-dev libesd0-dev libwxgtk2.8-dev build-essential zip valgrind sun-java6-jdk zlib1g-dev libncurses5-dev
二,下载源代码
curl > repo ; mv repo /usr/local/bin/repo; chmod a+x /usr/local/bin/repo
新建目录 mkdir /android
mkdir source; cd source
repo init -u git://android.git.kernel.org/platform/manifest.git
repo sync就开始下载源代码了
三,设置环境变量:
export JAVA_HOME=/usr/lib/jvm/java-6-sun-xxx.xx.xx
export ANDROID_JAVA_HOME=$JAVA_HOME
四,编译,
cd source; make