Here is a quick guide on how to set up aosp build envirnoment and download the source, there are video's below the guide
This guide is for Ubuntu, Xubuntu, Kubuntu and Lubuntu.
Setting up Build envirnoment
You will need python, git, java jdk, build packages
Python: (chekking version)
Code:
python --version
Git:
Code:
sudo apt-get install git-core
Java jdk6:
Code:
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jdk
The build packages:
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev libncurses5-dev x11proto-core-dev \
libx11-dev libreadline6-dev libgl1-mesa-dev tofrodos python-markdown \
libxml2-utils
Downloading the source
Installing Repo:
Code:
mkdir ~/bin
PATH=~/bin:$PATH
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
Installing repo client:
Code:
cd ~/Desktop
mkdir ics
cd ics
Code:
CM9:
repo init -u git://github.com/CyanogenMod/android.git -b ics
ICS:
repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1
Downloading the source:
Code:
repo sync
Just a question: will this allow me to build a ICS ROM for the SK17? It looks interesting...
nicom.mt said:
Just a question: will this allow me to build a ICS ROM for the SK17? It looks interesting...
Click to expand...
Click to collapse
yes but you need the device config, vendor files and cyanogen vendor files for sony ericson but those 2 steps above don't require any phone related files, i was looking for those but couldn't find them, also the files need to be editted to work with android 4.0, hope this helps. oh and i think FXP is already busy with this.
EDIT: if you are going to build this then i would recommend building CyanogenMod9 since i has already some fixes
RafayelG said:
EDIT: if you are going to build this then i would recommend building CyanogenMod9 since i has already some fixes
Click to expand...
Click to collapse
What? Is it already published??
nicom.mt said:
What? Is it already published??
Click to expand...
Click to collapse
yes its been build on some devices already
is this support with ubuntu 11.04 64bit ?
EDIT : ..because you write that pakage (32bit)
caer_ayu said:
is this support with ubuntu 11.04 64bit ?
EDIT : ..because you write that pakage (32bit)
Click to expand...
Click to collapse
Not sure , just try it
Sent from my phone
i was able to get the package ..but fetch error on ics ..
is there any reason you couldnt use stock kernel with a CM rom?
Not sure, but the kernel is a part of the os its the "gate" between hardware and software, it should be possible to create a hybrid kernel.
Sent from my phone
batjon said:
is there any reason you couldnt use stock kernel with a CM rom?
Click to expand...
Click to collapse
CM requires a different ramdisk... CM wont boot on stock ramdisk...
DooMLoRD said:
CM requires a different ramdisk... CM wont boot on stock ramdisk...
Click to expand...
Click to collapse
you can build a hybrid kernel that supports diffrent ramdisks.
even though it was able to work on x10 mini pro without different kernel?
ok i'm planning to build ICS for Live with walkman, it might take a while since i have lots of schoolwork but i can't promise it so plz vote for it in the poll
Related
Due to frequent loss of net connection in my home country
Can someone be kind enough to provide me a link to the complete android source code for froyo
That you get on using the command
repo init -u git://anroid .....
repo sync
Any source above donut will do
and any server like megaupload , mediafire , 4shared anything will do
If any one willing to do it and do not know
Here enter these lines in Linux terminal
$ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu dapper main multiverse"
$ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu dapper-updates main multiverse"
$ sudo apt-get update
$ sudo apt-get install sun-java5-jdk
$ sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
libgl1-mesa-dev g++-multilib mingw32 tofrodos
$ mkdir ~/bin
$ PATH=~/bin:$PATH
$ curl https://android.git.kernel.org/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ mkdir WORKING_DIRECTORY
$ cd WORKING_DIRECTORY
$ repo init -u git://android.git.kernel.org/platform/ma…
$ repo init -u git://android.git.kernel.org/platform/ma… -b froyo
$ repo sync
Just rar the WORKING_Directory and upload it please
Or just send a link if u have one
THank you very much
Does know one care ??
Well even gingerbread will do !
atleast give me some hopes that people are downloading it
vious22 said:
Does know one care ??
Well even gingerbread will do !
atleast give me some hopes that people are downloading it
Click to expand...
Click to collapse
No one will help you?
Ok I can go to me PC and do that for you if you still need that
Sent from my X10i using XDA App
It would be really nice of you if u did that
please help me
You can help me by downloading either
1.Cyanogenmod 6
2.Cyanogenmod 7
3.AOSP Eclair
4.AOSP Froyo
5.AOSP Gingerbread
I will make the ROM whicher you provide me
And I will give you a script just make it executable and run it in terminal
Thank you very much
Ok. FROYO Ready
Sent from my X10i using XDA App
Ok pm to me your script
P.S. AOSP FROYO = froyo-plus-aosp ?
Sent from my X10i using XDA App
No and
Can u get python on your Linux comp first
U can run the script only after that
Sent from my HTC Desire S using XDA App
OK wear the script ?
Or tel me more what you need
I heave now Froyo and Gingerbred
(repo init -u git://android.git.kern… -b froyo ) 7-zip archive 2.5 GB (2737951464 bytes)
(repo init -u git://android.git.kern… -b gingerbred ) 7-zip archive 3.8 GB (4108073613 bytes)
I can upload that to ftp IF YOU NEED
P.S. python / linux and bla bla bla are READY !!!
I'm about to cry ....
Can u upload gingerbread please
And thanx a ton
Sent from my HTC Desire S using XDA App
This is Gingerbred git from google 30/06/2011 (x10-*.* it not means that are optimized for X10 its are for X10 project )
Download x10-Gingerbred.part01.rar ... (9 files in one place )
OR
x10-Gingerbred.part01.rar - 500mb
x10-Gingerbred.part02.rar - 500mb
x10-Gingerbred.part03.rar - 500mb
x10-Gingerbred.part04.rar - 500mb
x10-Gingerbred.part05.rar - 500mb
x10-Gingerbred.part06.rar - 500mb
x10-Gingerbred.part07.rar - 500mb
x10-Gingerbred.part08.rar - 500mb
x10-Gingerbred.part09.rar - 234MB
Hello Experienced Cooper users
today i shall guide you to compile ur own Cyanogenmod rom
ive adapted this guide to work for cooper
and removed some useless parts wich i self didnt used and still compiled succesfull rom
U MUST RUN A LINUX DISTRO
ok we shall begin now:
1. making the correct directory's
Code:
cd~
mkdir android
mkdir cyanogenmod7
those are the 2 main directorys i will use Note* remember each command is 1 line
Installing Java6 (JDK)
in terminal type / copy paste from here
Code:
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk
Install Required dependencies/add-ons
32 bit Linux Mint 14
Code:
sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev pngcrush schedtool
copy and paste it all in terminal
64 bit Linux Mint 14
Code:
sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev valgrind lib32readline-gplv2-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32z-dev pngcrush schedtool
copy and paste it all in terminal
Synching the Source Code of CM7
Code:
cd ~
mkdir bin
paste/type those lines in terminal
now type/paste this in terminal and REBOOT SYSTEM
Code:
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
after reboot u can use the Repo Commands
now cd to ur directory we created in the begin
first do
Code:
cd~
then do
Code:
cd android/cyanogenmod7
once done that initialize repo
paste/type this in terminal
Code:
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
Note: if you wanna have a smaller download and only download specific sources for Cooper try to sync my moddified and reduced repo this still is cm but will not sync all the extra useless files then sync
Code:
repo init -u git://github.com/spacecaker/android_cooper.git -b gingerbread
and do
Code:
repo sync -j4
now u will need to wait
this will sync the approx 10/15 GB source codes
takes about 1/10 hours to sync depending on connection
now lets sync our device configs
once everything has been synched and still in the
Code:
cd android/cyanogenmod7
directory
type
Code:
cd device
mkdir samsung
cd samsung
now
type/paste
Code:
git clone https://github.com/vo-1/android_device_samsung_cooper cooper
once that is synched
do to go to the the root of Cyanogenmod7 directory
Code:
cd ..
cd ..
now we will get the vendor of our cooper device
do type/paste in terminal
Code:
cd vendor
mkdir samsung
cd samsung
and sync the cooper vendor
Code:
git clone https://github.com/vo-1/android_vendor_samsung_cooper cooper
now do
Code:
cd ..
and type
Code:
~/android/cyanogenmod7/vendor/cyanogen/get-rommanager
now lets build
this is how i personally build it on my way but takes more time
i will tell u first my way then original way
do type/paste in terminal
Code:
. build/envsetup.sh
Code:
brunch cooper
then it will compile it and make a zip file for you aswell wich is findable in out folder
Note it takes long time
or do
Code:
lunch cm_cooper-eng
make -j4 bacon
what did i skip ?
i personally skipped ADB and SDK because i run Linux in a Virtual machine
Hope you guys will enjoy this guide
Special thanks to
Vo-1
dastin1015 <- for some basic parts of the guide
if ive missed a part / have isseus with my grammar
do notice me
Sent from my S500 using xda app-developers app
Nice one you really deserve a recognized contributor title dude!
From Gingerbread you need a 64-bit environment to compile succesfully Android. You can remove the part of guide about 32 bit
Paolo_lav said:
From Gingerbread you need a 64-bit environment to compile succesfully Android. You can remove the part of guide about 32 bit
Click to expand...
Click to collapse
for gingerbread 32 bit can be used
also for JB and ICS
but for JB u need to sync extra file
Sent from my S500 using xda app-developers app
Nowhere it is said that you will need Linux. Great guide though. :good:
At the moment I am thinking about some people trying to get sudo to work on their Windows machines.
nikwen said:
Nowhere it is said that you will need Linux. Great guide though. :good:
At the moment I am thinking about some people trying to get sudo to work on their Windows machines.
Click to expand...
Click to collapse
last part i said i run linux in vm
but will add
Sent from my S500 using xda app-developers app
Added a Slimmed Down Repo for Cooper only
wich will sync the device and vendr sources of cooper only and not all the useless stuff
OK,thank you .maybe I will fello you to make a rom,somedays.
Sent from my GT-S5830 using xda app-developers app
@SpaceCaker Bro, PPA No longer exists... Please update the OP with the commands that work.. It has been updated few days ago...
agosain7 said:
@SpaceCaker Bro, PPA No longer exists... Please update the OP with the commands that work.. It has been updated few days ago...
Click to expand...
Click to collapse
i searched a lot on google forbfixed java command
and if u remove the error stop command
you can compile it aswell
Sent from my S500 using xda app-developers app
Building on Ubuntu 12.04 is currently only experimentally supported and is not guaranteed to work on branches other than master.
Installing required packages (Ubuntu 12.04)
Code:
$ sudo apt-get install git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386
$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
Installing Repo
Code:
$ mkdir ~/bin
$ PATH=~/bin:$PATH
Code:
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
Now 80% of your work is done.. Now its time for actual cm10.2 development
Code:
mkdir -p cm10.2
Code:
$ PATH=~/bin:$PATH
Code:
cd cm10.2
Code:
repo init -u git://github.com/androidarmv6/android.git -b cm-10.2
Code:
repo sync -jX
where X is any integer. If you have high speed connection then try something like -j16 or -j32
This will take long time because you are trying to download around 15gb
Once this is done go in your cm10.2 directory and do this
Code:
sh vendor/cm/get-prebuilts
Congrats your build machine is now ready.
Create a script named " compile.sh " inside cm10.2 folder and paste these contents inside it.
Code:
#!/system/bin/sh
PATH=~/bin:$PATH
repo sync -j32
.build/envsetup.sh
export USE_CCACHE=1
make clean
brunch protou
So to start compiling you have to do this command inside your cm10.2 folder
Code:
sh compile.sh
This will give you a basic build machine. I haven't added the device specific stuff yet. To do that:
Assuming you are in cm10.2 folder before each step.
1.Create device tree
Code:
mkdir -p /device/htc
Go in /device/htc
Code:
git clone https://github.com/prototype-U/android_device_htc_protou.git
Rename this folder to protou
Code:
git clone https://github.com/ProtouProject/android_device_htc_common.git
Rename this folder to common
2.Add vendors WIP
Code:
mkdir -p /vendor/htc/
Go in /vendor/htc/
Code:
git clone https://github.com/prototype-U/android_vendor_htc_protou.git
Rename this folder to protou
3.Add kernel sources
Code:
mkdir -p kernel/htc/
Go in /kernel/htc/protou
Code:
git clone -b cm10.2 https://github.com/prototype-U/android_kernel_htc_protou.git
Rename this folder to protou
And you are done! You can try compiling now..
I'll try this on Arch Linux in the evening and report back if it worked. Hopefully I'll find the right dependencies for the build as Arch Linux is a bit special with this. Anyway thanks for the guide!
Sent from my HTC Desire X using XDA Premium 4 mobile app
Why?
repo init -u git://github.com/androidarmv6/android.git -b cm-10.2
we got ARMv7
Klapo said:
Why?
repo init -u git://github.com/androidarmv6/android.git -b cm-10.2
we got ARMv7
Click to expand...
Click to collapse
Source, Its on androidarmv6 git its a group or something...not related to this.
Sent from my HTC Desire X using xda premium
Found a typo. It has to be "-b cm-10.2" in last clone command, then it works.
prototype-U said:
Create a script named " compile.sh " inside cm10.2 folder and paste these contents inside it.
Code:
#!/system/bin/sh
PATH=~/bin:$PATH
repo sync -j32
.build/envsetup.sh
export USE_CCACHE=1
make clean
brunch protou
So to start compiling you have to do this command inside your cm10.2 folder
Code:
sh compile.sh
Click to expand...
Click to collapse
A guy from #cyanogenmod-dev told me that is much better to use terminal to start compiling then this script,he told me to do this :
cd cm10.2
export USE_CCACHE=1
source build/envsetup.sh
brunch protou
These are just recommendations.
prototype-U said:
Code:
mkdir -p /device/htc
Go in /device/htc
Click to expand...
Click to collapse
It's actually mkdir -p device/htc. You made a typo,it will create a folder inside the system partition.
Then go into device/htc.
prototype-U said:
Code:
mkdir -p /vendor/htc/
Go in /vendor/htc/
Click to expand...
Click to collapse
Same here,it's mkdir -p vendor/htc .
Then go in vendor/htc.
prototype-U said:
Code:
mkdir -p kernel/htc/
Go in /kernel/htc/protou
Click to expand...
Click to collapse
The folder location is good here but you go :
cd kernel/htc instead of /kernel/htc/protou.
Also i had to install these to make it work. We need java,etc.
Code:
git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev openjdk-6-jre openjdk-6-jdk pngcrush schedtool libxml2 libxml2-utils xsltproc
Code:
g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline-gplv2-dev gcc-multilib
Don't take this offensively,i am just trying to help.
nightwalkerkg said:
A guy from #cyanogenmod-dev told me that is much better to use terminal to start compiling then this script,he told me to do this :
cd cm10.2
export USE_CCACHE=1
source build/envsetup.sh
brunch protou
These are just recommendations.
It's actually mkdir -p device/htc. You made a typo,it will create a folder inside the system partition.
Then go into device/htc.
Same here,it's mkdir -p vendor/htc .
Then go in vendor/htc.
The folder location is good here but you go :
cd kernel/htc instead of /kernel/htc/protou.
Also i had to install these to make it work. We need java,etc.
Code:
git-core gnupg flex bison gperf libsdl1.2-dev libesd0-dev libwxgtk2.8-dev squashfs-tools build-essential zip curl libncurses5-dev zlib1g-dev openjdk-6-jre openjdk-6-jdk pngcrush schedtool libxml2 libxml2-utils xsltproc
Code:
g++-multilib lib32z1-dev lib32ncurses5-dev lib32readline-gplv2-dev gcc-multilib
Don't take this offensively,i am just trying to help.
Click to expand...
Click to collapse
None taken. To be honest I have never tried setting up a build machine because my build server already had everything installed. And the steps I have mentioned above are not tested by me. I modify the core manifest to sync everything rather than doing it manually. Btw there is nothing wrong with the script, I made it just to reduce my manual work.
Sent from my HTC Desire X using xda app-developers app
I ran into problems using the script, because I use zsh as my favorite shell. When the shell interpreter used in the script and the shell used for building is not the same, the sourcing won't work and it will give you an error like "brunch: command not found".
dansou901 said:
I ran into problems using the script, because I use zsh as my favorite shell. When the shell interpreter used in the script and the shell used for building is not the same, the sourcing won't work and it will give you an error like "brunch: command not found".
Click to expand...
Click to collapse
You have to make sure that you have synced all device related repos correctly. To make sure; goto the folder where you synced; goto device/htc and you should see protou and common folders.
dansou901 said:
I ran into problems using the script, because I use zsh as my favorite shell. When the shell interpreter used in the script and the shell used for building is not the same, the sourcing won't work and it will give you an error like "brunch: command not found".
Click to expand...
Click to collapse
Do it each time in a new shell. . /build/envsetup.sh
Sent from my HTC Desire X using xda app-developers app
Instead of renaming we could do
git clone git://github.com/<user>/android_device_htc_protou.git protou
do the same for common
Just a suggestion (sames lot of time :silly: )
--- copied with permission from nathanpfry.com ---
--- If you would like a ready-to-go Virtual Machine, check out my post here! ---
Initializing a fresh Android Build Environment in Ubuntu 13.10 sucks, right? The instructions at the AOSP page are outdated and inaccurate. Near as I can tell, they try to have you install 2 JDKs, the first one not even being the correct link for Saucy Salamander, and the second being OpenJDK. Which might work. But I dunno about all that, I'd rather have Oracle's official stamp when it comes to building for Android.
Currently most of the guides are up to 12.04 LTS, which is fine and dandy, but being on the cutting edge is nice too.
This guide applies to all variations of Ubuntu 13.10 Saucy Salamander 64 bit. Do not use the 32 Bit version. Also, PAY CLOSE ATTENTION when to use "sudo" and when to not. It can make things funky if you do something as root that you shouldn't.
Much thanks goes out to Google, ProTekk, Canonical, and everyone else that I read a random paragraph here and snippet there.
First, let's set up the correct JDK.
Many of you probably have some kind of wrong Java installed unless you're starting with a fresh Ubuntu base, and even then maybe.
Let's get rid of that. Copy and paste this into a Terminal window:
Code:
sudo apt-get purge openjdk-\* icedtea-\* icedtea6-\*
Follow the instructions to remove OpenJDK. If you must keep it, it's possible. But I'm not going to tell you how to do it here. I don't want any chance of confusion or mistake.
Now copy and paste the following into the Terminal:
Code:
sudo add-apt-repository ppa:webupd8team/java
This will add the correct PPA to your system for updated builds of Java 6 JDK that are compatible with 13.10. No more unrecognized Java version errors! And it will update automatically with the rest of your system.
Next, we actually need to install the package. More copy-paste:
Code:
sudo apt-get update && sudo apt-get install oracle-java6-installer
Follow the on-screen instructions. You have to Accept the Licensing Agreement to complete the install. Hopefully no human centipede clauses.
Let's make sure the correct version of Java is activated, run the following Terminal command:
Code:
java -version
You should see something like the following:
Code:
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01, mixed mode)
Ok, back to a fresh Terminal prompt. Time for installing the guts to build stuff in Ubuntu:
Code:
sudo apt-get install git-core lzop ccache gnupg flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32ncurses5 lib32z1 lib32bz2-1.0 lib32ncurses5-dev x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc readline-common libreadline6-dev libreadline6 lib32readline-gplv2-dev libncurses5-dev lib32readline5 lib32readline6 libreadline-dev libreadline6-dev:i386 libreadline6:i386 bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev libsdl1.2-dev libesd0-dev squashfs-tools pngcrush schedtool libwxgtk2.8-dev python gcc g++ cpp gcc-4.8 g++-4.8
When that is done installing, run the following command in your Terminal window:
Code:
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
That's it on the package side of things.
You guessed it, time for more Terminal. This really is the easiest way, seriously. And it's totally worth it when you're basking in the glory of a bunch of people on XDA.
The binary for a program called "repo" will let you talk to git servers and download all that precious source code. That second part after the && allows it to be executable:
Code:
mkdir ~/bin && curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo && chmod a+x ~/bin/repo
Use your favorite text editor to open ~/.bashrc
I like nano:
Code:
sudo nano ~/.bashrc
At the very bottom, add the following line:
Code:
export PATH=~/bin:$PATH
Save it. In nano that would be Ctrl-O and then Enter. Then Ctrl-X to exit back to a prompt. Restart bash:
Code:
source ~/.bashrc
In the terminal, navigate to where you would like to store the Android source code. The directions below will make it in your home folder, but if you have limited space, you may want to create it somewhere else. Faster is better, i.e. SSD would be best, USB external is basically unusable. Here we go:
Code:
mkdir ~/android
cd ~/android
Now you're going to initialize the repo. Here's where you decide the flavor of Android you want to build for, ie AOKP, CyanogenMod, AOSP etc. The following, for the purposes of this tutorial, will initialize for AOKP Jellybean MR-2:
Code:
repo init -u git://github.com/AOKP/platform_manifest.git -b jb-mr2
Almost there. Last step, but it's a doozy. You're going to get the source. Prepare yourself, mere mortal. 10+ GB of downloading await you. Don't worry, it's automated. Go to sleep. Eat something. Perhaps you have heard of this new thing the kids are doing called "going outside"? Yeah, I didn't think so. Me neither. The final terminal command, to be run from your android directory:
Code:
repo sync
Check back periodically every hour or so. It really all depends on how fast your internet connection is.
That should be everything. Now you're ready to build Android the right way. Luck!
Feel free to buy me a coconut water (donate) if you like my work. It would be greatly appreciated!
Please hit the "Thanks" button if this post helped you out!
Thanks for this... It should work on the official final release right?
I tried using a guide for Ubuntu 13.04 and it can't install one of the packages listed and repo init fails...hopefully this will work
Also, anyone know what the repo init command to build PAC rom is?
Sent from my Galaxy Nexus using Tapatalk
hmm...all good except repo doesnt seem to work with
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
but it does with
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
from http://source.android.com/source/downloading.html
I am getting this error:
[email protected]:~/cm10.1$ repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
/home/kevin/bin/repo: Zeile 1: Syntaxfehler beim unerwarteten Wort »newline«
/home/kevin/bin/repo: Zeile 1: `<!DOCTYPE html>'
---------- Post added at 05:21 PM ---------- Previous post was at 05:14 PM ----------
Edit: Fixed it myself.
Kevinjoa said:
I am getting this error:
[email protected]:~/cm10.1$ repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
/home/kevin/bin/repo: Zeile 1: Syntaxfehler beim unerwarteten Wort »newline«
/home/kevin/bin/repo: Zeile 1: `<!DOCTYPE html>'
---------- Post added at 05:21 PM ---------- Previous post was at 05:14 PM ----------
Edit: Fixed it myself.
Click to expand...
Click to collapse
How do you fixed it? I am getting the same Error here.
chrisi92 said:
How do you fixed it? I am getting the same Error here.
Click to expand...
Click to collapse
metalspring posted the fix above (as did I in another thread yesterday):
Code:
$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
Oh sry, i didnt saw it. But thx for the solution
Gesendet von meinem SM-N9005 mit Tapatalk
chrisi92 said:
Oh sry, i didnt saw it. But thx for the solution
Click to expand...
Click to collapse
No problems - good luck with the build.
This is awesome. I was having this same problem and now I will have it fixed. Thanks so much.
Sent from my SPH-D710 using Xparent Skyblue Tapatalk 2
Excellent guide...
Read several guides and got stuck in every guide..
Thank you for this great guide...!!!!
if i wanted to build specific for e4gt(d710) i would replace mr2 with d710?
(repo init -u git://github.com/AOKP/platform_manifest.git -b jb-d710)
twrex82 said:
if i wanted to build specific for e4gt(d710) i would replace mr2 with d710?
(repo init -u git://github.com/AOKP/platform_manifest.git -b jb-d710)
Click to expand...
Click to collapse
instructions are right on the aokp platform manifest page-
Init repo only for a particular device :
$ repo init -u https://github.com/AOKP/platform_manifest.git -b jb-mr2 -g all,-notdefault,<devicename>,<vendorname>
for example, to init only trees needed to build mako :
$ repo init -u https://github.com/AOKP/platform_manifest.git -b jb-mr2 -g all,-notdefault,mako,lge
out of curiousity, is there a reason why we need to use java 6? instead of 7 or even 8 now?
psycopanther said:
out of curiousity, is there a reason why we need to use java 6? instead of 7 or even 8 now?
Click to expand...
Click to collapse
As far as I know android will only build properly with the java 6 the op says to use... I've never tried anything else but I've heard there are issues for trying to build using anything else
(Feel free to try though, it's easy enough to remove other java versions and go back to java 6)
Edit: it is possible to build with java 7 but you have to use workarounds to fix different issues
http://www.informit.com/articles/article.aspx?p=1966023
I'm looking forward to reading through this once I get my environment set-up again. My previous attempts to build android have all failed
Ok I have problems with this step:
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32ncurses5 lib32z1 lib32bz2-1.0 lib32ncurses5-dev x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc readline-common libreadline6-dev libreadline6 lib32readline-gplv2-dev libncurses5-dev lib32readline5 lib32readline6 libreadline-dev libreadline6-dev:i386 libreadline6:i386 bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev libsdl1.2-dev libesd0-dev squashfs-tools pngcrush schedtool libwxgtk2.8-dev python
I get those errors:
Code:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package lib32ncurses5
E: Unable to locate package lib32z1
E: Unable to locate package lib32bz2-1.0
E: Couldn't find any package by regex 'lib32bz2-1.0'
E: Unable to locate package lib32ncurses5-dev
E: Unable to locate package lib32z-dev
E: Unable to locate package lib32readline-gplv2-dev
E: Unable to locate package lib32readline5
E: Unable to locate package lib32readline6
E: Unable to locate package lib32bz2-dev
Please advise me how to reslove this.
You are using Ubuntu 13.10, right? Different versions of Ubuntu have slightly different packages they need
Sent from my Galaxy Nexus using Tapatalk
metalspring said:
You are using Ubuntu 13.10, right? Different versions of Ubuntu have slightly different packages they need
Sent from my Galaxy Nexus using Tapatalk
Click to expand...
Click to collapse
Yes I do.
I'm trying to install the 64 bit version 13.10 onto my laptop via Virtualbox. I keep getting the following error message when trying to boot up the iso so that I can install it. As far as I know, I the core i5 processor (3210m) is able to support 64bit software. If I am wrong, or there is something that I am possibly doing wrong, please let me know. Thanks in advance.
edit: of course, I find this after posting my issue (hopefully, it helps anyone else who is having the problem, as well):
http://askubuntu.com/questions/3089...ntu-12-04-on-my-virtualbox-4-2-not-successful
..
Hello. Today i want to show you how to compile CM 10.2 using TeamHackLG Device tree.
I using Ubuntu 12.04 x64
First, perpare your ubuntu
Open Terminal And:
Install JDK
HTML:
sudo apt-get install openjdk-6-jdk
Install python and GIt
HTML:
sudo apt-get install python
sudo apt-get install git-core
Install required packages.
HTML:
sudo apt-get install git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev x11proto-core-dev \
libx11-dev libreadline6-dev libgl1-mesa-glx \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev
HTML:
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
Then : get source
HTML:
mkdir ~/bin
PATH=~/bin:$PATH
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
create workspace
HTML:
mkdir cm102_e610
cd cm102_e610
get CM source
HTML:
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.2
Put your Name and email. then
HTML:
repo sync
When you get CM Source , get files required for our device
HTML:
curl --create-dirs -L -o .repo/local_manifests/local_manifest.xml -O -L https://raw.github.com/TeamHackLG/local_manifest/cm-10.2/local_manifest.xml
and
HTML:
repo sync
again and enter this line in your terminal
HTML:
cd cm102_e610/system/vendor/cm
./get-prebuilts
After sync, load "lunch combo"
HTML:
source build/envsetup.sh
HTML:
lunch
choose cm_e610-userdebug or cm_e610-eng
Then press
HTML:
make -j2
After make do
HTML:
make otapackage
and you get flash zip Cm 10.2 for LG l5.
Happy Build
Using tutorials for compile:
http://forum.xda-developers.com/showthread.php?t=1762641
https://github.com/TeamHackLG/local_manifest
use brunch e610 instead of make.
use oracle java 6 not jdk.
aidasaidas75 said:
use brunch e610 instead of make.
use oracle java 6 not jdk.
Click to expand...
Click to collapse
OpenJDK 7 works on some Ubuntu version, while Oracle Java (any version) won't work.
CMIIW
#F4UZAN : Team Optima
F4uzan said:
OpenJDK 7 works on some Ubuntu version, while Oracle Java (any version) won't work.
CMIIW
#F4UZAN : Team Optima
Click to expand...
Click to collapse
openjdk used for aosp rom