In Windows 7 to build Android x86_64 and armv8-a operation steps, x86_64armv8-a

Source: Internet
Author: User

In Windows 7 to build Android x86_64 and armv8-a operation steps, x86_64armv8-a

1. Download android-ndk-r10d-windows-x86_64.exe and https://developer.android.com/tools/sdk/ndk/index.html from the android-ndk-r10d-linux-x86_64.bin;

2. Install ndkr10d:./android-ndk-r10d-linux-x86_64.bin in Ubuntu1404 64-bit through the terminal;

3. Run sudo vi/etc/profile to open the profile file and add

export NDKROOT=/home/spring/ndk/android-ndk-r10dexport PATH=$NDKROOT:$PATHexport NDKBIN=/home/spring/ndk/android-ndk-r10d/toolchains/aarch64-linux-android-4.9/prebuilt/linux-86_64/bin

4. Restart ubuntu and enter ndk-build to display android ndk and other related information. This indicates that the NDK is successfully configured;

5. Install android-ndk-r10d-windows-x86_64.exe on Windows and install it in the D:/ProgramFiles/Android/android-sdk/directory;

6. Download The 5.0.1 or 5.1 SDK through SDK Manager.exe;

7. In windows, modify the/. bash_profile configuration in Cygwin and add the ndkr10d path:

ANDROID_NDK_ROOT=/cygdrive/d/ProgramFiles/Android/android-sdk/android-ndk-r10dPATH=/cygdrive/d/ProgramFiles/Android/android-sdk/android-ndk-r10d:/cygdrive/d/Soft/Java/eclipse/plugins/org.apache.ant_1.8.4.v201303080030/bin:$PATH

8. If x86_64 is compiled, You need to assign the value of APP_ABI in Application. mk to: APP_ABI: = x86_64.

9. If you compile the armv8-a, You need to assign the APP_ABI value in Application. mk to: APP_ABI: = arm64-v8a

10. other basic operation steps can refer to: (1), http://blog.csdn.net/fengbingchun/article/details/10439281; (2), http://blog.csdn.net/fengbingchun/article/details/11580983; (3), http://blog.csdn.net/fengbingchun/article/details/38798023;

11. APP_ABI currently available values include: (1), 32-bit: armeabi, armeabi-v7a, x86, mips; (2), 64-bit: arm64-v8a, x86_64, mips64;

12. note: (1), the current simulator only x86_64 no arm64-v8a; (2), in the use of a real machine to test the armv8-a, it is best to first through the adb shell, cat/proc/cpuinfo, (3), arm32 and arm64 some configuration parameters cannot coexist, such as-msoft-float is only supported in arm32, arm64-bit is not supported.

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.