一、安装JDK。
$ sudo apt-get install sun-java6-jdk
(注:如执行上述命令找不到sun-java-jdk包,则在文件/etc/apt/sources.list中加入如下源)
deb hardy-updates main multiverse
sudo apt-get update
二、安装编译环境所需包:
$ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev libc6-dev x11proto-core-dev libx11-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils libncurses5-dev
三、安装编译内核所需包:
$ sudo apt-get install uboot-mkimage
四、安装GCC(ubuntu11.10的GCC4.6.1版本过高,编译android会有很多问题)
$sudo apt-get install gcc-4.4
$sudo apt-get install g++-4.4
$sudo mv /usr/bin/gcc /usr/bin/gcc.backup
$sudo ln -s /usr/bin/gcc-4.4 /usr/bin/gcc
$sudo mv /usr/bin/g++ /usr/bin/g++.backup
$sudo ln -s /usr/bin/g++-4.4 /usr/bin/g++
阅读(2634) | 评论(0) | 转发(0) |