All of my operations must be done under the root user, if root is logged in the following way:
Sudo-s
Vim/etc/lightdm/lightdm.conf
Increase
Greeter-show-manual-login=true
Allow-guest=false
Save: Wq
Restart reboot
Log in with root .
1. Pre-synchronization preparation
1), 64 bit ubuntu12.04 ( My VM is installed), first configure the JDK environment:
JDK1.6 download corresponds to download JDK-6U43-LINUX-X64.BIN 
Terminal input:
chmod 777 /root/jdk-6u43-linux-x64.bin
appears under your current user after installation jdk1.6.0_43
mkdir -p /usr/lib/jvm/java
cd /usr/lib/jvm/java/
cp / root/jdk1.6.0_43 /usr/lib/jvm/java/
./jdk-6u43-linux-x64.bin
To add an environment variable :
Vim/etc/profile
The file was last added:
#set Java Environment
java_home=/usr/lib/jvm/java/jdk1.6.0_43
Export JRE_HOME=/USR/LIB/JVM/JAVA/JDK1.6.0_43/JRE
Export classpath=.: $JAVA _home/lib: $JRE _home/lib: $CLASSPATH
Export path= $JAVA _home/bin: $JRE _home/bin: $PATH
Source/etc/profile Refresh
2), download AndroidSDK(adt-bundle-linux-x86_64-20140321and theadt-bundle-windows-x86_64-20131030are downloaded in Androna network, such as can not be downloaded FQ or at the address download:Http://pan.baidu.com/s/1o62W7Y6 and Http://pan.baidu.com/s/1gdtHzxx) (links may expire)
Here to set the firstUbuntuunder theSDK,Unzip first toRootdirectory under,the finished extractSDKThe directory is:/ROOT/ADT-BUNDLE-LINUX-X86_64/SDKand the/root/adt-bundle-linux-x86_64/eclipse, add the environment variables below:
Export Path=${path}:/root/adt-bundle-linux-x86_64/sdk/tools:/root/adt-bundle-linux-x86_64/sdk/platform-tools
Export Path=${path}:/root/adt-bundle-linux-x86_64/sdk/eclipse
3), run Eclipse configuration android SDK
Cd/root/adt-bundle-linux-x86_64/sdk/eclipse
./eclipse
In Helpunder SelectInstall New Software, in work withInput inAndroid Developer Tools Update site-https://dl.google.com/android/eclipse/Install the things you need, the steps below andWindowsunder InstallationSDKThis is not in detail, there are tutorials on the web. (after installation is completeadbmust be ready to use)
IfadbThe command is not yet available with the following error:
Adb:error while loading shared libraries:libncurses.so.5:cannot open Shared object file:no such file or directory
adbcomponent that provides the +bit of
Solve:
Apt-get Install Ia32-libs
Yesafter installationadbNormalcan be used.
4), install the compilation environment
sudo apt-get install Git-core GnuPG Flex Bison gperf build-essential Zip curl Libc6-dev libncurses5-dev:i386 X11proto-core -dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-dev:i386 g++-multilib mingw32 openjdk-6-jdk pngcrush schedtool Tofrodos Python-markdown libxml2-utils Xsltproc zlib1g-dev:i386
2. You must synchronize the CM source code before compiling, the method of synchronization is as follows:
system Installation depends on:
Apt-get Install Git-core GnuPG Flex Bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential Z IP Curl libncurses5-dev zlib1g-dev openjdk-6-jre openjdk-6-jdk pngcrush schedtool libxslt1.1
Apt-get Install g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline-gplv2-dev gcc-4.7-multilib g++-4.7-multilib
New Catalog
Mkdir-p ~/bin
Installing repo
Download the "repo" binary file with the following commandand modify the permissions for the executable:
Command :
Curl Https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
(You can also download a repo on the Internet, the size is about 20K , such as:Http://pan.baidu.com/s/1kTC6eAN can download a shared repo)
chmod a+x ~/bin/repo
Add the ~/bin directory to the PATH environment variable
Export Path=${path}:~/bin
3. initializing the source code repository
The new directory is used to download the source code and switch to this directory:
Command :
Mkdir-p ~/source
Command :
CD Source
Go to directory initialize the repository with the following command (CM 10.1):
Command :
Repo Init-u git://github.com/cyanogenmod/android.git-b cm-10.1
Download source code
Command :
Repo Sync
This is the synchronization source code, the time is relatively long, under normal circumstances do not FQ is not able to synchronize.
I originally synchronized time is also the reference on-line tutorial, inevitably will appear with other tutorials the same time, the most important is not synchronization, but the environment of the building and post-compilation,
General cm source code are used to compile recovery, of course, different models of the CPU compile time required parameters are not the same, slowly groping, do not understand Google, will always find ...
Synchronous CM10.1 Source Code