yashsingh1/xdaforums huggingface dataset:
[Android] Make.Love:
thanks for sharing this information!! :good:
[Android] jjhiza:
Yes. Google uses Ubuntu 12.04LTS to build AOSP for all of its devices, so the N7 should show up in the lunch menu. 12.10 and 13.04 will operate the same way. :)
[Android] azoller1:
No, using my nexus 7 with Ubuntu desktop running on my nexus 7 and then building a ROM with Ubuntu running on my nexus 7 thats what I meant
[Android] jjhiza:
Oooooh, I see what you mean. In that case, I highly doubt it. I'm not 100% sure what kind of specs the N7 has, but just in terms of RAM, building on it would probably crash the tablet. Not to mention the fact that you may not have enough storage space to even download the repo... It's between 15-30GB,depending on which branch you sync.

You never know though... I'm attempting to compile kernels on a dead laptop. I used an 8GB flash drive to install 12.04 on, and after syncing the source, I still have about 300MB of space left. The computer runs slow as dirt, but it works. :)
[Android] THEindian:
Don't even try, its not even about whether or not you can download it or even compile it, compile times would be HORRENDOUS. A pentium 4 could beat a tegra 3 in processing power, while arm is AMAZING for power effeciency, you can't really beat the x86 architecture, plus you would lose a lot of toolchain optimizations.It would take you well over 1 day, probably closer to 2 days to compile a single rom, not factoring in any errors you run into.
[Android] Rushing:
after following this guide will I be somewhat set up to build touchwiz kernels?

I am reading that older versions are better for kernel compiling.. thanks
[Android] THEindian:
No, go ahead and follow this guide, usually, older versions are recommended because all the necissary drivers are guaranteed but you'll be fine in this case.
[Android] cj360:
Is that a user maintained repo for java or oracle maintained? Since everyone just seems to push for new new things not old stable things.
[Android] OldDroid:
java 6 jdk ;) oracle is the developer of java ^^

oh and btw, im fine with this guide to compile 2.3, 4.0, 4.1, 4.2 ^^

Thx man ;)
[Android] ThePresence:
getting this......
[Android] sylentprofet:
Are you sure you've installed the 64 bit version of Ubuntu? It looks like the 32 bit packages are all found fine..
[Android] mudher25:
Help?

I'm getting this :
[Android] ThePresence:
yup I'm using ubuntu 13.04 64 bit edition.......
[Android] OldDroid:
then pls tell me what i did without changes and all is fine? Oo
[Android] RobbieL811:
Yeah. I didn't get all of the libs. I think that one of the packages was out dated & it wouldn't let me download it. I had to manually download a substitute.

Sent from my Nexus 5
[Android] jv.batista:
it would be nice to add a VM to the op ready to go...
[Android] sylentprofet:
Your prayers have been answered
[Android] franpek33:
Good post :good:
[Android] Master_T:
Great guide, thanks!

One suggestion: I was compiling the Pac-Man ROM yesterday and it failed halfway through because I didn't have "ccache" installed, so I'd suggest adding "ccache" to the list of apt-get installs.
[Android] jjhiza:
Interesting... That may be an issue exclusive to Pac-Man, but I'm not sure. I've been compiling AOSP for over a year, and I've never had an error like that. :)
[Android] espmartin:
Same here. I do use ccache, but simply to speed up my builds. I've never errored out due to not enabling it...

On another note, is anyone else who uses a local manifest having repo sync errors after today's repo command update? Mine no longer honors "remove-project", so I keep getting duplicate path errors cause specific projects are NOT being removed.

Using my own Android Open Kang Project - (4.4.2 Kitkat) build
[Android] useltonm:
A little help please!

I followed all the steps without any issues once. Then I tried installing amd drivers for my graphics card and had to reinstall linux. I started the guide over and am running into issues off the bat.

I follow the first step and it takes forever to remove/purge everything (I don't remember it taking so long the first go round). Then I add the repository, no problems there. Then when I try to install Oracle Java, I get errors telling me to try apt-get install -f. I stepped away to take care of my crying kid, the pc rebooted or kicked me out of kde (I'm not sure which) and then I'm stuck in terminal with the following: /usr/bin/mint-fortune file or directory cannot be found. I seem to remember the being something about x11-apps: cpp.....(can't recall the rest) at the end of the error with trying to install oracle java.

I'm running Linux Mint 16. Anyone got any tips? Or can point me to some links elsewhere? Would I be better off posting on the linux mint forum?

Thanks!
[Android] jjhiza:
Honestly, it sounds like something didn't go right with your driver install, especially if you weren't experiencing reboots prior to their installation. Additionally, parts of this guide are outdated for Mint 16,since it's based on Ubuntu 13.10... For example, Mint 16 comes with jdk7-icedtea, which needs to be purged, and jdk6 installed instead. Also, some of the build essentials are different I believe.

Personally, if I were having these same issues, I'd blow up my install, and set it up again, minus the drivers (unless your machine won't run without them). It's tedious, but that may be the simplest way to correct these problems - problems that don't seem entirely attributable to Linux Mint itself. Additionally, do a Google search for "how to compile AOSP on Ubuntu 13.10"... It should get you to an xda thread, with more up to date procedures. I'm not home right now, otherwise I'd link you to it. Hopefully this helps a bit.
[Android] useltonm:
I found the other guide and it starts off with the same instructions.

That being said, I figured out if I went to Software Manager, Software sources, and changed the Base (Saucy) Mirror, I was able to install Oracle's java and continue.

I will continue with the directions in the other guide this time around. Thanks for your help!

And thanks to sylentprofet for an easy to follow guide!
[Android] lozohcum:
The command you gave downloads automatically the latest version of have 6 (u45) which causes compile problems,

How to download u26 version manually?
[Android] jjhiza:
Just to verify, you're on either Ubuntu 13.04, 13.10, or something very similar (Mint 15, 16, or Debian) correct?

Personally, I've never had issues with jdk 6-u45, but if you're expending problems, I suggest purging your current java version, removing the ppa, and starting over. Try the instructions in the OP one more time, and if you're still getting compile errors, purge again, and simply try running this from your Home directory:

apt-get install sun-java6-jdk

Then run:

java -version

and you should see an older jdk version installed. Hopefully this helps.
[Android] CODE_WORKX:
WHILE following this tutorial i get this error again n again got an error...

i am a noob so cant understand....

refer this

can anyone help me out....\:confused:
[Android] sylentprofet:
It feels like you are either trying to do this on a 32 bit system (it won't work) or you haven't enabled multiarch. Which is unlikely but possible.
[Android] Naveen khasyap:
Error during aosp build in ubuntu 13.04

Hey i am trying to build AOSP 4.2.2 on my 13.04 ubuntu system i get this following error ..

In file included from frameworks/native/include/utils/String8.h:23:0,

from frameworks/native/include/utils/CallStack.h:23,

from frameworks/native/libs/utils/CallStack.cpp:23:

frameworks/native/include/utils/TypeHelpers.h:20:15: fatal error: new: No such file or directory

compilation terminated.

In file included from frameworks/native/include/utils/RefBase.h:28:0,

from frameworks/native/include/utils/BlobCache.h:23,

from frameworks/native/libs/utils/BlobCache.cpp:23:

frameworks/native/include/utils/TypeHelpers.h:20:15: fatal error: new: No such file or directory

compilation terminated.

In file included from frameworks/native/include/utils/RefBase.h:28:0,

from frameworks/native/include/utils/Thread.h:31,

from frameworks/native/include/utils/threads.h:35,

from frameworks/native/include/utils/BufferedTextOutput.h:21,

from frameworks/native/libs/utils/BufferedTextOutput.cpp:17:

frameworks/native/include/utils/TypeHelpers.h:20:15: fatal error: new: No such file or directory

compilation terminated.

In file included from frameworks/native/include/utils/BasicHashtable.h:23:0,

from frameworks/native/libs/utils/BasicHashtable.cpp:22:

frameworks/native/include/utils/TypeHelpers.h:20:15: fatal error: new: No such file or directory

compilation terminated.

make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/lib64utils_intermediates/CallStack.o] Error 1

make: *** Waiting for unfinished jobs....

make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/lib64utils_intermediates/BasicHashtable.o] Error 1

make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/lib64utils_intermediates/BlobCache.o] Error 1

make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/lib64utils_intermediates/BufferedTextOutput.o] Error 1

But before this i copied files new, new.h and new_allocator.h from usr/lib/gcc/include folder as it was not found previously in the frameworks/native/include/utilty folder

but it still gives me the same file not found error ...why is this so hard to build AOSP no guide for this please replay...:(
[Android] Snuzzo:
TypeHelpers.h is missing.
[Android] franpek33:
I have ubuntu 13.10 and I have this problem :( Can you help me?

http://www.subeimagenes.com/img/captura-de-pantalla-de-2014-03-14-22-28-43-877422.html

The problem:

Descargados 1.653 kB en 8seg. (198 kB/s)

W: Imposible obtener http://ppa.launchpad.net/ferramroberto/java/ubuntu/dists/saucy/main/binary-amd64/Packages 404 Not Found

W: Imposible obtener http://ppa.launchpad.net/ferramroberto/java/ubuntu/dists/saucy/main/binary-i386/Packages 404 Not Found

W: Imposible obtener http://ppa.launchpad.net/ubun-tor/ppa/ubuntu/dists/saucy/main/binary-amd64/Packages 404 Not Found

W: Imposible obtener http://ppa.launchpad.net/ubun-tor/ppa/ubuntu/dists/saucy/main/binary-i386/Packages 404 Not Found

E: Algunos archivos de índice fallaron al descargar. Se han ignorado, o se han utilizado unos antiguos en su lugar
[Android] xawos:
Try Appending ":i386" to the packages you selected

The PPA you're trying to download from doesn't exist.
[Android] franpek33:
Do you know how to fix this problem?

Enviado desde mi GT-S6310N mediante Tapatalk
[Android] rockinroyle:
Great tutorial! Waiting for my 16g of ram to arrive before I set up my kubuntu 14.04 vbox for building aosp. Which brings me to my question. To the best of your knowledge should this same setup work on kubuntu 14.04 for building kitkat or most recent android ver which from aosp source page would be the master branch? Any insight you have would be great as I was able to successfully build cm11 based on their tutorials but have never attempted aosp and it seems much more difficult to me ATM? Also for tmo m919 gs4 if thatatters? Thanks for this again! Great work!
[Android] Dirk64:
Take a look at this post, just a twoliner in terminal.

http://xdaforums.com/showthread.php?p=50748836
[Android] linhbs:
Thank so much.
[Android] LFreitas:
thanks for help! :cyclops:
[Android] autotech40:
oracle java6 not found

i have read this entire thread.i have added the repos and checked in software manager and all the ppa's are checked,but it still says oracle java6 not found when i try to install it.

p.s. i see that oracle java is discontinued for linux.can someone please point me to an updated tutorial?this one was the best i found so far.all i can find on the net are either over complicated or outdated.thanks for any help.
[Android] sylentprofet:
http://xdaforums.com/showthread.php?t=2639611

There were some changes to the packages etc, so I updated the guide for the latest version of Ubuntu.

Check it out, it should work for you. Small differences but important
[Android] xlightwaverx:
This is nice, but what's up with all the X11-Core junk I keep seeing? What if we don't use X11 or anything graphical at all?

X
[Android] :
I just think they are required symlinks. I seriously don't have no idea.This was previously taken from an earlier guide. I don't even use Ubuntu anymore.
[Android] xlightwaverx:
Well what do you use?
[Android] :
Arch Linux
[Android] xlightwaverx:
ahh, the "do more of the work" linux.
[Android] :
The bleeding edge, simplicity, rolling model of Arch is what I like. Being closer to upstream code rather Ubuntu's patched crap is what I like. If it a bug surfaces in the kernel or a package, it will get fixed fast. With Ubuntu you have to play the wait game and a fix might not even come until the next release cycle. Arch isn't for everyone since it requires more knowledge and patience, but once you have it setup you can really call it your own.
[Android] xjoey20x:
Thank you for this guide! It really helped.
[Android] Slimegod:
I'm at the build stage of building my ROM. Installed repo and synced it. I'm using patchrom of course, MIUI kitkat. Now to my knowledge I'm pretty sure the source codes are in my android folder. My question is what command do I type to build the ROM that my port will be in so I'll be able to flash it? Also, when it comes to patchrom from what I've read it's best to use a base that's similar to the actual port your doing. Where I get confused is with makefile. I have to copy certain things to my stock.zip ROM but if I'm not mistaken there will be 2 makefiles, one for the stock.zip and the other for the actual source codes to where I've just downloaded using repo init -u. I'm lost as to where those makefiles get copied if the stock ROM is in a zip file. Can anyone chime in with some insight. Nice thread btw, it's really helpful.
[Android] kilometers4:
How did you guys go about instaling Ubuntu with windows 8. I followed all the steps, but when the installer opens up it doesnt detect any of the hard drive partitions to install in..

Sorry for OT, But thanks in advance :)

Any help would be greatly appreciated
[Android] ThePresence:
So can you help me out with this error?????
[Android] OldDroid:
basically, if you have a good pc with a good hardware (mine is intel core i7 [Turbo Boost 2.0, 3,2 ghz OC], 8 gb ram and 500 gig harddisk)

so if you have atleast 4 gb ram and a intel core i 5 you can do it with vmware or any other programm wich is almost the same than vmware :cyclops:

try to use it directly with the updated webup8 sources!

sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32ncurses5-dev ia32-libs 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

All works fine for me, may thats the problem but i dunno ^^
[Android] sylentprofet:
I had a similar issue. In my opinion there is something wrong with the Ubuntu installer for 13.04 but I can't be absolutely certain.

This is just speculation, but try to manually unmount the partition with Windows on it (something like /dev/sda1) before attempting the install. It seems like the installer has a problem unmounting NTFS partitions or something..

It's hard to say without knowing your exact setup. Do you have the HD already partitioned, or are you planning on resizing the windows one to fit Ubuntu on there? etc etc the questions could go on like that for hours.

Anyway, give it a shot. Unmount the partition from the commandline or the GUI (i like gparted) and then retry running the installer.
[Android] ThePresence:
No luck dude same error......:(
[Android] sylentprofet:
The "missing" packages are all things that should be in the main repo.. Check Software Sources in the Ubuntu Settings manager and make sure that you have all the correct repos enabled.

Perhaps also try sudo apt-get update && sudo apt-get upgrade to make sure that all the repository lists are up to date.

It's a pretty strange error. Are you starting from a fresh install?
[Android] OldDroid:
my server for depencies for packages are from the us, may you should change the apt server for ubuntu packages from your country to us ones

may its the problem, but once more, i dunno ^^
[Android] ScardracS:
Raring Ringtail is the best for build android :)
[Android] Febby:
I followed this guide to hopefully compile without error this time. This guide was the first to not give me any errors or not found missing libs messages. I have high hope! A lot of the previous guides had outdated information or mixed up information. Just to calify, I followed this guide but made the following commands compared to your aokp guide.

cd ~/android/system/
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1

once that was done I did that...

repo sync -j8

All should be okay? =)

Thanks!
[Android] kilometers4:
So I completed the tutorial, but when I tried syncing repo but it keeps freezing and won't complete. Does anyone know what's going on?
[Android] cr4ck3r4lif3:
I had problems trying to sync/compile over WiFi.
[Android] Dr01nE:
might be ot but figured to ask anyway. does the repo sync resume in any event of interruption? eg power outage or network disconnection?

"You know you're rooted when Samsung's sales reps are in awe when they saw your phone running Jelly Bean and has Note II's Lockscreen"​
[Android] jjhiza:
Are you guys using "repo sync -f" or just "repo sync"? Using the -f command shouldn't freeze, even over WiFi.:)
[Android] Febby:
Thanks for this guide! I was able to sync without issue and create my first self build ROM from cm source! Previously all other guides had missing libs or links or gave me improper java versions. :)

Also, might add that I had no issue syncing over WiFi here using the regular "repo sync -j8".

Sent from my SAMSUNG-SGH-I747 using Tapa talk 2
[Android] samuraixzodus:
Package error

I have the Oracle JDK installed although this is the error I get when I try to install the packages:

xxxxx@Development:~$ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32ncurses5-dev ia32-libs 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
[sudo] password for xxxxx:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'lib32z1-dev' instead of 'lib32z-dev'
bzip2 is already the newest version.
git-core is already the newest version.
gnupg is already the newest version.
libbz2-1.0 is already the newest version.
libc6-dev is already the newest version.
libreadline6 is already the newest version.
python is already the newest version.
readline-common is already the newest version.
zip is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
build-essential : Depends: g++ (>= 4:4.4.3) but it is not going to be installed
Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed
g++-multilib : Depends: gcc-multilib (>= 4:4.7.3-1ubuntu10) but it is not going to be installed
Depends: g++ (>= 4:4.7.3-1ubuntu10) but it is not going to be installed
Depends: g++-4.7-multilib (>= 4.7.3-1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Any thoughts?

Here is my Java Version

xxxxx@Development:~$ java -version
java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)
[Android] samuraixzodus:
Unmet dependencies fixed

I got the packages to install using the following code below:

sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z-dev libgl1-mesa-glx:i386 libgl1-mesa-dev 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 dpkg-dev g++

It appears I was having a issue installing the following code below:

g++-multilib

When I removed this, the error log revealed unmet dependencies of the following code below:

dpkg-dev & g++

This could be unique to my environment but I figured I would include my resolution if anyone else had issues.
[Android] :
Build Environment for Debian Jessie 8/Unstable/SID/

So yeah, I'm not really a fan of anything Ubuntu. Lol Most of the guides will either break your system in SID since the flood gates opened when Wheezy became the new Stable or it will leave dependencies unresolved/break future updates. This was all done in a 64 bit environment on Debian Unstable.

*I take no credit for this. Props from the original guide from below. All I did was tweak it for the new Debian SID 8 Jessie.*

Original tut for Debian 7

https://www.techsomnia.net/2012/11/building-android-on-debian-7

1. Install Oracle Java 6. (I use the lazy and ppa/ automatic install method)

http://www.webupd8.org/2012/11/oracle-sun-java-6-installer-available.html

2. Open your favorite Terminal and do the following. (You can use either pngcrush or optipng) (No bloat ia32 libs needed)

sudo apt-get install git-core gnupg flex bison gperf build-essential
sudo apt-get install zip curl zlib1g-dev libc6-dev
sudo apt-get install lib32ncurses5-dev
sudo apt-get install x11proto-core-dev libx11-dev
sudo apt-get install lib32z1-dev lib32readline-gplv2-dev
sudo apt-get install libgl1-mesa-dev g++-multilib mingw32
sudo apt-get install tofrodos python-markdown
sudo apt-get install libxml2-utils xsltproc schedtool optipng

3. Make your symbolic links.

sudo ln -s /usr/lib32/libX11.so.6 /usr/lib32/libX11.so
sudo ln -s /usr/lib32/libGL.so.1 /usr/lib32/libGL.so
[Android] _thrasher_x:
So this is your setup for sid? I'm gonna try this out. I've never built android at all, but I have debian going on my database computer at work.

Sent from my PC36100
[Android] :
Yep. I just modified it from the above link to work with Debian SID. It will pull in everything that it needs. I already built 3 ROMS using this environment.
[Android] _thrasher_x:
I know there's a million 'build android on *buntu/linux' threads, but this was insanely easy. You should make a new thread with this setup for the non-buntu lovers.

Either way, thanks.

Sent from my PC36100
[Android] :
I probably will make a separate thread :)
[Android] jjhiza:
Has anyone had success with adding Halo to AOSP? I'm trying to get it into my build, but I haven't figured it out yet.
[Android] kilometers4:
It's not halo, but works pretty well

http://xdaforums.com/showthread.php?p=41035204
[Android] Davidson3680:
How th Configure Ubuntu 13,04 for Android ROMS

This is a great thread thank you so much for posting it :D
[Android] ThePresence:
what will happen while syncing repo pc will be shut down???