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