Ubuntu 12.04 builds a MTK Android development environment

Source: Internet
Author: User

mtk+android Development ($)

Ubuntu 12.04 builds MTK 6577 Android development environment

1. Download and install the VMware virtual machine;

2. Download and install the Ubuntu 12.04 ISO installation package on the virtual machine:: http://releases.ubuntu.com/12.04/;

3. Update Ubuntu Source:

①sudo Cp/etc/apt/sources.list/etc/apt/source.list.bak

②sudo gedit/etc/apt/sources.list

Deb Http://archive.ubuntu.com/ubuntu/quantal main restricted universe multiverse
Deb Http://archive.ubuntu.com/ubuntu/quantal-security main restricted universe multiverse
Deb Http://archive.ubuntu.com/ubuntu/quantal-updates main restricted universe multiverse
Deb http://archive.ubuntu.com/ubuntu/quantal-proposed main restricted universe multiverse
Deb Http://archive.ubuntu.com/ubuntu/quantal-backports main restricted universe multiverse
DEB-SRC http://archive.ubuntu.com/ubuntu/quantal main restricted universe multiverse
DEB-SRC http://archive.ubuntu.com/ubuntu/quantal-security main restricted universe multiverse
DEB-SRC http://archive.ubuntu.com/ubuntu/quantal-updates main restricted universe multiverse
DEB-SRC http://archive.ubuntu.com/ubuntu/quantal-proposed main restricted universe multiverse
DEB-SRC http://archive.ubuntu.com/ubuntu/quantal-backports main restricted universe multiverse

③sudo apt-get Update

4. Installing the JDK

① download the appropriate JDK version first:

Http://www.oracle.com/technetwork/java/javase/downloads/index.html

Jdk-6u31-linux-x64.bin

②sudo JDK-6U31-LINUX-X64.BIN/USR

③cd/usr

④sudo./jdk-6u31-linux-x64.bin

⑤sudo GEDIT/HOME/ADAM/.BASHRC

⑥sudo Gedit/etc/profile

Java_home=/usr/jdk1.6.0_31

Java_bin=/usr/jdk1.6.0_31/jre/bin

Path= $PATH: $JAVA _home/bin

Classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar

Export Java_home java_bin PATH CLASSPATH

⑦ default JDK to be changed

sudo update-alternatives--install/usr/bin/java Java/usr/jdk1.6.0_31/bin/java 300

sudo update-alternatives--install/usr/bin/javac Javac/usr/jdk1.6.0_31/bin/javac 300

sudo update-alternatives–config java

sudo update-alternatives–config javac

⑧ Test

Echo $JAVA _home

Java–version

5. Library

sudo apt-get install Git-core GnuPG Flex Bison gperf build-essential Zip curl zlib1g-dev gcc-multilib g++-multilib libc6-d ev-i386 lib32ncurses5-dev ia32-libs X11proto-core-dev libx11-dev Lib32z-dev

sudo apt-get install Lib32readline-gplv2-dev

sudo apt-get install G++-4.4-multilib

sudo apt-get install Uboot-mkimage

sudo apt-get install libxml2-utils

6.GCC g++

sudo apt-get install gcc-4.4

sudo apt-get install g++-4.4

Cd/usr/bin

Ls–l gcc*

sudo mv gcc Gcc.bak

sudo ln-s gcc-4.4 gcc

Ls–l g++*

sudo mv g++ G++.bak

sudo ln-s g++-4.4 g++

Gcc-v

g++-V

7. To the above six steps to complete the ubuntu12.04 on the Android development environment, the following is a step to facilitate communication between windows and Ubuntu use of the Samba server:

① Installing the Samba server

sudo apt-get install Samba

sudo apt-get install smbclient

sudo apt-get smbfs

② Configuring the Samba server

sudo cp/etc/samba/smb.conf/etc/samba/smb.conf.bak

sudo gedit/etc/samba/smb.conf

Change the security user to the security user, and then add it at the end of the configuration file

[Sharefiles]
Comment = Shared Folder require password
Path =/home/mtk/share
Public = yes
writable = yes
Valid users = Adam
Create mask = 0777
Directory mask = 0777
force user = Nobody
Force Group = Nogroup
Available = yes
browseable = yes

Restart Samba after saving, this step is important, sudo/etc/init.d/smbd restart

③ setting up Users and Passwords

sudo smbpasswd–a Adam

④ can log on to the share via command line \ \ corresponding IP

8.SVN tool installation for version management

sudo apt-add-repository ppa:dominik-stadler/subversion-1.7

sudo apt-get update

sudo apt-get install subversion

At this point, the development environment of MTK6577 is basically built.

9. The next step is to compile and solve the problem during the compilation process.

Refer to the following:

http://blog.csdn.net/tonywgx/article/details/8030695

Ubuntu 12.04 builds a MTK Android development environment

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.