Compile Android2.2 source code in Ubuntu10.04

Source: Internet
Author: User
Ubuntu 10.04 to compile Android2.2 source code first install the required software and Library Program: $ sudo-s $ apt-getupdate $ apt-getinstallgit-coregnupgflexbisongperflibsdl-devlibesd0-devbuild-essentialzipcurllibncurses5-devzlib1

To compile the Android 10.04 source code in Ubuntu 2.2, first install the required software and library programs:

$ Sudo-s
$ Apt-get update
$ Apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev build-essential zip curl libncurses5-dev zlib1g-dev
Then add the cn99 software source to the update source and continue:
$ Apt-get install libwxgtk2.6-dev sun-java6-jdk

Download source code:
$ Mkdir mydroid
$ Cd mydroid
$ Repo init-u git: // android.git.kernel.org/platform/manifest.git
$ Repo sync
Compile source code:
$ Make
... Wait for an hour and a half...
Configure environment variables and run the simulator:
......

Because JDK 6 is required for Android2.2 compilation, if JDK 6 is used in the makefile rules of the subitem, the system is a 64-bit system and the 64-bit compiling module is used. To compile correctly on 32 systems, you need to modify the following four files:

External/clearsilver/cgi/Android. mk
External/clearsilver/java-jni/Android. mk
External/clearsilver/util/Android. mk
External/clearsilver/cs/Android. mk


You can compile the ifneq statement in the file to ifeq.
# This forces a 64-bit build for Java6
Ifneq ($ (filter 1.6%, $ (java_version )),)
LOCAL_CFLAGS + =-m64
LOCAL_LDFLAGS + =-m64
Endif

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.