1, installation Ubuntu14.04
Download Ubuntu system, official website address, download from ubuntu10.04-ubuntu15.04, download desktop and server version according to your needs.
General virtual machine recommended to install desktop version, easy to manage, my computer is 64-bit, so download the Ubuntu-14.04.2-server-amd64.iso
Install Ubuntu system, in fact very simple, online also a lot of view tutorial, with U disk installation need attention, I used UltraISO to make system, results system can not be installed, After using Win32diskimager-v0.8-binary.zip to make a USB flash drive, and then start on the USB stick, the rest of the steps and the same as the VMware Workstation installation
Windows 7 Hard Drive installation Ubuntu 14.10 Graphics Tutorial http://www.linuxidc.com/Linux/2014-10/108430.htm
2, install the Android5.1 environment to compile the necessary related packages
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 Lib32z-dev libgl1-mesa-dev g++-multilib mingw32 tofrodos Python-markdown Libxml2-utils Xsltproc Lib32readline-gplv2-dev
3, Installation OpenJDK
sudo apt-get install Default-jre
sudo apt-get install DEFAULT-JDK
The default installation under USR/LIB/JVM, the installation is successful, can be viewed through java-version, if you want to set the default, you can do the following steps
sudo update-alternatives--install/usr/bin/java java/usr/lib/jvm/java-1.7.0-openjdk-amd64/bin/javasudo update-alternatives--install/usr/bin/javac javac/usr/lib/jvm/java-1.7.0-openjdk-amd64/bin/javacsudo update-alternatives--config java
Setting environment variables (global)
sudo gedit/etc/profile
Export java_home=/usr/lib/jvm/java-1.7.0-openjdk-amd64</span>export classpath= ".: $JAVA _home/lib: $CLASSPATH"export path= "$JAVA _home/bin: $PATH"
sudo gedit/etc/environment Add the appropriate path path
4. Unzip kernel and Android pack
KERNEL Package Decompression: TAR-ZXVF ${customer_project}_kernel.tar.gz
Android Package Decompression:
ALPS. L1. MP8. V1_ELINK8163_TB_L1_INHOUSE.tar.gz00
ALPS. L1. MP8. V1_ELINK8163_TB_L1_INHOUSE.tar.gz01 ....
ALPS. L1. MP8. V1_ELINK8163_TB_L1_INHOUSE.tar.gz08
Decompression can be done by:
Cat ${customer_project}_inhouse.tar.gz* | Tar zxvf-
Or first compress the above gz00-gz01 into a package: The terminal Run command is as follows
Cat (space)
ALPS. L1. MP8. V1_ELINK8163_TB_L1_INHOUSE.tar.gz00 (space)
ALPS. L1. MP8. V1_ELINK8163_TB_L1_INHOUSE.TAR.GZ01 (space)
...
ALPS. L1. MP8. V1_ELINK8163_TB_L1_INHOUSE.tar.gz08 (space)
>> ALPS. L1. MP8. V1_ELINK8163_TB_L1_INHOUSE.tar.gz
This will be more than one compression package ALPS.L1.MP8.V1_ELINK8163_TB_L1_INHOUSE.tar.gz, and then by decompression command TAR-ZXVF decompression can be
5. Compiling Android
Compile command:
SOURCE build/envsetup.sh
Lunch
Make-j16 2>&1 | Tee Build.log
Ubuntu 14.04 builds Android development environment http://www.linuxidc.com/Linux/2014-05/101149.htm
Ubuntu 14.04 x64 Configuring the Android 4.4 KitKat compilation Environment Method http://www.linuxidc.com/Linux/2014-05/101148.htm
Ubuntu 12.04 builds Android development environment http://www.linuxidc.com/Linux/2012-09/69961.htm
Ubuntu 14.04 Configuration Android SDK development environment http://www.linuxidc.com/Linux/2014-05/101039.htm
64-bit Ubuntu 11.10 Built-in Android development environment (Jdk+eclipse+adt+android SDK details) http://www.linuxidc.com/Linux/2013-06/85303.htm
Ubuntu 12.10 x64 Install Android SDK http://www.linuxidc.com/Linux/2013-03/82005.htm
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Ubuntu 14.04 Build Android5.1 development environment and compile