CentOS 6 under development Android, SDK NDK environment build

Source: Internet
Author: User

Environment Construction Reference:

Http://blog.sina.com.cn/s/blog_6c728a0401019ckp.html

Problems encountered:

1.NDK installation problem execution. Error/ndkfilename.bin

BASH:/usr/local/bin/rar:/lib/ld-linux.so.2:bad ELF interpreter:no such file or directory

Reference: http://blog.csdn.net/orangleliu/article/details/8869626

Execute yum install libstdc++.so.6 and error

Continue with Yum List | grep libstdc Query Related packages Download x86_64 series

2. Ndk-build error occurred while compiling NDK problem

/android-ndk-r10c/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86/bin/. /lib/gcc/aarch64-linux-android/4.9/. /.. /.. /.. /aarch64-linux-android/bin/as:error while loading shared libraries: libz.so.1: Cannot open shared object file:n o Such file or directory

Make: * * * [OBJ/LOCAL/ARM64-V8A/OBJS-DEBUG/HELLO-JNI/HELLO-JNI.O] Error 1

FIX: Download Zlibz Library

Yum List | grep zlib

Yum Install zlib.x86_64

3. Need to execute after modifying/etc/profile

Source/etc/profile Effective

CentOS 6 under development Android, SDK NDK environment build

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.