简体   繁体   中英

how to build ndk application?

您好如何构建ndk应用程序...现在我正在使用linux操作系统,而我是android应用程序的新手,请简单告诉我...。

This should hopefully help you out:

http://www.jondev.net/articles/Using_NDK_r4_with_the_Android_SDK_in_Netbeans

Shows you how to build a simple 'Hello World' app using the NDK.

Be aware that the NDK will not let you build applications. It will only let you build a shared library object ( .so ) that your SDK application will open at runtime in order to execute native code.

Instead of the standard way to build and install applications:

ant compile    # (or ant debug)
ant install

You will have an extra step:

ndk-build      # builds the .so files
ant compile    # builds the Java app and embeds the .so within the final .apk
ant install

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM