sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk
sudo update-alternatives --config java
在线安装编译库
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 lib32z1-dev libgl1-mesa-dev
g++-multilib mingw32 tofrodos python-markdown libxml2-utils
[
sudo apt-get install git-core gnupg
flex bison gperf build-essential zip
curl zlib1g-dev gcc-multilib
g++-multilib libc6-dev-i386
lib32ncurses5-dev ia32-libs
x11proto-core-dev libx11-dev
lib32readline5-dev lib32z-dev
uboot-mkimage sun-java6-jdk
]
[
<code style="line-height: 14px;"><span class="pln" style="color: rgb(0, 0, 0);">$ sudo apt</span><span class="pun" style="color: rgb(102, 102, 0);">-</span><span class="kwd" style="color: rgb(0, 0, 136);">get</span><span class="pln" style="color: rgb(0, 0, 0);"> install git gnupg flex bison gperf build</span><span class="pun" style="color: rgb(102, 102, 0);">-</span><span class="pln" style="color: rgb(0, 0, 0);">essential </span><span class="pun" style="color: rgb(102, 102, 0);">\</span><span class="pln" style="color: rgb(0, 0, 0);"> zip curl libc6</span><span class="pun" style="color: rgb(102, 102, 0);">-</span><span class="pln" style="color: rgb(0, 0, 0);">dev libncurses5</span><span class="pun" style="color: rgb(102, 102, 0);">-</span><span class="pln" style="color: rgb(0, 0, 0);">dev</span><span class="pun" style="color: rgb(102, 102, 0);">:</span><span class="pln" style="color: rgb(0, 0, 0);">i386 x11proto</span><span class="pun" style="color: rgb(102, 102, 0);">-</span><span class="pln" style="color: rgb(0, 0, 0);">core</span><span class="pun" style="color: rgb(102, 102, 0);">-</span><span class="pln" style="color: rgb(0, 0, 0);">dev </span><span class="pun" style="color: rgb(102, 102, 0);">\</span><span class="pln" style="color: rgb(0, 0, 0);"> libx11</span><span class="pun" style="color: rgb(102, 102, 0);">-</span><span class="pln" style="color: rgb(0, 0, 0);">dev</span><span class="pun" style="color: rgb(102, 102, 0);">:</span><span class="pln" style="color: rgb(0, 0, 0);">i386 libreadline6</span><span class="pun" style="color: rgb(102, 102, 0);">-</span><span class="pln" style="color: rgb(0, 0, 0);">dev</span><span class="pun" style="color: rgb(102, 102, 0);">:</span><span class="pln" style="color: rgb(0, 0, 0);">i386 libgl1</span><span class="pun" style="color: rgb(102, 102, 0);">-</span><span class="pln" style="color: rgb(0, 0, 0);">mesa</span><span class="pun" style="color: rgb(102, 102, 0);">-</span><span class="pln" style="color: rgb(0, 0, 0);">glx</span><span class="pun" style="color: rgb(102, 102, 0);">:</span><span class="pln" style="color: rgb(0, 0, 0);">i386 </span><span class="pun" style="color: rgb(102, 102, 0);">\</span><span class="pln" style="color: rgb(0, 0, 0);"> libgl1</span><span class="pun" style="color: rgb(102, 102, 0);">-</span><span class="pln" style="color: rgb(0, 0, 0);">mesa</span><span class="pun" style="color: rgb(102, 102, 0);">-</span><span class="pln" style="color: rgb(0, 0, 0);">dev g</span><span class="pun" style="color: rgb(102, 102, 0);">++-</span><span class="pln" style="color: rgb(0, 0, 0);">multilib mingw32 tofrodos </span><span class="pun" style="color: rgb(102, 102, 0);">\</span><span class="pln" style="color: rgb(0, 0, 0);"> python</span><span class="pun" style="color: rgb(102, 102, 0);">-</span><span class="pln" style="color: rgb(0, 0, 0);">markdown libxml2</span><span class="pun" style="color: rgb(102, 102, 0);">-</span><span class="pln" style="color: rgb(0, 0, 0);">utils xsltproc zlib1g</span><span class="pun" style="color: rgb(102, 102, 0);">-</span><span class="pln" style="color: rgb(0, 0, 0);">dev</span><span class="pun" style="color: rgb(102, 102, 0);">:</span><span class="pln" style="color: rgb(0, 0, 0);">i386 $ sudo ln </span><span class="pun" style="color: rgb(102, 102, 0);">-</span><span class="pln" style="color: rgb(0, 0, 0);">s </span><span class="pun" style="color: rgb(102, 102, 0);">/</span><span class="pln" style="color: rgb(0, 0, 0);">usr</span><span class="pun" style="color: rgb(102, 102, 0);">/</span><span class="pln" style="color: rgb(0, 0, 0);">lib</span><span class="pun" style="color: rgb(102, 102, 0);">/</span><span class="pln" style="color: rgb(0, 0, 0);">i386</span><span class="pun" style="color: rgb(102, 102, 0);">-</span><span class="pln" style="color: rgb(0, 0, 0);">linux</span><span class="pun" style="color: rgb(102, 102, 0);">-</span><span class="pln" style="color: rgb(0, 0, 0);">gnu</span><span class="pun" style="color: rgb(102, 102, 0);">/</span><span class="pln" style="color: rgb(0, 0, 0);">mesa</span><span class="pun" style="color: rgb(102, 102, 0);">/</span><span class="pln" style="color: rgb(0, 0, 0);">libGL</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">so</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="lit" style="color: rgb(0, 102, 102);">1</span><span class="pln" style="color: rgb(0, 0, 0);"> </span><span class="pun" style="color: rgb(102, 102, 0);">/</span><span class="pln" style="color: rgb(0, 0, 0);">usr</span><span class="pun" style="color: rgb(102, 102, 0);">/</span><span class="pln" style="color: rgb(0, 0, 0);">lib</span><span class="pun" style="color: rgb(102, 102, 0);">/</span><span class="pln" style="color: rgb(0, 0, 0);">i386</span><span class="pun" style="color: rgb(102, 102, 0);">-</span><span class="pln" style="color: rgb(0, 0, 0);">linux</span><span class="pun" style="color: rgb(102, 102, 0);">-</span><span class="pln" style="color: rgb(0, 0, 0);">gnu</span><span class="pun" style="color: rgb(102, 102, 0);">/</span><span class="pln" style="color: rgb(0, 0, 0);">libGL</span><span class="pun" style="color: rgb(102, 102, 0);">.</span><span class="pln" style="color: rgb(0, 0, 0);">so</span></code>
<code style="line-height: 14px;"><span class="pln" style="color: rgb(0, 0, 0);">$ sudo apt</span><span class="pun" style="color: rgb(102, 102, 0);">-</span><span class="kwd" style="color: rgb(0, 0, 136);">get</span><span class="pln" style="color: rgb(0, 0, 0);"> install bison g</span><span class="pun" style="color: rgb(102, 102, 0);">++-</span><span class="pln" style="color: rgb(0, 0, 0);">multilib git gperf libxml2</span><span class="pun" style="color: rgb(102, 102, 0);">-</span><span class="pln" style="color: rgb(0, 0, 0);">utils</span></code>
]
2.2.1 Android 系统
◆ 编译内核,在lichee 目录下面执行以下语句
./build.sh -p sun7i_android
当屏幕上出现
###############################
# compile success #
###############################
表明编译成功完成,假如编译停止时未看见这个编译成功的提示表明编译失败。
注意:编译帮助指令,在不知道自己该输入什么指令编译固件时,可以在lichee 目录下键
入./build.sh -h 来获取帮助。
◆ 编译android,在android 目录下执行以下语句,引入环境:
source build/envsetup.sh
屏幕上会出现以下输出:
###############################
# compile success #
###############################
输入lunch:
lunch
15
extract-bsp
make -j8
pack