This chapter describes the need for Android applications and the Android NDK program to test Linux drivers, so the tools needed must be well equipped. And there are some requirements for the version of the tool, Jdk,eclipse,adt,cdt,android sdk,android NDK, cross-compilation environment, Linux kernel source code, Android source code, tool for debugging the Development Board serial Port Minicom, Of course the Development Board is also required.
Core steps:
1.JDK installation, need to be installed under Ubuntu. First to download, then extract, in the terminal Input command #gedit/etc/profile to set the PATH environment variable, in the open file last input export path=.:/ Developer/jdk7/bin: $PATH
Note that the JDK here is written on its own downloaded version and its own installed path, just for example. It then reloads the profile file and introduces another simple installation method.
2. Build the Environment
(1) Download and install the Android SDK
After unzipping adds a directory and then enters Android-sdk-linux/tools, there will be an Android script file that he is installing online.
(2) Install Eclipse, relatively simple, download the decompression installation can
(3) Installing ADT
On-line installation, offline installation;
(4) Configuring ADT
(5) Establishment of AVD
Creating an AVD is the creation of an emulator for the specified Android version.
3. Install Android NDK Environment
(1) Download Android NDK
Also download the latest version of the installation package, unzip, and add its installation directory to the PATH environment variable, ibid.
(2) Installing the CDT
The CDT is a plug-in that Eclipse uses to develop A/C + + program that, when installed to develop both Android applications and Android NDK programs in Eclipse, is also available for online and offline installations, and is easier to do offline.
(3) command line compile Android NDK program
The Android NDK source code is automatically compiled at terminal input ndk-bulid.
(4) Examples of Android NDK that can be imported
(5) Configuring the Android NDK integrated development environment
4. Installing the Cross-compilation environment
You can download the integrated or make your own.
http://www.cnblogs.com/xxyue/
Android Reading notes two