ubuntu12.04 Sync CM10 Source (personal records, as notes)

Source: Internet
Author: User

Environment: AMD n850,4g,ubuntu12.04 x64,

The usual, first various dependencies:

sudo apt-get install Git-core gnupg flex Bison python rar original-awk gawk p7zip-full gperf Libsdl1.2-dev Libesd0-dev Lib Wxgtk2.6-dev squashfs-tools build-essential Zip curl libncurses5-dev Zlib1g-dev Pngcrush Schedtool

sudo apt-get install Libc6-dev x11proto-core-dev libx11-dev libgl1-mesa-dev mingw32 tofrodos Python-markdown Libxml2-utils

sudo apt-get install g++-multilib lib32z1-dev ia32-libs lib32ncurses5-dev lib32readline-gplv2-dev gcc-multilib g++- Multilib

As for JAVA-JDK, I installed it directly in the software center and also spared the hassle of manually setting environment variables.

Next:

CD ~

MkDir bin

Here is where to put the repo files, online tutorials are used:

sudo curl Https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo

If you fail, try a few more times, that mysterious resistance you know.

Go on:

sudo chmod 0755/bin/repo

Add the repo to the environment variable:

sudo gedit/etc/environment

In path= "xxxx" append path= "Xxxx:/home/code/bin:"

Code is my user name.

Update:

Source/etc/environment

Create a working directory and synchronize:

Mkdir-p ~/ANDROID/CM10

CD ~/ANDROID/CM10

Repo Init-u git://github.com/cyanogenmod/android.git-b Jellybean

There will be several initialization settings to fill your Google account

To start the download:

Repo sync-j16

A prompt appears next:

... A new Repo Command (1.18) is available.

... You should upgrade soon

Do not know this weight is not important, the first download repo is version 1.17, but I have been unable to find 1.18, annoyed! Direct:

CD ~/bin

git clone Https://gerrit.googlesource.com/git-repo

From here to extract repo files, unexpectedly is 1.19! hehe

Re -:

Repo sync-j16

After a few hours of synchronization, the result is:

error:exited sync due to fetch errors

Referring to http://blog.csdn.net/fantao015/article/details/7625559, I may have downloaded too many times. After authentication, retry once:

Working directory:

ubuntu12.04 Sync CM10 Source (personal records, as notes)

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.