接触android 第 6天 编译android操作系统
Jan 7th, 2009 by song

今天编译Android
按照 说明上提示操作

弄了个QQ开发群(非开发者勿入):78582218
非开发者可入此QQ交流群:47799321 (容纳500人)

Ubuntu Linux (i386)
To set up your Linux development environment, make sure you have the following:

   * Git 1.5.4 or newer and the GNU Privacy Guard.

   $ sudo apt-get install git-core gnupg

   * JDK 5.0, update 12 or higher.

   $ sudo apt-get install sun-java6-jdk

   * The following packages: flex, bison, gperf, libsdl-dev, libesd0-dev, libwxgtk2.6-dev (optional), build-essential, zip, curl.  

   $ sudo apt-get install flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev

   * You might also want Valgrind, a tool that will help you find memory leaks, stack corruption, array bounds overflows, etc.

   $ sudo apt-get install valgrind

   * Intrepid (8.10) users may need a newer version of libreadline:

$ sudo apt-get install lib32readline5-dev
Ubuntu Linux (amd64)
This has not been as well tested. Please send success or failure reports to repo-discuss@googlegroups.com.

The Android build requires a 32-bit build environment as well as some other tools:

   * Git, JDK, flex, and the other packages as listed above in the i386 instructions:  

   $ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl

   * Get a 32-bit version of the JVM:

     $ sudo apt-get install sun-java6-jdk       # JDK tools (javac, etc)
     $ sudo apt-get install ia32-sun-java6-bin  # JRE (java itself)
     $ sudo update-java-alternatives -s ia32-java-6-sun

   * Pieces from the 32-bit cross-building environment:

   $ sudo apt-get install lib32z1-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs

   * Intrepid (8.10) users may need a newer version of libreadline:

$ sudo apt-get install lib32readline5-dev

   * X11:
         o Ubuntu doesn’t have packages for the X11 libraries, but that can be worked around with the following command:

           $ sudo ln -s /usr/lib32/libX11.so.6 /usr/lib32/libX11.so

         o If the build fails because of missing X11/Xlib.h and X11/Xatom.h, install the X11 devel packages.  (This problem exists when building on Ubuntu 8.10 x86_64)

           sudo apt-get install x11proto-core-dev  # provides Xatom.h
           sudo apt-get install libx11-dev  # provides Xlib.h Read the rest of this entry »

SIDEBAR
»
S
I
D
E
B
A
R
«
»  Substance:WordPress   »