Documentation details: http://www.a10bbs.com/forum.php? MoD = viewthread & tid = 504 & extra =
Android system compilation can be divided into two parts: Linux kernel compilation and Android source code compilation. The full text mainly describes how to build the compiling environment and install the compilation dependency development tool, manufacturer errors and precautions during compilation.
Notes
1. The development described in this document, the compiling system environment is: ubuntu-10.04.4-server-i386.iso;
2. Do not switch to the root permission during the entire development process. If you need the root permission, run the root permission in sudo mode;
Compiling environment
1. Compile the system environment: ubuntu-10.04.4-server-i386.iso, the current version of the system is to compile android2.3.4 support the best, the most stable;
Ii. Install and compile the dependency Library:
1. Install sun-java6-jdk
Sudo apt-Get install sun-java6-jdk
Note: If you are prompted that the corresponding sun-java6-jdk package cannot be found, this is because the Ubuntu system of this version removes the source of the sun-java6-jdk;
Install the following method to add apt Source:
First to/etc/APT/sources. List, add "Deb http://us.archive.ubuntu.com/ubuntu/ hard Multiverse" in the last line of the file"
Run sudo apt-Get update.
Run sudo apt-Get installsun-java6-jdk again
2. install other compilation dependent Libraries
First, run the uname-ar command to check whether the system version is 32-bit or 64-bit. If x86_64 or arm64 is used, the system version is 64-bit, and the other is 32-bit; currently, the installed version is 32 bits by default;
Run the following command to install the relevant dependent libraries:
Ubuntu32: // The 32-bit system performs the following operations
Sudo apt-Get install Git-core GnuPG flex bison gperflibsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-devzlib1g-dev valgrind g ++-multilib gettext texinfo
Ubuntu64: // The 64-bit system performs the following operations
Sudo apt-Get install Git-core GnuPG flex bison gperf build-essentialzip curl zlib1g-dev gcc-multilib g ++-multilib libc6-dev-i386 lib32ncurses5-devia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev
The above operations will complete the establishment of the android quanzhi A10 (2.3.4) compiling environment, where the android4.0 (original version) and linux3.0 kernel can also be compiled and verified;