Solution to Android compilation errors on 64-bit virtual machines

Source: Internet
Author: User

Modify:

Android2.3.4 _ gb_t34/build/CORE/Main. mk

# Ifneq (64, $ (findstring 64, $ (build_arch) // open this Annotation

Ifneq (i686, $ (findstring i686, $ (build_arch) // annotate this line
$ (Warning ************************************* ***********************)
$ (Warning you are attempting to build on a 32-bit system .)
$ (Warning only 64-bit build environments are supported beyond froyo/2.2 .)

$ (Warning ************************************* ***********************)

Modify/android2.3.4 _ gb_t34/external/clearsilver/directory

CGI/Android. mk: 16: # local_cflags + =-M64
CGI/Android. mk: 17: # local_ldflags + =-M64
CGI/Android. mk: 21: # uses a 32-bit toolchain that can't handle-M64
CS/Android. mk: 12: # local_cflags + =-M64
CS/Android. mk: 13: # local_ldflags + =-M64
CS/Android. mk: 17: # uses a 32-bit toolchain that can't handle-M64
Java-JNI/Android. mk: 37: # local_cflags + =-M64
Java-JNI/Android. mk: 38: # local_ldflags + =-M64
Java-JNI/Android. mk: 42: # uses a 32-bit toolchain that can't handle-M64
Util/Android. mk: 21: # local_cflags + =-M64
Util/Android. mk: 22: # local_ldflags + =-M64
Util/Android. mk: 26: # uses a 32-bit toolchain that can't handle-M64

Remove the above comments

Comment out M32

CGI/Android. mk: 18: local_cflags + =-M32
CGI/Android. mk: 19: local_ldflags + =-M32
CS/Android. mk: 14: local_cflags + =-M32
Java-JNI/Android. mk: 39: local_cflags + =-M32
Java-JNI/Android. mk: 40: local_ldflags + =-M32
Util/Android. mk: 23: local_cflags + =-M32
Util/Android. mk: 24: local_ldflags + =-M32

Related Article

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.