yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] housry23:
If this were Windows I would have no problem doing it. I have been building and servicing Windows machines for a few years now as a side job for extra cash. I figured it's time to learn Linux! Thanks for your words of encouragement.

Thanks shenye! This will come in handy. Now to make some VZW GNex Roms. It is only because I found this on Twitter that I have decided to take this on as a project and I appreciate your tutorial big time. It not only is helping me learn, but motivated me to even try.
[Samsung Galaxy Nexus] naddie:
Compile is done! But where is the compiled file? I don't see it in the ICS_SOURCE folder. I don't recall giving it a file name, either.

PS, am I able to backtrack and recompile for a different device? While it was compiling, I actually ordered the Galaxy Nexus GSM. :p I decided I am going to learn on a real Nexus instead of my Vibrant.

I also forgot to give the virtual machine 2 cores, so I'm gonna do that for the next compile.

Thanks again!

Edit:

Doh, I really should read the output better. Found it!

ICS_SOURCE/out/target/product/crespo (or whatever device you chose to compile for).
[Samsung Galaxy Nexus] Ram1500:
Hi their, so everything is goin smooth until i reached this part.

"ONLY USE ONE OF THE FOLLOWING COMMANDS (recommended - TOP)

repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.3_r1

OR:

repo init -u https://android.googlesource.com/platform/manifest"

i get

/root/bin/repo: line 1:syntax error near unexpected token 'newline'

/root/bin/repo: line 1: '<!DOCTYPE html>'

What do i do? or did i do something wrong??

Thanks in adavance
[Samsung Galaxy Nexus] naddie:
Try going to /root/bin and deleting the current repo file, then try typing these lines again:

curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
[Samsung Galaxy Nexus] Ram1500:
How do i do that? sorry :/
[Samsung Galaxy Nexus] naddie:
From start to finish, just type this:

rm ~/bin/repo
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo

First line deletes the repo file. The 2nd line re-downloads the repo file. The 3rd line chmod the repo file so it is executable.

My line of thinking is that you are having the error because the repo file you currently have is corrupt. This will re-download it again.
[Samsung Galaxy Nexus] xdanapo:
I build ICS from source and now I have got a zip file to flash. But it seems that some packages are not compiled. For example Phase Beam is missing. How can I compile ICS with these missing things?
[Samsung Galaxy Nexus] Dutchy18:
Is there anywhere a guide to 32bit ubuntu?

or some remarks you could add on how could i compile it under 32 bit?

my processor is 32 bit.. maybe i could run ubuntu 64bit through virtualbox (?)
[Samsung Galaxy Nexus] RogerPodacter:
that's what I'm about to figure out. I am all setup to compile other kernels with my 32 bit Ubuntu virtual machine. But I'm not sure if the ice cream sandwich kernel requires 64 bit or not. I only have my old computer so I hope it works.
[Samsung Galaxy Nexus] spielnicht:
Ok, I got it all working perfectly and got all my IMGs.

So which ones do I need to flash exactly? Just the boot, recovery and system??
[Samsung Galaxy Nexus] housry23:
You will not be able to run a 64-bit OS if your host OS is only 32 bit. I would actually go out on a limb and say that you will need a 64-bit OS to build ICS from source on. You may be able to build CM9 though with lithid's new CM Compiler tool. Here's the thread: http://xdaforums.com/showthread.php?t=1415661
[Samsung Galaxy Nexus] Troggie:
I am also getting the message

/root/bin/repo: line 1:syntax error near unexpected token 'newline'

/root/bin/repo: line 1: '<!DOCTYPE html>'

is there a different place the download the repo from? It says it downloads size was 11812 but even after removing and re-downloading it the error still persists.

I am currently using Mint 11.. which is based on 11.04. Maybe I will try it with stock Ubuntu and see if there is a difference.

edit: Same error when using 64bit Ubuntu 10.04 as well.
[Samsung Galaxy Nexus] shenye:
check you're using bridged network adapter
[Samsung Galaxy Nexus] xlillo:
Nice tutorial!
[Samsung Galaxy Nexus] killlabyte:
Whats up with the camera, and how do we get it working?
[Samsung Galaxy Nexus] naddie:
I've started over so I can sync the repo and get a clean folder of the source files.

Can I zip them up? tar.gz? I know there are case-sensitive files in there, so I'm not sure if zip or tar.gz is able to handle case sensitive files.

Also, will you be able to work on a guide for the Mac OS X Lion? I got pretty far with it following the Google documentation, but compiling gave me errors.

I had to install the older Xcode from my SL DVD (3.2.3), even though I was on Lion and installed the newer Xcode (4.2.1) for MacOSX10.5.sdk

Update:

After using Ubuntu's built-in tool to tar.gz compress the folder, the tar.gz file ended up being about 13 GB in size. The weird thing is, if I do a Properties on the ICS_SOURCE folder, it says it's 4.2 GB in size.
[Samsung Galaxy Nexus] PaulW21781:
Had a play over the past few days building my own ICS ROM, so far so good, need to sort a few bits. Took a while to get the SSD to play right to compile, but I think I've ironed out most of the issues with my build environment. Takes about 45mins to compile from scratch on my laptop, so not too bad.

Done a few modifications to the source so far, got it building busybox, su (from ChainsDD source), some other bits... It's not building Superuser.apk in yet (need to look into it more) and camera sort of works, just a few little bits which aren't working (face distortions, face unlock)

NFC doesn't work (logcat is full of crap from it) few other bits aren't working either, but it's fun! But compared to building 2.2/2.3, it is somewhat more taxing.

Building from the Master tree too, so ending up with 4.0.3.0.2.0.1.0 being shown as the version number (still IML74K though)

Also trying to build without resorting to using Cyanogen sources for building. Rather keep it as close to AOSP as possible with very few modifications. So far, all I'm building from CM is busybox, su and superuser. The entirity of everything else is coming direct from Google's repository (or from my own git repo for certain parts which I've modified myself)

I guess then, regarding sorting out the camera and other missing features, it's just a case of comparing a stock 4.0.2 ROM against the AOSP-build 4.0.3 ROM, and then making sure all missing proprietary libs are in place on the 4.0.3 build? I also need to edit the makefiles which build in the recovery image. I'll have another browse through the CM tree to see how they did it I guess... Shouldn't be too hard I hope to find it!

Cheers
[Samsung Galaxy Nexus] superlj:
I want to ask the same question, too.

Compiling was done with 0 problem. This is what I got

root@my-vm-ubuntu:~/ICS_SOURCE# ls -l ./out/target/product/maguro/

total 308932

-rw-r--r-- 1 root root 124 2012-01-03 20:01 android-info.txt

-rw-r--r-- 1 root root 4243456 2012-01-03 20:02 boot.img

-rw-r--r-- 1 root root 18364 2012-01-03 15:04 clean_steps.mk

drwxr-xr-x 2 root root 4096 2012-01-03 15:30 data

drwxr-xr-x 2 root root 4096 2012-01-03 16:00 fake_packages

-rw-r--r-- 1 root root 42452 2012-01-03 20:01 installed-files.txt

-rw-r--r-- 1 root root 3916448 2012-01-03 16:00 kernel

drwxr-xr-x 14 root root 4096 2012-01-03 19:42 obj

-rw-r--r-- 1 root root 589 2012-01-03 15:04 previous_build_config.mk

-rw-r--r-- 1 root root 322585 2012-01-03 20:02 ramdisk.img

-rw-r--r-- 1 root root 660896 2012-01-03 20:02 ramdisk-recovery.img

drwxr-xr-x 3 root root 4096 2012-01-03 20:02 recovery

-rw-r--r-- 1 root root 4581376 2012-01-03 20:02 recovery.img

drwxr-xr-x 9 root root 4096 2012-01-03 16:00 root

drwxr-xr-x 5 root root 4096 2012-01-03 19:42 symbols

drwxr-xr-x 13 root root 4096 2012-01-03 19:08 system

-rw-r--r-- 1 root root 161651264 2012-01-03 20:02 system.img

-rw-r--r-- 1 root root 140856312 2012-01-03 20:02 userdata.img

root@my-vm-ubuntu:~/ICS_SOURCE#
[Samsung Galaxy Nexus] beekay201:
This is going to be my next addition to my own build :)

https://github.com/MohammadAdib/RoundR

Sent from my Nexus
[Samsung Galaxy Nexus] djmatt604:
Cool idea man!!

Sent from something Infamous.
[Samsung Galaxy Nexus] Carlos_Manuel:
Anyone knows any guides to build ICS+ on 32-bit machine?

I need 2 PCs to build ROMs for Nexus and Jét and I don't have money and time to buy 64-bit new notebook for building GB 2.3.x :D

I quickly searched about this from Google and actually I didn't find anything helpful. :/
[Samsung Galaxy Nexus] beekay201:
I don't know what ICS+ means but the info down from Google is that only GB and Froyo can be built on 32bit, ICS and above require 64bit. You're not the first person to ask, and I've seen claims that's possible to build ICS and above on 32bit, but I've yet to see how they did it.

Reading your post... GB can't be built against 32bit? Or is Froyo the last version that is 32bit compatible? Now I'm confused.

Sent from my Nexus
[Samsung Galaxy Nexus] Carlos_Manuel:
ICS+, I mean ICS 4.0.x and newer Android version.

What I know there is some way to build Android ICS or newer Android version on 32-bit PC by downloading some required files which works on 32-bit PCs, like hacked way or something like that.. :D
[Samsung Galaxy Nexus] beekay201:
I imagine some hackery might be needed, yes

Sent from my Nexus
[Samsung Galaxy Nexus] djmatt604:
I think I did see a tutorial out there for setting up a 32 bit machine for ICS...but JB, man I don't know if you even really want to try that one...I've seen many advise against it. I have no source but I've read posts where people said that wasn't really worth doing because of the work involved...

Sent from my Infamous Tab.
[Samsung Galaxy Nexus] Carlos_Manuel:
Ok, But Nevermind!

I installed Win8 pro because my notebook were gone too slow so I made clean install and installed newer version of Windows which is pretty cr#p.

And when I checked Control panel I noticed that on Win 8 it showed me that my Notebook's CPU is 64-bit based what it didn't show on Win7,not even with some specs programs.

I somehow knew that this Notebook supports 64-bit OS even when this was sold with Vista home premium x86. :D

So looks like I will be able to use my notebook for building now. :)
[Samsung Galaxy Nexus] beekay201:
OEM FTW

Sent from my Nexus
[Samsung Galaxy Nexus] L14nnd3rR:
The link (http://www.freeyourandroid.com/guide/compile-ics) is dead.
[Samsung Galaxy Nexus] cozef22:
thank you :)
[Samsung Galaxy Nexus] Carlos_Manuel:
Yep.. :laugh:
[Samsung Galaxy Nexus] Carlos_Manuel:
Is it better to build JB 4.2.2 on Ubuntu Lucid Lynx 10.04.4 or Ubuntu 13.04 Raring Ringtail? :D

I installed Ubuntu 13.04 to my laptop and I had to mess pretty much with some things to make ADB and few other things to work..

And is it possible to build CM with linaro toolchain on Ubuntu 10.04.4? I got few errors but I wasn't able to figure out the one keystore error so I decided to try Linaro Android toolchain 4.7 on Ubuntu 13.04. Also in the Linaro's download page there is version: xx.xx e.g. Linaro 4.7: version: 13.04 <--- is that the recommended or required Ubuntu version or what? :confused:

Thanks!
[Samsung Galaxy Nexus] thenemis:
try 12.04 64bit

compile without error, axi0m, cm10.1 , paranoidandroid 3.5
[Samsung Galaxy Nexus] Carlos_Manuel:
I can compile ROM easily on 10.04.4 and hopefully same with 13.04, but I want to know more about ROM building with linaro on 10.04.4..

I have no time to install older version of Ubuntu when I have newer version and on the PC. I'll use only Lucid Lynx on my PC because of amazing performance..

In some pages they even recommend 12.10 but for me 13.04 and 10.04.4 are enough great for building CM.

And when you are able to to compile those on Ubuntu 12.04 then do you compile them with Linaro's toolchain or just Google's or..?
[Samsung Galaxy Nexus] jjhiza:
Anyone have any success (recommendations for) adding Halo to AOSP? I'm trying to figure it out, but haven't had any luck yet.
[Samsung Galaxy Nexus] Carlos_Manuel:
I would have tried to add it into CM but I didn't find the commits for Halo from ParanoidAndroid repositories..
[Samsung Galaxy Nexus] thenemis:
linaro, gcc 4,9 sabermod
[Samsung Galaxy Nexus] Carlos_Manuel:
Ok, so it's edited version...? :D
[Samsung Galaxy Nexus] jjhiza:
Maybe this would help? It's a flashable zip that the team made so users can update Halo easily, but it bootloops on any ROM other than PA. I was hoping someone could reverse engineer the zip, to make it compatible with AOSP builds. Here's the zip if you want to take a crack at it. I just don't have the skill to hack it yet... :o

https://www.box.com/s/ifrrvrc9hmpjz4m2d96w
[Samsung Galaxy Nexus] Carlos_Manuel:
1. Those are compiled apps.. I can't get the lines from .smali files because de-compiled apps will have .smali and .xml files. but I need the .java/.aidl files

2. No wonder why it bootloops, SystemUI.apk or framework-res.apk from another ROM will cause bootloop if them are not based of exact same sources...

I don't know, have the paranoid devs. released the repositories with those Halo commits. Last time when Is checked then I didn't find any commit which is related to PA HALO feature..

---------- Post added at 09:11 PM ---------- Previous post was at 08:58 PM ----------

Weird...

When I compile CM10.1 on my laptop then my laptop just shuts down.. -_- I wasted more than 6 hours to make everyting ready for building... :D
[Samsung Galaxy Nexus] dolfet15:
Thanks, I'm using this tutorial and tutorial from paranoid
[Samsung Galaxy Nexus] jaizero:
My laptop keeps shutting down in the middle of compiling AOSP due to thermal shutdown. Compiling on Linux Mint 14.. Has this ever happened to anyone else? I've completed the build before but for some reason this just started.. Any ideas?

Thanks!
[Samsung Galaxy Nexus] cucisan:
clean your laptop fan... compiling such a big project can push your HW to its limits... (CPU/RAM/chipset)

sent from my important phone
[Samsung Galaxy Nexus] beekay201:
Or use 'make -j1 otapackage'.

a maguro wrote this.
[Samsung Galaxy Nexus] MBQ_:
Isn't it typically not recommended to use (assign) an odd numbers of jobs to each thread of a (or the) processor?
[Samsung Galaxy Nexus] djmatt604:
I use j3 and j5 all the time amd have never had an issue across multiple machines.
[Samsung Galaxy Nexus] cucisan:
Its numberofcores+1... usally

sent from my important phone
[Samsung Galaxy Nexus] beekay201:
Well, yes, even more than just cpu number of cores+1. I use -j16 (edit: on a 4core CPU) with 8GB DDR3 and 4GB swap no issues. I suggested -j1 because it's the slowest possible, and thus less demanding on the build machine.

The same principle applies to 'repo', for both client and server.

a maguro wrote this.
[Samsung Galaxy Nexus] beekay201:
Also, you shouldn't forget that that many threads may bottleneck a system, as Android needs a lot of resources too (on certain parts of the build), and when choosing how many threads you can use, a couple factors need to be considered: how much memory (physical + virtual aka swap) is available, how much disk space and which filesystem you have, and if you're using the same machine at the same time for other intensive jobs.

a maguro wrote this.
[Samsung Galaxy Nexus] MBQ_:
Gotcha. I learn something new every single day. Nothing but respect for/towards you man. :good:
[Samsung Galaxy Nexus] -Jesco-:
Edit : Solved

is this error because of java or what ?

host Java: android-mock-generatorlib (/home/jesco/android/system/out/host/common/obj/JAVA_LIBRARIES/android-mock-generatorlib_intermediates/classes)
warning: [options] bootstrap class path not set in conjunction with -source 1.5
external/android-mock/src/com/google/android/testing/mocking/AndroidMock.java:2374: error: name clash: capture(Capture<Integer>) and <T>capture(Capture<T>) have the same erasure
public static int capture(Capture<Integer> captured) {
^
where T is a type-variable:
T extends Object declared in method <T>capture(Capture<T>)
external/android-mock/src/com/google/android/testing/mocking/AndroidMock.java:2389: error: name clash: capture(Capture<Long>) and <T>capture(Capture<T>) have the same erasure
public static long capture(Capture<Long> captured) {
^
where T is a type-variable:
T extends Object declared in method <T>capture(Capture<T>)
external/android-mock/src/com/google/android/testing/mocking/AndroidMock.java:2404: error: name clash: capture(Capture<Float>) and <T>capture(Capture<T>) have the same erasure
public static float capture(Capture<Float> captured) {
^
where T is a type-variable:
T extends Object declared in method <T>capture(Capture<T>)
external/android-mock/src/com/google/android/testing/mocking/AndroidMock.java:2419: error: name clash: capture(Capture<Double>) and <T>capture(Capture<T>) have the same erasure
public static double capture(Capture<Double> captured) {
^
where T is a type-variable:
T extends Object declared in method <T>capture(Capture<T>)
external/android-mock/src/com/google/android/testing/mocking/AndroidMock.java:2434: error: name clash: capture(Capture<Byte>) and <T>capture(Capture<T>) have the same erasure
public static byte capture(Capture<Byte> captured) {
^
where T is a type-variable:
T extends Object declared in method <T>capture(Capture<T>)
external/android-mock/src/com/google/android/testing/mocking/AndroidMock.java:2449: error: name clash: capture(Capture<Character>) and <T>capture(Capture<T>) have the same erasure
public static char capture(Capture<Character> captured) {
^
where T is a type-variable:
T extends Object declared in method <T>capture(Capture<T>)
6 errors
1 warning
make: *** [/home/jesco/android/system/out/host/common/obj/JAVA_LIBRARIES/android-mock-generatorlib_intermediates/javalib.jar] Error 41
make: *** Waiting for unfinished jobs....
[Samsung Galaxy Nexus] Carlos_Manuel:
I don't know..

try to build again by deleting JAVA_LIBRARIES folder and then do repo sync and build again

Also if you want you can check the java version to know is it caused by Java...

java -version
[Samsung Galaxy Nexus] -Jesco-:
got that fixed already :) thanks though !
[Samsung Galaxy Nexus] beekay201:
And...?

a maguro wrote this.
[Samsung Galaxy Nexus] -Jesco-:
it was java , accidentally downloaded JRE7 instead of JRE 6
[Samsung Galaxy Nexus] Carlos_Manuel:
OK :good: !
[Samsung Galaxy Nexus] Carlos_Manuel:
Hey bk201doesntexist!

I have just a quick question.. :D

Isn't android-4.2.2_r1.2b newer than android-4.2.2_r1.2 ?

If yes then why its build ID is JER09? Is it still JDQ39E or another build? :confused:
[Samsung Galaxy Nexus] beekay201:
Umm.. The "E" comes after the "D" in my alphabet?

a manta wrote this.
[Samsung Galaxy Nexus] MBQ_:
Hahahahahahahahha
[Samsung Galaxy Nexus] beekay201:
:p

manumanfred, it happens! ;)

a maguro wrote this.
[Samsung Galaxy Nexus] jaizero:
[Q] Cherry picking and Github commits

I realize there are several resources out there to explain how cherry picking and using Github commits is done but as a relative newb following the instructions is nearly impossible. I am completely familiar with building AOSP from source as I have done it several times. With that said, a few days ago I noticed that Onskreen released the source code for Cornerstone on their website and consequently, on Github. I would like to try to build Cornerstone into an AOSP ROM for the Verizon Gnex. I realize that due to limited screen real estate this may not be practical, however, I would like to learn how to use Github to add features to my ROMs. If someone could be so kind as to do a step by step tutorial on how to include the code from here : https://github.com/Onskreen/cornerstone into the AOSP ROM source I would be beyond ecstatic and would be more than happy to click that "Thanks" button for you. Also, maybe a brief rundown on the procedure to add features from other ROMs (i.e. quick toggles, fast charge, etc.) from cherry picks to an AOSP build would be greatly appreciated as well. I know there are many young developers out there that would benefit from a comprehensive (but newb friendly) guide to cherry picking and using Github.

Thanks for looking and have a blessed day!

Justin

Edit: It would appear that there are patch files found here - https://github.com/Onskreen/cornerstone/wiki/Getting-Started:Developers

Perhaps only these files need to be patched into AOSP. How is this done?
[Samsung Galaxy Nexus] jboyer0000:
Anyone compiling with Ubuntu 13.04? I can't seem to find a working java 6 anywhere
[Samsung Galaxy Nexus] jjhiza:
Try this thread. It's specifically for 13.04, and I'm compiling successfully using the guide (with a few minor adjustments). :thumbup:

http://xdaforums.com/showthread.php?t=2224142
[Samsung Galaxy Nexus] jaizero:
I can verify that that repository and version of Java works. :good:
[Samsung Galaxy Nexus] jboyer0000:
That's actually the guide I was following but java 6 is just not working:p back at it tonight :D
[Samsung Galaxy Nexus] jjhiza:
Sometimes a Ubuntu update will also update Java. Just purge icedtea again, and you should be good to go. Just run "java -version" afterwards to verify that you've got the right one, otherwise, just reinstall Java. :thumbup:
[Samsung Galaxy Nexus] jaizero:
I would personally do the 2 Sudo commands separately.

Sudo apt-get update - let it update

Sudo apt-get install oracle-java6-installer - let it install

I had some serious problems last weekend finding a repository that actually had java still in it lol.. WebUpd8Team was the only one that worked for me. :fingers-crossed:
[Samsung Galaxy Nexus] beekay201:
Why don't you guys keep the .deb files once you get them? Doesn't apt allow you to keep them (download only)?

a maguro wrote this.
[Samsung Galaxy Nexus] jboyer0000:
I'm not that smart;)
[Samsung Galaxy Nexus] beekay201:
'man apt-get'

a maguro wrote this.

edit: 'apt-get -d install package_names' should do it.
[Samsung Galaxy Nexus] jaizero:
I might consider doing that now. :good: I did a clean, fresh, install of 13.04 on a new hard drive I picked up last week (which was a PITA, but that's another story). I had a cheat sheet with all the repositories I use but I somehow lost it. :crying: So, I had to find a working Java repository which these days seems harder and harder to find. :laugh:
[Samsung Galaxy Nexus] djmatt604:
Quick one for you guys... Building aosp 4.2.2 for the galaxy tab 10.1. Build finishes but no boot past gtab logo. Logs arent shpwijg me much and im trying stuff but i noticed when comparing to an ICS build that did boot for me that i have no libext2xx.so files in my 4.2.2 build. The source is there but it looks like it just didn't build those libs. Is the proper solution to add the path to external/e2fsprogs in the build/core/main.mk file or should i be trying something else? Thanks for your time and thoughts!

Sent from something Infamous.
[Samsung Galaxy Nexus] MBQ_:
Make sure the kernel and proprietary files are in your manifest.
[Samsung Galaxy Nexus] djmatt604:
I have diffed my proprietary file list to that which I used when I successfully built ICS, and see no discrepancies.... I have also compared my device tree and vendor blobs and no difference there which would be related to this either. Not sure why these .so files simply are not building. I have tried using older e2fsprogs files but cannot build with them.

The exact files that appear to be missing from the build are

libext2_blkid.so

libext2_com_err.so

libext2_e2p.so

libext2fs.so

libext2_profile.so

libext2_uuid.so

The kernel is building with the ROM, it is actually prebuilt in the device tree i am using and targeted in the device makefile so that is not the issue. I have added external/e2fsprogs as a subdir in the build/core/main.mk file but in diffing against the ICS main.mk the path was not there either so I doubt that would help. Any other things I can check?

Sent from my Infamous Tab....