This chapter mainly describes how to build an environment for Android's underlying development, including the Android application development environment, the Android NDK development environment, and the build-up of a cross-compilation environment.
Tools needed to develop, test, and debug Linux drivers, HAL libraries: Jdk6 or later, eclipse3.4 or above ADT, CDT, Android SDK, Android NDK, cross-build environment, Linux kernel source code, Android source code, the serial tool for debugging the Development Board: Minicom.
Installing the JDK
1. Download the JDK Compression Pack (tar.gz) (http://www.oracle.com/technetwork/java/javase/downloads/index.html) from the official website
2. Unzip (can be extracted to any directory)
3 Open: Enter command under Linux terminal (#gedit/etc/profile) to open the profile file
4. Configure the PATH environment variable (export path=./developer/jdk6/bin: $PATH)
5. Save
6. Overloading
Ubuntu Linux provides an easier way to install the JDK, and under the Linux terminal the following command can be installed automatically JDK6 (Internet connection required during command execution)
#add-apt-repository "Deb Http://archive.canonical.com/lucid partner"
#apt-get Update
#apt-get Install SUN-JAVA6-JDK
Installing the Android SDK
1,: http://developer.android.com/sdk/index.html
2, download the SDK, get Android-sdk_r16_linux.tar file
3, copy to a directory in the Linux file system, and then enter the directory and unzip the Linux terminal
4, after the decompression directory more than a android-sdk-linux directory, into the Android-sdk-linux/tools directory, there is an Android script file execution script file.
Install Eclipse
Installing ADT
Configuring ADT
Create AVD
Installing the Android NDK development environment
1. Download Android NDK
2. Installing the CDT
3. Command-line compiling Android NDK program
4. Examples of importing Android NDK
5. Configure the Android NDK integrated development environment
Installing the cross-compilation environment
Android Deep Exploration-Volume 1 chapter II