yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
I would love to make a complete guide for newbies with next to no knowledge like me. I will get myself familiar with the process to building from source and they may look into it. I don't have massive amounts of time to dedicate to it though with the other things I like doing (ps3, dogs and kids.)
[Nexus 5 Q&A, Help & Troubleshooting] theesotericone:
I don't have a lot of time either. That's why I think a rolling guide would be the way to go. Some guys from my old device did just that last year and it worked really well. Here's the thread:

http://xdaforums.com/showthread.php?t=1798056

Something along those lines is what I'm thinking. Let users who want to actually learn instead of just request get involved and help each other. Pretty sure that's was the whole point of XDA back in the day. I still think it can be. Off to bed for me but let's keep addressing the idea.:cool:
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
Your right the point of xda is to be part of a community willing to learn and share knowledge. I'm not sure when it became a place to demand stuff for your device and to ***** and moan at devs for something not working. If everyone could get back to the original xda ethos then maybe ROMs would be better quicker with lots of people helping instead of just taking.
[Nexus 5 Q&A, Help & Troubleshooting] Jimlarck:
I'm not sure but I was once told you need at least 8 GB of RAM to build android from source, just wanted to let you know :)
[Nexus 5 Q&A, Help & Troubleshooting] Chromium:
Not true.

Sent using xda-developers app
[Nexus 5 Q&A, Help & Troubleshooting] Jimlarck:
I mean, you can always use swap space but in theory you should have at least 8 GB of RAM. At least that's what people have told me.

EDIT: Yup, http://source.android.com/source/building.html. It's actually 16GB but I was close.
[Nexus 5 Q&A, Help & Troubleshooting] Chromium:
That's odd. I build with my laptop with 6gb of ram and a 1gb swap partition. And I've seen others building with really old PCs with way less ram than that. It'll take longer, but it should still work.

Sent using xda-developers app
[Nexus 5 Q&A, Help & Troubleshooting] Jimlarck:
Depends on what they're building, and their build conditions really. It should work with 8GB but anything lower than that has a probability of failing (aside from it taking longer)
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
I only have 6gb but I'll still be trying to build just got to wait till I get home. How more likely is it to fail due to lack of ram.

I have only assigned 3gb of ram in a virtual environment I think I may need to leave windows and fully install Linux.
[Nexus 5 Q&A, Help & Troubleshooting] AndrasLOHF:
I've been wanting to get into this for a while. Looked into some guides but never made a go at it. I'm guessing I'll need to set up my pc as dual boot for WIndows 7 and Ubuntu? I would assume you can't compile using an Unbuntu disc but that the OS has to actually be installed????
[Nexus 5 Q&A, Help & Troubleshooting] neobuddy89:
I just built CM11 on virtual machine with 3 GB RAM.... just to grab ramdisk from it.. lol.

It's very easy to compile when you know what you want, where can you get and couple of commands. ;)
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
That's reassuring to know I don't want to be put off before I start.
[Nexus 5 Q&A, Help & Troubleshooting] Chromium:
Look, living proof that it won't fail. :p

I've never had a build fail due to having only 6gb of ram.

In theory you could run it off the disc but it will be painfully slow. Even using a virtualbox I found too slow. Dual booting is the best way in my opinion. That way Ubuntu can take advantage of all of your ram and CPU.

Sent using xda-developers app
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
From my understanding Linux is a very good OS nowadays and I'm of the thinking to just go for the full swap and leave windows behind. I only use windows to browse the web and watch films and fart about with my phone. Linux can handle that, can't it?
[Nexus 5 Q&A, Help & Troubleshooting] xBeerdroiDx:
agreed

linux has been a very good OS for quite awhile now.

you can dual boot as chromium suggested (thats what i do) or abandon windows in total. either option will give you what you're looking for. ubuntu is a great distro to start on. it will give you the build environment you need while also allowing you to do everything else you are used to doing in windows (including the web browsing, movie watching, etc you listed).
[Nexus 5 Q&A, Help & Troubleshooting] wund3rground:
The more processor and RAM you have the better, but I used to build CM on a Pentium 4 machine with 2 gigs of RAM. It was slow as all hell, but it worked just fine.
[Nexus 5 Q&A, Help & Troubleshooting] xBeerdroiDx:
this is true. if you cant do any better than what you have at the moment, you'll learn to (or have to learn to) deal with the speed your system works and compiles at. i couldnt afford a ssd 2 years ago when i built the machine i'm currently running but i got a hold of a great 10k rpm drive. that, combined with the 64bit amd quadcore and 16gb ram, this setup handles most of what i throw at it.
[Nexus 5 Q&A, Help & Troubleshooting] theesotericone:
Man was I stoked when I woke up this morning and saw this post still on the first page. lol Linux is great. I switched over from Winblows a little over 8 months ago and have no regrets. I've tried both Mint and Ubuntu. I settled on Ubuntu after having Mint 15 KDE give me the black screen of death a few times. Weird issue for sure but haven't had any problems with Ubuntu. It has all the same programs I used on Windows(or equivalent). Plus I can now build on it with my fall HD size available. Now if I can only figure out what that error getting thrown is I'll actually have done something. lol
[Nexus 5 Q&A, Help & Troubleshooting] krs360:
You should have a read on XDA university and the forum on that.
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
Just managed to set up dual boot with Linux mint 16 cinnamon and windows 7. Had boot issues so took me ages to actually get the choice to boot but all working now.

I'll be setting up ready for building tomorrow. I'll be a pro dev by the end of the week. :)
[Nexus 5 Q&A, Help & Troubleshooting] Chromium:
Ha, good luck ;)

Im currently compiling cm11 for the nexus 5. Would anyone be willing to test it out for me (assuming that it builds successfully)?
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
I'll test it but I'm off to bed now and won't be back till tomorrow night.

What sort of risk to bricking my phone is there from a fresh build. I've only ever flashed tested builds. I've got my backups so don't mind flashing different stuff
[Nexus 5 Q&A, Help & Troubleshooting] Chromium:
Thanks.

I would say there is little to no risk in actually bricking the phone. Pretty much the worst case scenario is the rom bootloops and you have to restore a nandroid backup.

The only reason im not testing is cause i dont have the phone.
[Nexus 5 Q&A, Help & Troubleshooting] theesotericone:
Funny. I am too. lol I'm failing. If it builds send it this way and I'll flash it for you. Did you take a look at the error I posted up thread? It keeps failing at that point. No clue what to do other than start over.
[Nexus 5 Q&A, Help & Troubleshooting] Chromium:
Wheres your error?
[Nexus 5 Q&A, Help & Troubleshooting] theesotericone:
Here:

http://xdaforums.com/showpost.php?p=48051526&postcount=9

I'm about two seconds away from starting from scratch. One thing that should be noted is that I pulled the propriatary blobs from Bean and not from CM. I didn't think those would be any different between the two but who knows.
[Nexus 5 Q&A, Help & Troubleshooting] Chromium:
Heres what ive done (my build has been runing for ~3 hours now):

-repo sync of cm11

-breakfast hammerhead (this clones the device and kernel tree for the hammerhead)

-cloned The Muppets github repo for lge vendor proprietary files
[Nexus 5 Q&A, Help & Troubleshooting] theesotericone:
Cool. So not having the device you just clone the muppets. I still don't know what to do with that error I'm getting. Google isn't helping which is unusual.
[Nexus 5 Q&A, Help & Troubleshooting] Chromium:
Alright it compiled successfully:

http://www.mediafire.com/?afmcqvjaff14b45

Feel free to test and let me know if it boots.

If anyone has any questions let me know.

Also I noticed that this took significantly longer to build than jellybean. It took around 4 hours while jellybean would take less than 2.

Specs,:

Intel core i5 2450

6gb ram

Ubuntu 13.04

100gb HDD

Sent using xda-developers app
[Nexus 5 Q&A, Help & Troubleshooting] jd1639:
It boots no problem. All the basic stuff works. Did not flash gapps.
[Nexus 5 Q&A, Help & Troubleshooting] Chromium:
Thanks, that's all I need to know.

Now for the hard stuff...compiling for unsupported devices.

Sent using xda-developers app
[Nexus 5 Q&A, Help & Troubleshooting] Harry GT-S5830:
Thanks for this thread guys I've been looking closely and I set mint up on my ssd, with a FX8320@ i7 levels (desktop cpu) and 12GB RAM what kind of compile times am I looking at do you think?
[Nexus 5 Q&A, Help & Troubleshooting] Chromium:
I would estimate ~1 hour without ccache, and 45 minutes with ccache.

Sent using xda-developers app
[Nexus 5 Q&A, Help & Troubleshooting] theesotericone:
Just gave up on CM11 for a bit. Synced up to AOKP instead and built first go. It did take a while for the build to finish. I would say around three hours total. Although I didn't exactly time it.

Core i5 2450M

16GB ram

Ubuntu 13.10

I did notice it took a while for it to get off the art entries so I'm sure that has something to do with it.
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
Everyone seems to be well ahead of me. I just had to give myself a serious crash course in Linux. I've now managed to set up a build environment and now I'm performing repo sync. I'm following the cm guide linked a few pages back. I'm getting there but its a massive learning curve but its fun.
[Nexus 5 Q&A, Help & Troubleshooting] Chromium:
Yea everything is confusing the first time. I remember i had no idea what i was doing when i did this for the first time a few months ago.

Also the cm guide is guide of lengthy and has a lot of redundant stuff in it. If you have already setup the build environment i would suggest doing the following (i did this yesterday and it went well):

-repo sync of cm 11 source:

mkdir ~/bin
PATH=~/bin:$PATH
cd ~/bin
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo
mkdir ~/android
cd ~/android
repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0
repo sync

-after thats done, run the following:

. build/envsetup.sh

breakfast hammerhead (this command downloads the device and kernel tree for the nexus 5)

cd ~/android/vendor/cm

. get-prebuilts (this command downloads prebuilt proprietary cm stuff)

cd .. (go up one level)

cd .. (go up another level, brings you back to root of source code)

-Now you need to add proprietary blobs to your source. Download my local manifest file and place it in the .repo folder within your source folder (this folder is hidden by default so press ctrl + h to make it visible). After youve added that file run "repo sync" again.

-Once that last repo sync has completed run the following command to start the build: "time brunch hammerhead"
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
Hmm just stopped that sync as looking back through what I've done its setup for cm 10.2 I know I need cm11 I tried to initialize the cm repo but the guide uses 10.2 so I changed it for 11, didn't work so went ahead with 10.2, it worked. Now I think its wrong. So confusing I'll give it a break tonight I think try again tomorrow
[Nexus 5 Q&A, Help & Troubleshooting] Chromium:
I edited my above post so that its a somewhat functional guide from start to end (assuming youve already setup the build environment)

Let me know if you have any questions, but what i posted above is pretty much exactly what i did yesterday and it worked the first time. Good luck :)
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
I see where I went wrong I put cm 11 not 11.0 it has worked now. Now for repo sync. Thanks a lot such a tiny detail can make it all wrong
[Nexus 5 Q&A, Help & Troubleshooting] theesotericone:
"The devil is in the details". Don't ask I've just always wanted to use that quote.

What where talking about here is absolutely detail intensive. The issue I'm running into is the details are hard to find. Why have a local_manifest? Shouldn't "brunch hammerhead" have all that already? What about lunch? I synced bean and tried to "lunch" and there wasn't any hammerhead option. I referenced this post to start the attempt:

http://xdaforums.com/showpost.php?p=40381529&postcount=3

Notice this line in particular from that post:

So here's where the Catch-22 starts to come into play. Feel free to sync the repo but don't ask about device specifics. Well google fails on this. Look up "local_manifest.xml android" or even go a step further and add github to the end of the search. Nada. Nothing. About as worthless as tits on a boar(another saying I've always wanted to use).

So where the hell am I going with this lengthy tangent you must be asking? No where. I'm stuck. And I know I'm not the only one.

SO if any body has any advice, even if it's stick with it, I'd be glad to have it.

Ohh. About that AOKP build that actually completes. Yeah, well, it never booted. llol:cool::cool:
[Nexus 5 Q&A, Help & Troubleshooting] jd1639:
Stick with it!!!
[Nexus 5 Q&A, Help & Troubleshooting] arc_n_krizt:
If you know about environment linux it's easy way, the problem thing is source for CM, it's a big sources... If you have a time to learn you can dual boot your pc or laptop to use linux mint or u buntu ( cause this distro fammiliar for new) along side windows...
[Nexus 5 Q&A, Help & Troubleshooting] theesotericone:
LMAO. I am bro I am. Thanks. I'm a freaking carpenter trying to learn a new hobby in my spare time. That "spare time" is mostly dedicated to rock climbing. This is more of what I do at night type of stuff. Having said that I hate to fail at anything. As of right now the "theesotericone vs building" goes to building at about a 7 to 0 ratio. Baby steps.

What? I took the liberty of highlighting some of your post. SO I'm on linux. I have CM source. How is this easy?
[Nexus 5 Q&A, Help & Troubleshooting] Chromium:
[MENTION=5451511]theesotericone[/MENTION] im pretty sure I know what your problem is. You forgot to add the vendor files for the nexus 5. Read my "mini-guide" on the previous page. You specifically need to look at the last part talking about the local manifest. This file contains the info on what files to pull and where to place them in your source. Without doing this your build will compile successfully but won't boot, which seems to be what's happened to you.

Sent using xda-developers app
[Nexus 5 Q&A, Help & Troubleshooting] theesotericone:
Let's keep these ideas rolling. AOKP has source for "hammerhead". bean doesn't. Add you local_manifest to bean. Build fails. On the same line that CM fails. So it seems it's a vendor issue?
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
[MENTION=653189]Chromium[/MENTION] so the download you put that replaces the need to plug my phone in and pull the blobs from it or does that still need doing
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
Sorry ment to edit not repost
[Nexus 5 Q&A, Help & Troubleshooting] Chromium:
No, you no longer need to do that.

Literally what i wrote on the last page is exactly what you need to do.

Sent using xda-developers app
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
Thanks I think I'm slowly getting the idea of what to do.
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
[MENTION=653189]Chromium[/MENTION] in the command

cd ~/cm11/vendor/cm

should it read

cd ~/android/vendor/cm
[Nexus 5 Q&A, Help & Troubleshooting] Chromium:
my bad, fixed it. So did you manage to build successfully?
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
Just adding your file now then doing the build. Its slow going as I have little time, but I do feel I've learnt loads already, thanks for your help and patience.
[Nexus 5 Q&A, Help & Troubleshooting] Chromium:
No problem. Remember that after adding my file you need to do another repo sync before starting the build.
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
Yep just waiting for that now. One thing out of this so far is I've learnt that I like Linux mint it will be replacing windows for me.
[Nexus 5 Q&A, Help & Troubleshooting] Chromium:
Ive tried switching, but i cant do it. Ubuntu seems a lot laggier than win7 on my computer, so ill be sticking with my current dual boot setup.
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
I may be getting ahead of myself here but if I want to add features into this ROM do I add them in the appropriate way ( yet to learn that ) then repo sync and compile again or is it a bit more than that
[Nexus 5 Q&A, Help & Troubleshooting] Chromium:
You would make the changes (by cherry picking or editing the necessary files manually) then you would simply compile again (using "time brunch hammerhead") . You dont need to run repo sync again. (thats only to update your code base)
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
OK. To add cherry picks is it pulled from github and just moved into the correct directory or is there a proper procedure. I'm sure its not as simple as that some things must throw up a load of errors.
[Nexus 5 Q&A, Help & Troubleshooting] Chromium:
Im not completely sure about cherry picking. When Ive tried it in the past it just screws up my source and causes future builds to fail.

So now i pretty much go through the trouble of manually editing each file. Also before you try to cherry pick or make modifications i would highly recommend copying the repos that you will be playing with to another location on your computer, so that if your changes cause the build to fail, you can easily copy your backup back and errors will be fixed.
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
Started to compile and it failed within a minute. The last few lines were:

contents[1]).group('class_name')

AttributeError: 'NoneType' object has no attribute 'group'

make: *** [/home/andrew/android/system/out/target/product/hammerhead/obj/GYP/shared_intermediates/ui/gl/jni/Surface_jni.h] Error 1

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

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

real	1m47.725s

user	2m40.974s

sys	0m30.464s

It did mention something about the wrong jdk at the beginning.

Not as easy as it seems:eek:
[Nexus 5 Q&A, Help & Troubleshooting] Chromium:
Well if you followed exactly what i posted, i guess your issue is the build environment. When you set it up did all of the packages install succesfully?
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
As far as I'm aware is there any harm in installing them again.
[Nexus 5 Q&A, Help & Troubleshooting] bigshotrob22:
So here a good guide to get your build essentials all set up. Now if you want to build AOKP continue towards the bottom n syncing the repo. The guide is a little outdated but you will need the first part to compile any ROM.

http://rootzwiki.com/topic/31166-tutorial-building-aokp-ubuntu-1204/
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
Just reading up a bit more and on the cm guide it says as of cm10.1 it will not build with 64bit host binaries on some systems. So I changed it with

BUILD_HOST_32bit=1

And now seems to be doing something more than last time ( it hasn't failed yet anyway. ). So fingers crossed.

Failed again. I look at tomorrow. :(
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
Right I have decided I'm going to start again from scratch. I am going to install Ubuntu instead if mint as I think that may be causing me some trouble and I'm going to take a bit of time learning what these commands in Linux mean, instead of just copying them and not knowing what is going on. Hopefully then I can have a better understanding of what goes wrong and not just rely on others to help me out.
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
Success I have built cm 11.0 4.4.1 android just have to flash it now. Will do it later off out now
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
Flashed fine all working trying aosp now. Currently compiling.
[Nexus 5 Q&A, Help & Troubleshooting] know.patience:
how's the building going? I'm glad I found this thread, I've been trying to build for a bit and I think the local_manifest.xml is what was holding me back. Nice to find some like minded folks here as it seems the gap between developers and users is getting pretty wide on xda.
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
Yeah its going OK. Built a couple of ROMs following some guides but still finding it hard when something doesn't go according to plan what to do. Need to keep on learning.

The local manifest is key to it all I think only just learning about that. The guides i followed are pretty easy so only just started experimenting with other bits
[Nexus 5 Q&A, Help & Troubleshooting] know.patience:
my builds all finish without error but bootloop after I flash. Initially I connected the phone and pulled the blobs using the extract script, but now I'm using the local_manifest. I'm going to clear out the folder and do another repo sync to see if I can get a working build.
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
What are you trying to build cm, aokp .... A few pages back chromium posted a file to use instead of pulling blobs for cm. I used it and got a fully working cm build
[Nexus 5 Q&A, Help & Troubleshooting] IIMaxII:
Why use 13.10 over 12.04? Google tests their builds on 12.04... :confused:
[Nexus 5 Q&A, Help & Troubleshooting] DigitalUnderground:
I'm trying to build an aosp ROM with Ubuntu 13.10. I saw a guide saying use 13.10 so that's what I did... And it took a ton of time to update from 12.04 to 12.10 to 13.04 and finally to 13.10 so hopefully this will work on 13.10.

Here's the error I'm getting:

PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
Proguard: out/target/common/obj/APPS/Calculator_intermediates/proguard.classes.jar
ProGuard, version 4.4
Reading program jar [/home/digitalunderground/android/out/target/common/obj/APPS/Calculator_intermediates/classes.jar]
Reading library jar [/home/digitalunderground/android/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar]
Error: Can't read [proguard.ClassPathEntry@199a0c7c] (unexpected EOF)
make: *** [out/target/common/obj/APPS/Calculator_intermediates/proguard.classes.jar] Error 1

Anyone recognize that? The full build log is in the OP of this thread here

But hasn't received very many helpful posts except to start from scratch.

Sent from my Hammerhead
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
I build using Linux mint I find it a much nicer platform to work on. I have successfully built cm and aosp on it so far by following the guides so as long as its a recent Debian/Ubuntu based Linux distro I don't think it makes a huge difference.
[Nexus 5 Q&A, Help & Troubleshooting] goatimus:
Unfortunately I'm not knowledgeable enough to help you with this one. I've always just started from scratch when I have a problem.
[Nexus 5 Q&A, Help & Troubleshooting] DigitalUnderground:
How would I start from scratch? Should I just delete my ~/android folder and go from there? Should I downgrade to Ubuntu 12.04 (I'd be pissed after how long each update took to get off of 12.04 lol), should I switch to mint (doesn't seem likely since I'm planning on deleting windows and repartitioning my HD to be all for ubuntu.)? I'm stuck and not happy about it lol

Sent from my Hammerhead
[Nexus 5 Q&A, Help & Troubleshooting] know.patience:
have you tried repo sync'ing again to pull down the file that was bombing out? I'm no expert either.
[Nexus 5 Q&A, Help & Troubleshooting] DigitalUnderground:
Yeah a couple of times.

Sent from my Hammerhead