My DIY Android journey-compile and run android2.3. source code in ubuntu11.04

Source: Internet
Author: User

Although many netizens have already written articles about compiling and running android2.3 in ubuntu11.04, they have to do everything themselves to better understand the steps, A long time ago, I wanted to compile the android source code myself, and I wanted to develop Android embedded systems. Recently I started to do it, of course, some of the previous attempts to join a cm10 development team are still very useful. Although I have not made anything, I am quite ashamed! Recently I want to go back to school to do my graduation design and thesis defense. Huangshi's summer is estimated to be hot and cool, so I have a fight with Wuhan...

In other words, the specific configuration of my system is:

Win7 32-bit flagship edition + VM ware 9.0

Ubuntu system is: Ubuntu 11.04 Desktop-i386, not Lao Luo recommended ubuntu-11.04-alternate-i386, because I think this is really too... it seems that the pure Ubuntu version that cannot install the graphic interface is not suitable for me. I like Ubuntu as a pretty user interface. Note: Thanks to Lao Luo for his android journey, http://blog.csdn.net/column/details/androidluo.html. please support Lao Luo !!

The first is to obtain the source code. I believe many netizens know how to obtain the Ubuntu source code on the network. This is probably because the GIT tool is installed and the source code is synchronized on the Google website. I have also tried this, specific:

 

Git configuration is done, and the next step is cool synchronization...

I thought the synchronization was successful, but the synchronization process was often interrupted, prompting that access was denied. I decided to give up !!!

In the role (Tar
-Jxvf ** .tar.bz2) is only 2.6g, but can be compiled and run successfully! Rest assured! Another Android source code related is: http://hala01.com/

After downloading the source code, we will build the compiling environment:

I. Install the Java SDK. Run the following command on Ubuntu:

#

Add-Apt-repository PPA: ferramrobert to/Java

#

Sudo apt-Get update

#

Sudo apt-Get install sun-java6-jre sun-java6-plugin

#

Sudo apt-Get install sun-java6-jdk Note: When installing Java-related software, the configuration will appear OK can not be selected, then you just need to press the secret key, you can select OK, next, press the tab key to switch the options, and press next and enter to confirm the installation! Other packages that II depends on. Run the following command on Ubuntu:
# Sudo apt-Get install flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl IIIDebugging tool. Run the following command on Ubuntu:
#
Sudo apt-Get install valgrind

Complete the environment to build, then make, of course, the premise is to need the source file, the specific reference: http://blog.csdn.net/luoshengyang/article/details/6559955

After a long night of compilation, I am not sure when the compilation is complete. When I got up in the morning, I found that it was finally completed!

Then run it on the simulator. The compiled files are normal!

So far, the compilation and running of android2.3 have finally been completed. Of course, many articles on the Internet have explained in detail how to compile and run the android source code in Ubuntu, but what I want to say is, only by yourself can you really learn things and record your implementation process. It can help you save your notes and help other netizens. Why not!

Related Article

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.