http://developer.android.com/sdk/ndk/index.html
Once you've installed the NDK successfully, take a few minutes to read the documentation
included in the NDK. You can find the documentation in the <ndk>/docs/
directory. In particular, please read the OVERVIEW.HTML document completely, so that you
understand the intent of the NDK and how to use it.
If you used a previous version of the NDK, take a moment to review the list of NDK changes in
the CHANGES.HTML document.
Here's the general outline of how you work with the NDK tools:
- Place your native sources under
<project>/jni/...
- Create
<project>/jni/Android.mk
to describe your native sources to the
NDK build system
- Optional: Create
<project>/jni/Application.mk
.
- Build your native code by running the 'ndk-build' script from your project's directory. It
is located in the top-level NDK directory:
cd <project>
<ndk>/ndk-build
The build tools copy the stripped, shared libraries needed by your application to the
proper location in the application's project directory.
- Finally, compile your application using the SDK tools in the usual way. The SDK build tools
will package the shared libraries in the application's deployable
.apk
file.
For complete information on all of the steps listed above, please see the documentation
included with the NDK package.
-----------------------------------------------
Reference:
http://code.google.com/p/mingw-and-ndk/
如果遇到如下错误
make: *** [clean-installed-binaries] Error 127
看看你的PATH环境变量是否包括C:\cygwin\bin ,如果有,去掉。
分享到:
相关推荐
android 的C和C++开发Pro Android C with the NDK
Chapter 1: Getting Started with C++ on Android Chapter 2: Exploring the Android NDK Chapter 3: Communicating with Native Code using JNI Chapter 4: Auto-Generate JNI Code Using SWIG Chapter 5: Logging,...
安卓ndk入门书籍,从环境配置到代码编写,英文版
What is the Android platform, and getting up to speed with the Android NDK. Using the Eclipse IDE to streamline developing native applications How to use Java Native Interface (JNI) to connect native ...
Android C++高级编程使用NDK [ Pro Android C++ with the NDK ]书源码
Getting Started with C++ on Android Chapter 2. Exploring the Android NDK Chapter 3. Communicating with Native Code using JNI Chapter 4. Auto-Generate JNI Code Using SWIG Chapter 5. Logging, ...
pdf文档,主要写 如何应用NDK 开发安卓的 多媒体应用程序。 其中,也包括如何编译ffmpeg的android版本。
Tegra-specific components required to support development and use of a Tegra 250 devkit with Android. It contains the software required to flash and boot the devkit into Android. This Support Pack is ...
Getting started with Android development Setting up Windows Time for action – preparing Windows for Android development Installing Android development kits on Windows Time for action – ...
完美解决 No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android,mips64el-linux-android-4.9
Pro Android C++ with the NDK 和 Android NDK Beginner’s Guide
In previous chapter, you explored the logging, debugging, and troubleshooting tools and techniques pertaining to Android native application development....the native APIs provided by the Android NDK.
Error:No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
1.1.5 在Windows平台上下载并安装AndroidNDK 1.1.6 在Windows平台上下载并安装Eclipse 1.2 AppleMacOSX 1.2.1 在Mac平台上安装Xcode 1.2.2 验证Mac平台的Java开发包 1.2.3 验证Mac平台上的ApacheANT 1.2.4 验证GNU...