"Android Deep Exploration Volume One" reading notes two

Source: Internet
Author: User

To develop, test and invoke Linux drivers, the HAL Library requires the tools:

JDK6 or above version;

Eclipse3.4 or above version;

ADT (for developing Android apps);

CDT (for developing ANDROIDNDK programs);

Android SDK;

Android NDK;

Cross-compiling environment;

Linux kernel source code;

Android source code;

Serial tool for debugging the Development Board: minicom;

A Installing the JDK

Download the JDK tarball and unzip it to any directory, enter "Getdit/etc/profile" on the Linux terminal to open the profile file, set the PATH environment variable "Export path=.:/ Developer/jdk6/bin: $PATH ", Reload after save". /etc/profile ".

or network online automatic installation:

"Add-apt-repository" Deb Http://archive.canonical.com/incid partner "

Apt-get Update

Apt-get Install SUN-JAVA6-JDK "

You do not need to manually configure the PATH environment variable after installation.

Two Build an Android application development environment

Download the unzip Android SDK and execute the Tools directory Android script file for online installation.

and add the Platform-tools and tools directories to the PATH environment variable.

Install and unzip Eclipse, launch Eclipse, install ADT online or offline, and create an AVD corresponding to the Android version.

Three Installing the Android NDK development environment

Download and unzip the Android NDK, run the script file Ndk-build compile the NDK program, and add the Android NDK installation directory to the PATH environment variable.

CDT is a plug-in that enables the development of both the Android application and the Android NDK program in Eclipse for developing A/C + + program. Installation is the same as ADT.

Four Installing the cross-compilation environment

The X86 architecture and ARM architecture CPUs use different instruction sets, and a cross-compiler is required to develop a program on the X86 architecture that can run on an arm architecture.

Cross compilers and related tools include many executables and resources such as a large number of shared libraries and header files, which are called cross-compilation environments.

Download online using the Codesourcery cross-compilation environment (integrated cross-compilation environment). Use the command "SH codesourcery to install file name. bin" into the visual interface for installation.

"Android Deep Exploration Volume One" reading notes two

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.