Android NDK generates a multiple CPU type so package

Source: Internet
Author: User

1, please refer to my blog http://blog.csdn.net/changcsw/article/details/41491257 installation Cygwin environment

2. Please refer to my blog http://write.blog.csdn.net/postedit/8983907 complete basic NDK simple build only support Armeabi so package

3. Generate so packages that support multiple CPU types

In the directory corresponding to the NDK directory, android-ndk-r9d\samples\hello-jni\jni find the application.mk file and copy it to the JNI directory in your project.

Open the Application.mk file to see App_abi: = All

If not changed, the Armeabi, ARMEABI-V7A, x86, MIPS four types of so files will be generated in the Lib directory. If a warning is found:

Warning:app_platform android-19 is larger than Android:minsdkversion 8 in./androidmanifest.xml

Just add a sentence in the Application.mk file: app_platform: = android-8

Of course, sometimes only need to Armeabi, armeabi-v7a these two CPU types of support, there is no need to generate other, this time as long as the

App_abi: = All in the Application.mk file is changed to: App_abi: = Armeabi armeabi-v7a.

Android NDK generates a multiple CPU type so package

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.