In-depth analysis of the android compiling environment on ubuntu 12.10

Source: Internet
Author: User

1. Install all suites
Sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev: i386 x11proto-core-dev: i386 libx11-dev: i386 libreadline6-dev: i386 g ++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown libxml2-utils extends tproc zlib1g-dev: i386

2. gcc downgrade

Sudo apt-get install gcc-4.4 g ++-4.4g ++-4.4-multilib
Sudo rm/usr/bin/gcc
Sudo rm/usr/bin/g ++
Sudo ln-s/usr/bin/gcc-4.4/usr/bin/gcc
Sudo ln-s/usr/bin/g ++-4.4/usr/bin/g ++

3. Install Sun Java 6

First on the official website Download Java http://www.oracle.com/technetwork/java/javase/downloads/ click to open the link

Taking jdk-6u38-linux-x64.bin as an Example

COPY jdk-6u38-linux-x64.bin to HOME

Cd ~
Sudo cp Co jdk-6u38-linux-x64.bin/opt
Cd/opt
Sudo chmod a + x jdk-6u38-linux-x64.bin
Sudo./jdk-6u38-linux-x64.bin
Sudo gedit ~ /. Bashrc &

Add
Export PATH =/opt/jdk1.6.0 _ 38/bin:/opt/jdk1.6.0 _ 38/lib:/opt/jdk1.6.0 _ 38: $ PATH

~ /. Bashrc

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.