在eclipse中配置android ndk的自动编译环境builders
關于配置方法,極力推薦以下文章,不懂e文無所謂,看圖片都明白了。。。
引用網(wǎng)址:http://mobilepearls.com/labs/ndk-builder-in-eclipse/
Setting up Automatic NDK Builds in Eclipse
When editing native JNI code in an Android project using the?Android NDK?you may configure Eclipse to automatically rebuild your project when editing native code, just as it does for java. The below steps shows how to perform the necessary configuration (note that this requires revision 4 or later of the NDK - previous revisions does not contain the necessary?ndk-build?binary):
Start by right clicking on your android project (named?hello-neon?in the below screenshots) with JNI resources, and select?Properties. In the resulting dialog, choose the?Builders?entry in the list to the left and press the?New...?button:
A new dialog will open presenting a list of builder types. Select the?Program?type and press the?OK?button:
In the?Main?tab, fill in the following:
Name:The result should look something like the below:
Now continue with the refresh tab. Make sure the two checkboxes?Refresh resources upon completion.?and?Recursively include sub-folders?are checked. Choose the?Specific resources?radio button and press the?Specify Resources...?button:
Since the ndk-build process will generate files in the lib folder, we want Eclipse to discover changes made there without having to refresh manually. So select the lib folder in the project (create one if necessary) and press the?Finish?button:
Now skip the?Environment?tab and go to the final?Build Options?tab. Make sure the?Run the builder: During auto builds?checkbox is checked.
Since the NDK build only needs to happen when editing files in the?jni?folder, check that folder and press the?Finish?button.
Now finally press?OK?in the builder configuration dialog - the new NDK builder should now be up and running. Try editing any file in the?jnifolder and check that the?Console?view produces output from the build process:
轉(zhuǎn)自?http://lockriver.blog.163.com/blog/static/48723224201143111491801/
總結
以上是生活随笔為你收集整理的在eclipse中配置android ndk的自动编译环境builders的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 用javah 导出类的头文件, 常见的错
- 下一篇: 探讨如何成为技术团队管理者