This chapter mainly describes how to build the environment of Android bottom development, mainly including the Android application development environment, Android NDK development environment, a cross-compilation environment of the building.
The following tools are required to first develop, test, and debug the Linux driver, the HAL Library:
1.jdk6 or above version;
2.eclipse3.4 or above version;
3.ADT;
4.CDT;
5.Android SDK;
6.Android NDK;
7. Cross-compiling environment;
8.Linux kernel source code;
9.Android source code;
10. Serial tool for debugging the Development Board: Minicom.
With regard to the installation of JDK, we have learned in the Java course that we install the command to enter # Gedit/etc/profile in a Linux system to open the profile file to set the PATH environment variable. After opening the profile file, enter export path=.:/at the end of the file Developer/jdk6/bin: $PATH to modify environment variables.
Next, we started installing the Android SDK, and in the last semester we learned how to install the Android SDK in the Android app Development class, which is relatively simple, but after the installation is complete, you need to execute the following command on the Linux system: # Gedit/ Etc/profile Open the profile file and fill it in at the end of the profile file.
# Export Android_sdk_path=/sdk/android/android-sdk-linux
# Export PATH: $ANDROID _sdk_path/platform-tools: $PATH
Save and close the profile file and enter Sourse/etc/profile in the Linux terminal to execute the commands in the profile.
Build the environment for Android bottom-up development