Cross-compiling
Compiling native code that can be executed on another platform on one platform
CPU Platform---ARM x86 MIPS
Operating system platform---Windows Linux Mac OS
Principle simulates the characteristics of different platforms to compile code
JNI development tool: NDK---Native develop kit
NDK Directory
docs--Help Documentation
platforms--many platform version folders, select the folder that corresponds to the minimum version number supported by the project
A resource file with different CPU schemas is placed in the folder for each version number
Click on one of the Android versions to go into the \arch-arm\usr\lib directory:
Include folder the. h header files commonly used in the development of JNI
Lib folder the. So file that Google has packaged for developers to use
Samples Google's official sample project, you can refer to the development
Android-ndk-r9d\build\tools batch files under the Linux system, which are automatically called when cross-compiling
Ndk-build Cross-compiled commands
Add the decompression path directly to the environment variable, my path is: D:\NDK\android-ndk-r9d\ndk-build.cmd
CDT Eclipse Plugin highlighting C code C code hints
Introduction to the Android NDK directory