Android System porting and debugging (i) Android build environment compile server build

Source: Internet
Author: User
Tags unzip rar

1, Ubuntu system installation
Android compilation is officially recommended for 64bit compilation.Ubuntu recommends installing the 12.04 64-bit version, using tools such as UltraISO to make U disk boot disk. installation consistent with the general Ubuntu system installation, do not repeat here!
2, Ubuntu environment construction
the compilation of the code needs to be done under Ubuntu 64-bit system, so the environment is built with Ubuntu system as the main.
2.1. Ubuntu Basic Tools
in the Ubuntu Command window, enter the following command to install some basic tools. Wait for the installation to complete and proceed to the next step:
sudo apt-get install vim git git-core zip unzip rar unrar Curl minicom valgrind gawk
The installation process takes a bit of time because Ubuntu servers are generally abroad. of course, you can modify Ubuntu to download the server address to the domestic, will be much faster
2.2. Android Compilation Tool
Install the appropriate compilation tool directly in the Ubuntu Command window by typing the following command
sudo apt-get install GnuPG Flex Bison gperf build-essential Zlib1g-dev gcc-multilibg++-multilib libc6-dev libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-devxsltproc lib32readline-gplv2-dev lib32z1-dev libxml2-utils imagemagick lzop libesd0-devlibwxgtk2.8-dev zlib1g-dev libncurses5-dev lib32z1-dev lib32bz2-dev lib32ncurses5-devlib32z-dev libgl1-mesa-dev mingw32 tofrodos gcc-4.4 g++-4.4 g++-4.4-multilib
The installation process takes a bit of time because Ubuntu servers are generally abroad. of course, you can modify Ubuntu to download the server address to the domestic, will be much faster
2.3. Installing the JDK
JDK version is recommended to use 6U45, other versions may have some messy compilation problems, the installation steps are as follows:
A. Download the Jdk-6u45-linux-x64.bin online B, copy to/opt/,chmod u+x jdk-6u45-linux-i586.bin C,./jdk-6u45-linux-i586.bin D, Configure the environment variables, in/etc/profile or ~/.BASHRC plus:java_home=/opt/jdk1.6.0_45classpath= $JAVA _home/lib: $JAVA _home/jre/libExport Java_home CLASSPATHexport path= $PATH: $JAVA _home/bin
after the installation is complete, the basic build environment can be set up. This time, you can use Git to get the source code. It is then compiled. This environment is mainly built by Google's recommended standard compilation environment. It is very similar to build a compilation environment for Amlogic compilation environment. and each chip manufacturer will have the recommended compilation documentation. Can be built according to the document. Of course, according to the above steps to build the environment. Compiling these chip manufacturers of the source code is also no problem. unless some chips have a special version of the Compile tool requirements. The installation process takes a bit of time because Ubuntu servers are generally abroad. of course, you can modify Ubuntu to download the server address to the domestic, will be much faster

Android System porting and debugging (i) Android build environment compile server build

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.