Introduction to Android NDK and androidndk

Source: Internet
Author: User

Introduction to Android NDK and androidndk

Android NDK is a tool set for Android SDK. It is used to expand the functions of Android SDK.

AndroidNDK is not a separate tool. It is a comprehensive tool set that includes APIs, cross compilers, linking programs, debuggers, build tools, documents, and sample applications.

 

Main Components of Android NDK:

· ARM, x86, and MIPS Cross Compiler

· Build a system

· Java Native Interface header file

· C library

· Math Library

· POSIX thread

· Minimum C ++ Library

· ZLib compression library

· Dynamic Link Library

· Android logstore

· Android pixel cache Library

· Android native app APIS

· OpenGL ES 3D graphics library

· OpenSL ES Native audio library

· OpenMAX AL minimum support

 

Android NDK structure (some important files and subdirectories ):

Ndk-build: this shell script is the starting point for building the Android NDK system.

Ndk-gdb: this shell script allows you to use the GUN debugger to debug native components.

Ndk-stack: this shell script can be used to analyze stack tracing when a native component crashes.

Build: This directory contains all modules of the Android NDK build system.

Platforms: This directory contains header files and library files that support different Android target versions. The Android NDK build system automatically references these documents based on the specific Android version.

Samples: This directory contains some sample applications that can reflect the performance of AndroidNDK. It is helpful to learn how to use the features of Android NDK.

Sorces: This directory contains some sharing modules that developers can import to existing Android NDK projects.

Toolchains: This directory contains cross compilers of different target machine architectures currently supported by Android NDK. Android NDK currently supports the architecture of ARM, X86, and MIPS machines. The Android NDK build system uses different cross compilers Based on the selected architecture.

 

NOTE: For the first Android NDK development in the workspace, you must specify the Android NDK location.

Preference --> Android --> NDK --> Browse: select the installation location. The selected NDK location is only valid for the current workspace.

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.