Compilation failure in Android 2.3

Source: Internet
Author: User

The Gingerbread source code just downloaded from Google server found that the compilation failed:

 

Checking build Tools versions...
Build/CORE/main. MK: 77: **************************************** ********************
Build/CORE/Main. mk: 78: You are attempting to build on a 32-bit system.
Build/CORE/Main. mk: 79: only 64-bit build environments are supported beyond froyo/2.2.
Build/CORE/main. MK: 80: **************************************** ********************
Build/CORE/Main. mk: 81: *** stop. Stop.

 

Please refer to the steps below

 

1 install several software:

Sudo apt-Get install lib64z1-dev libc6-dev-amd64 g ++-multilib lib64stdc ++ 6

 

 

2. You can also use 32-bit compilation (always 32-bit system)

Modify build/CORE/Main. mk

# Ifneq (64, $ (findstring 64, $ (build_arch )))
Ifneq (i686, $ (findstring i686, $ (build_arch )))
$ (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 ************************************* ***********************)
$ (Error stop)
Endif
Endif

 

3. You can also compile Java 2.2 (1.5 is also version)

Modify build/CORE/Main. mk

Java_version: = $ (shell Java-Version 2> & 1 | head-N 1 | grep '["] 1/. 5 [/." $]')

Javac_version: = $ (shell javac-Version 2> & 1 | head-N 1 | grep '["] 1/. 5 [/." $]')

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.