Android system source code compilation process-android compilation problem: only 64-bit build environments are supported beyond froyo/2.2

Source: Internet
Author: User
After the source code is downloaded, run the following command:
Root @ alex-MS-7236 :~ # Cd mydroid
Root @ alex-MS-7236 :~ /Mydroid # repo sync

An error occurs.
========================================================== ====
Checking build Tools versions...
Build/CORE/main. MK: 76: **************************************** ********************
Build/CORE/Main. mk: 77: You are attempting to build on a 32-bit system.
Build/CORE/Main. mk: 78: only 64-bit build environments are supported beyond froyo/2.2.
Build/CORE/main. MK: 79: **************************************** ********************
Build/CORE/Main. mk: 80: *** stop. Stop.
========================================================== ====
This is because froyo/2.2 only supports 64-bit by default, and some netizens still need to download 64-bit OS.
Solution: Set. /external/clearsilver/cgi/android. mk. /external/clearsilver/Java-JNI/android. mk. /external/clearsilver/util/android. mk. /external/clearsilver/CS/android. local_cflags + =-M64 local_ldflags + =-M64 In the MK files, or replace "64" with "32" local_cflags + =-M32 local_ldflags + =-M32, and then. /build/CORE/main. ifneq (64, $ (findstring 64, $ (build_arch) in MK is changed to: ifneq (i686, $ (findstring i686, $ (build_arch )))

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.