Orange Pi User Manual
Copy right by Shenzhen Xunlong Softwawre Co., Ltd
www.orangepi.org
8
III
.
Android Compilation Environment Construction
1.
Download SDK compression package
Take OrangePi_3G-IoT_Android4.4_V1.0_2018.tar.gz as an example, after get the original
compression package:
mkdir OrangePi_3G-IoT
tar zxvf OrangePi_3G-IoT_Android4.4_V1.0_2018.tar.gz -C OrangePi_3G-IoT
cd OrangePi_3G-IoT
2.
Construct Compilation Environment
It could also refer to Google file: http://source.android.com/source/initializing.html
Install JDK
Compilation of
Android6.0 is base on JAVA6, it needs to first install OpenJDK, gcc4.4 before
compilation.
Command for installing:
sudo apt-get install openjdk-6-jdk
sudo apt-get install gcc-4.4
If the installation path is /usr/lib/jvm/jdk1.6.0_31 when configure environment variable of JAVA, then
execute the the following command on terminal to configure the data.
export JAVA_HOME=/usr/lib/jvm/jdk1.6.0_31
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar
Install Software Package
For Ubuntu12.04:
sudo apt-get update
sudo apt-get install git-core gnupg flex bison ccache gperf libsdl1.2-dev
libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev
zlib1g-dev valgrind libc6-dev lib32ncurses5-dev x11proto-core-dev
libx11-dev lib32readline-gplv2-dev lib32z1-dev libgl1-mesa-dev gcc-4.4