yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] yogi2010:
Re: [HOWTO] Build CM10.1 for Nexus 7

No problem. Yeah sorry, i wasn't sure if that was clear. But when you repo sync again, it should tell you that you should update soon, and then it gives the command to enter in order to accomplish that.. you can quickly copy that command, then paste it into the command prompt, and that will take care of it. (it starts with the command cp, I can't remember the exact syntax or i would just tell you so could type it in lol.)

Or you could go into your source folder, press Ctrl + h to expose hidden folders, go into .repo/repo and copy the new repo script that's in there, then overwrite the old repo in your /home/user/bin folder with the new one you just copied. I hope this helps haha.
[Nexus 7 Android Development] TheDarkDefender:
Re: [HOWTO] Build CM10.1 for Nexus 7

Got it, thanks man.

Sent from my Nexus 7
[Nexus 7 Android Development] TheDarkDefender:
Re: [HOWTO] Build CM10.1 for Nexus 7

Aaah. Completed my first build from source. My god,the satisfaction! Even a couple of h**kers for free can't satisfy you more. Lol.

Thanks a lot to everyone who helped me, especially fattire for his awesome tutorial and yogi2010 for guiding me through it.

Its bragging time now! :)
[Nexus 7 Android Development] fattire:
Re: [HOWTO] Build CM10.1 for Nexus 7

Congrats! And h**kers... That's "hackers", right?

Seriously... Congrats again.
[Nexus 7 Android Development] TheDarkDefender:
Haha. Hackers..right :)

A question: I'm getting this warning kinda frequently.

Is it a problem?
[Nexus 7 Android Development] .torrented:
no its not a problem
[Nexus 7 Android Development] benbailey84:
Re: [HOWTO] Build CM10.1 for Nexus 7

Tried today and I got a build. Dunno what I did differently
[Nexus 7 Android Development] TheDarkDefender:
Re: [HOWTO] Build CM10.1 for Nexus 7

What do i do if I'm building for another device and repo syncing from another source?

How do I differentiate between the two repos synced on my drive? Should i create a separate folder/dir ?

Sent from my Nexus 7
[Nexus 7 Android Development] underwaterjr:
If you want to get rid of that warning you can always type

sudo rm -r ~/android/system/.repo/local_manifest.xml
[Nexus 7 Android Development] yogi2010:
Re: [HOWTO] Build CM10.1 for Nexus 7

Someone correct me if i'm wrong, but i would think you just use the same overall source folder, but choose the new device at the 'lunch' menu. It will then download the files for that device, then you get-prebuilts, extract-files into the folder of the new device, and then 'brunch <new device>'.
[Nexus 7 Android Development] sporkette:
Re: [HOWTO] Build CM10.1 for Nexus 7

That would be correct. I've built for my gn and for my n7 both from the same sources doing it basically that way.
[Nexus 7 Android Development] hallowed.mh:
Re: [HOWTO] Build CM10.1 for Nexus 7

I built for my wife's n7 Tuesday, flashed, and all was well. Then she installed a live wallpaper app from the play store... She played around with it, then tried to change her wallpaper back to what she had it on, and got a black background. It looks like it would if you select "no wallpaper". The only thing I can get to show up are other live wallpapers. No gallery images, stock wallpapers, etc. I've uninstalled the wallpaper app, rebooted, stopped running processes, wiped Dalvik and cache, and dirty flashed my build, but to no avail.

Could this be a bug in my CM build, or did that app possibly break something? And is there something else I could try short of a full wipe and reflash?
[Nexus 7 Android Development] TheDarkDefender:
Re: [HOWTO] Build CM10.1 for Nexus 7

At the end of a build i get this prompt in red (multiple repetitions ) ::

but the build completes successfully.

What do these mean?

Is it a problem?

Edit.

Solved it
[Nexus 7 Android Development] bertbusdriver:
warning: [options] bootstrap class path not set in conjunction with -source 1.5

1 warning

external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/JCEDHPublicKey.java:24: error: error while writing JCEDHPublicKey: No space left on device

public class JCEDHPublicKey

^

collect2: ld returned 1 exit status

make: *** [/home/kevhsu/android/system/out/host/linux-x86/obj/lib/libbcc.so] 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.

1 error

make: *** [/home/kevhsu/android/system/out/host/common/obj/JAVA_LIBRARIES/bouncycastle-hostdex_intermediates/classes-full-debug.jar] Error 41

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

1 warning

any idea what that message at the end of compilation might mean? I'll probably start again from scratch tomorrow

EDIT: My problem might be fixed. Just used this guide to properly configure: http://xdaforums.com/showthread.php?t=2043285
[Nexus 7 Android Development] fattire:
I'm guessing you have run out of space.

try the df command.
[Nexus 7 Android Development] bertbusdriver:
Indeed. I have run out of space. I did a fresh install of Ubuntu 12.10 on a 40 GB partition since my laptop only has a 128 GB partition. DIdn't install anything extraneous.

my '~/android' folder is 29.6 GB after a few hours of trying to build and then failing because of running out of space. Does that seem about right/close? '~/android/system/out/host' is 6.6 GB while system/out/target is 5.2
[Nexus 7 Android Development] azoller1:
ok so i got ubuntu 12.10 on a live cd and booted up and then i click install ubunut, and then what do i do next? i want to install ubuntu alongside windows, so 100gb to ubuntu and then the rest to windows, and last time i screwed up and deleted all of my stuff on windows cause i dont know which partiotion to format
[Nexus 7 Android Development] TheDarkDefender:
Re: [HOWTO] Build CM10.1 for Nexus 7

In control panel inside windows, search for 'create and format disk....' Something like that. Click on it. Now select the drive you want to partition. Right click,shrink volume. Enter the required size for ubuntu. Hit ok. Now it is unallocated. Let it remain so. Now boot up from a live cd/usb. From here it is just like 'next-next-next' ... Ubuntu will install on the unallocated partition by default.

Sent from my Nexus 7
[Nexus 7 Android Development] azoller1:
hmmm looks like i already have an unallocated space, will ubuntu go to that space?

like this: https://www.box.com/s/z0l6peuu4t799c77too8
[Nexus 7 Android Development] TheDarkDefender:
Re: [HOWTO] Build CM10.1 for Nexus 7

Yes.

Sent from my Nexus 7
[Nexus 7 Android Development] azoller1:
yay i finally got ubuntu running how i want it to! thanks darkdefender now some building
[Nexus 7 Android Development] TheDarkDefender:
Re: [HOWTO] Build CM10.1 for Nexus 7

Glad I could help

Sent from my Nexus 7
[Nexus 7 Android Development] bertbusdriver:
How much space needs to be partitioned for Ubuntu 12.10 to install SDK, other necessary stuff, then build cm10.1? I ran out of space with a 40 GB partition, but perhaps I made some mistakes. I'm trying to use the bare minimum amount of space because my laptop only has a 128 GB SSD for now
[Nexus 7 Android Development] azoller1:
Re: [HOWTO] Build CM10.1 for Nexus 7

I got cygwin to repo sync but it had errors any one know how I can fix it?
[Nexus 7 Android Development] lebrac:
R: [HOWTO] Build CM10.1 for Nexus 7

It started compiling when suddenly ubuntu shuts down because of the high temperature reached o.O!

Ok, it's a notebook but a quite recent one! i5 with 8gb ram...

Inviato dal mio Nexus 7 con Tapatalk HD
[Nexus 7 Android Development] .torrented:
Re: [HOWTO] Build CM10.1 for Nexus 7

What temps did it reach when that happened? My i5 laptop doesn't shut down until its like 105c haha

---------- Post added at 10:33 AM ---------- Previous post was at 10:32 AM ----------

If your on Ubuntu aren't use just using the terminal?
[Nexus 7 Android Development] lebrac:
R: [HOWTO] Build CM10.1 for Nexus 7

98c!! :(

Inviato dal mio Nexus 7 con Tapatalk HD
[Nexus 7 Android Development] DJLamontagneIII:
Re: [HOWTO] Build CM10.1 for Nexus 7

Great tutorial man I'm new at building and finally got a few builds to compile even cherry picked some stuff but was wondering if its possible to add commits from aokp to the build or if that would bork everything thanks :D
[Nexus 7 Android Development] bradman117:
Need help!!!!

im here:

i keep getting this...

bradley@Bradleys-laptop:~/android/system$ repo sync

... A new repo command ( 1.18) is available.
... You should upgrade soon:

cp /home/bradley/android/.repo/repo/repo /home/bradley/bin/repo

Fetching projects: 100% (352/352), done.
info: A new version of repo is available

object 91f011ab0df9e1aa215e39b424c9ce2614bae50e
type commit
tag v1.12.1
tagger Conley Owens <cco3@android.com> 1360088708 -0800

repo 1.12.1

gpg: Signature made Tue 05 Feb 2013 11:25:08 AM MST using RSA key ID 338871A4
gpg: Can't check signature: public key not found
[COLOR="Red"][B]error: could not verify the tag 'v1.12.1'[/B][/COLOR]

[B][COLOR="red"]warning: Skipped upgrade to unverified version[/COLOR][/B]
[Nexus 7 Android Development] randomblame:
run this

repo selfupdate --no-repo-verify
[Nexus 7 Android Development] bradman117:
Re: [HOWTO] Build CM10.1 for Nexus 7

I will give it a try in the morning and report back, thanks
[Nexus 7 Android Development] #define:
Re: [HOWTO] Build CM10.1 for Nexus 7

For the get-prebuilts script, try running this instead of the code you are running...

$ . get-prebuilts

If even this don't work, then try running the script manually, double clicking it and then selecting "Run in Terminal"..

You may have to change its permissions to allow it to execute...
[Nexus 7 Android Development] TheDarkDefender:
is the kernel tutorial in your sig for all devices?
[Nexus 7 Android Development] #define:
Re: [HOWTO] Build CM10.1 for Nexus 7

Yes... You just have to take sources for your device, instead of the one specified in the tutorial.. Rest all applies to all android devices...

Sent from my Nexus 7
[Nexus 7 Android Development] bradman117:
Re: [HOWTO] Build CM10.1 for Nexus 7

I'll give it a try and report back in 1-2hrs
[Nexus 7 Android Development] bradman117:
looks live everything is working!

Get prebuilt apps

cd ~/android/system/vendor/cm

then enter:

$ ./get-prebuilts

didnt work because the all the source i needed was not downloaded. aftr messing around i finally got it... hallaluya.. haha

---Edit---

Checking build tools versions...

************************************************************

You are attempting to build with an unsupported version

of java.

Your version is: java version "1.6.0_24".

The correct version is: Java SE 1.6 or 1.7.

Please follow the machine setup instructions at

https://source.android.com/source/download.html

I cant seem to install java... i did

$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
$ sudo apt-get update
$ sudo apt-get install sun-java6-jdk

i get

Reading package lists... Done
bradley@Bradleys-laptop:~/android/system$ sudo apt-get install sun-java6-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-jdk is a virtual package provided by:
oracle-java8-installer 8b76-0~webupd8~0
oracle-java6-installer 6u39-0~webupd8~0
oracle-java7-installer 7u13-0~webupd8~0
You should explicitly select one to install.

[B][COLOR="Red"]E: Package 'sun-java6-jdk' has no installation candidate[/COLOR][/B]

NVM .... Got it!

http://www.unixmen.com/howto-install-oracle-java-7-jdk-jre-in-ubuntu-12-10-quantal-quetzal-ppa/

---------- Post added at 05:27 PM ---------- Previous post was at 04:35 PM ----------

sorry last question guys! xD

Time to start building! So now type:

$ croot
$ brunch grouper

What i did in terminal:

bradley@Bradleys-laptop:~/android/system/out/target/product/grouper$ crootbradley@Bradleys-laptop:~/android/system$ brunch grouper
including vendor/cm/vendorsetup.sh
Looking for dependencies

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.1
TARGET_PRODUCT=cm_grouper
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.5.0-23-generic-x86_64-with-Ubuntu-12.10-quantal
HOST_BUILD_TYPE=release
BUILD_ID=JOP40G
OUT_DIR=/home/bradley/android/system/out
============================================

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.1
TARGET_PRODUCT=cm_grouper
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.5.0-23-generic-x86_64-with-Ubuntu-12.10-quantal
HOST_BUILD_TYPE=release
BUILD_ID=JOP40G
OUT_DIR=/home/bradley/android/system/out
============================================
[B][SIZE="4"][COLOR="Red"]find: `src': No such file or directory[/COLOR][/SIZE][/B]
build/core/base_rules.mk:130: *** system/bluetooth/bluedroid: MODULE.TARGET.SHARED_LIBRARIES.libbluedroid already defined by bluetooth/bluedroid. Stop.

Is "find: `src': No such file or directory" Bad?
[Nexus 7 Android Development] #define:
Re: [HOWTO] Build CM10.1 for Nexus 7

I also get find src errors in the very first line when building for a different device.. But the build doesnt stop.. Your error seems to be the next line...

No need to woory about that src error... :D

Sent from my Nexus 7
[Nexus 7 Android Development] bradman117:
then does that mean it made a build? a flashable zip? i dont seem to find it... in my /home/bradley/android/system/out it shows 3 files and a target folder
[Nexus 7 Android Development] fattire:
Sounds like something broke.. what's at the end of your build?
[Nexus 7 Android Development] #define:
Re: [HOWTO] Build CM10.1 for Nexus 7

No.. You dont have a build... Even on a powerful machine, compiling a rom takes atleast 15-20 mins... My laptop churns 1 out at the end of 6 hours...

Sent from my Nexus 7
[Nexus 7 Android Development] bradman117:
so what have i done wrong? im confused now.. i just finally got the sources to download and i connected my n7 to pc at one point. was tryin to go with cm10.1 for grouper
[Nexus 7 Android Development] TheDarkDefender:
Re: [HOWTO] Build CM10.1 for Nexus 7

Guys. I have been trying to build for a couple of days. The build completes,but the build date i get is Feb 10th. This is for another device(haida). Does that mean no new commits have been made yet?
[Nexus 7 Android Development] leventccc:
Build Problem

I can build cyanogenmod without merging anything i did 5 times but I still can't compile with merging some open commits. I use vmware workstation 8 intel i7 2675qm and my vmware preferences are

2 CPU and 4 Core Per Cpu

5980 MB RAM (Vmware says its maximum recommended memory i have 8gb total)

This is how I build without any manual merging

cd /android/system/vendor/cm
./get-prebuilts
cd ..
cd ..
. build/envsetup.sh
croot
repo sync -j16
brunch grouper

It works everytime.

This is how I do it with some merging

cd /android/system/vendor/cm
./get-prebuilts
cd ..
cd ..
. build/envsetup.sh
croot
repo sync -j16
cd frameworks/base
git fetch http://review.cyanogenmod.com/CyanogenMod/android_frameworks_base refs/changes/05/21005/11 && git checkout FETCH_HEAD
cd ..
cd ..
cd device/asus/grouper
git fetch http://review.cyanogenmod.com/CyanogenMod/android_device_asus_grouper refs/changes/17/22317/1 && git checkout FETCH_HEAD
cd ..
cd ..
cd ..
cd packages/apps/Settings
git fetch http://review.cyanogenmod.com/CyanogenMod/android_packages_apps_Settings refs/changes/06/21006/2 && git checkout FETCH_HEAD
cd ..
cd ..
cd ..
brunch grouper

Merged one takes almost same time but never finishes and gives some errors I don't remember the errors but I'm building a merged one right now and comment errors soon as compile finishes.
[Nexus 7 Android Development] Vrekk:
Thing is I've had kmod (module-init-tools) installed since I installed the base system. I tried again with the lib32-kmod installed thinking it might be a 64 bit issue somewhere but it didn't help. I'm thinking I'll set up a virtual machine or a chroot or something to build it off of. Any specific distro I should use? Ubuntu seems to be a OS of choice for this but should I use 12.04 or an earlier version? Apparently I'm missing something on archlinux and maybe a side by side with a machine that works will help me figure it out.

I think the error about needing to install module-init-tools is because when the depmod failed i think the build assumed it was a command not found error, or something like that, rather than the ge664b9b thing not existing.
[Nexus 7 Android Development] fattire:
As I said above, I'm using Ubuntu 12.04, 64-bit... that should work without any problems.
[Nexus 7 Android Development] leventccc:
Here is the error that I was talking about here
[Nexus 7 Android Development] fattire:
For help, you need to scroll back up and find the line with the actual error and pastebin it... also try googling the error first to see if anyone else has had this issue and maybe knows what the fix is :)
[Nexus 7 Android Development] kirdroid:
@fattire - Do you know why build date is not changing and also the rom's zip file name is also not changing.

I'm doing the below:

cd android/system

repo sync -j4

brunch grouper

Everything builds fine but the build date on my tablet show Aug 26th and the zip file still says cm-10-20120827...it said the same yesterday as well. Am i doing something wrong?
[Nexus 7 Android Development] fattire:
Nope, nothing wrong. The build date will be reset to current if you do a make clobber.
[Nexus 7 Android Development] mynamesriz:
OSX 10.8?

Hi,

Has anyone successfully built this on OSX Mountain Lion?

Whenever I try I get the following error.

Note: Recompile with -Xlint:deprecation for details.

target Java: VideoEditor (out/target/common/obj/APPS/VideoEditor_intermediates/classes)

target Java: VisualizationWallpapers (out/target/common/obj/APPS/VisualizationWallpapers_intermediates/classes)

make[1]: *** [sub-make] Error 2

make: *** [TARGET_KERNEL_BINARIES] Error 2

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 or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

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.

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

Note: Recompile with -Xlint:deprecation for details.

DroidDoc took 11 sec. to write docs to out/target/common/docs/api-stubs

Is 10.8 even compatible?

Any help will be much appreciated.
[Nexus 7 Android Development] h00py:
I am not an expert but this guy seemed to have a similar problem, try his solution.

http://xdaforums.com/showpost.php?p=30533797&postcount=35
[Nexus 7 Android Development] eyeballer:
Your issue is because you are "checking out" at the change instead of "cherry-picking" the change.

"git checkout FETCH_HEAD"

When you copy/paste the commit, you need to select "cherry-pick" on gerrit (right above the line you copy) before copying then it will say:

"git cherry-pick FETCH_HEAD"

Then you should be all set :)
[Nexus 7 Android Development] sam3000:
You can also do:

rm -rf out/target/product

...and rebuild if you want the current date without rebuilding everything.
[Nexus 7 Android Development] Vrekk:
Woot! I got it to build. Idk why it didn't work arch but it built in the Ubuntu vm just fine. Thanks fat tire! I'm gonna play with cherry picking then writing some of my own stuff and finally actually submiting my code for review and giving back to the people who have gave me so much already.:highfive:
[Nexus 7 Android Development] fattire:
Thank you back and congratulations!
[Nexus 7 Android Development] porcupine02:
To build on Arch you need to symlink out/target/product/grouper/system/usr/lib/ to out/target/product/grouper/system/usr/lib/.

ln -s /home/brett/External-Storage/ANDROID-CODE/out/target/product/grouper/system/lib/ /home/brett/External-Storage/ANDROID-CODE/out/target/product/grouper/system/usr/lib/
[Nexus 7 Android Development] tr1gg3r.man:
Can someone possibly email me a copy of the "How To Build CM10 Instructions For The Nexus 7" doc thats located on google docs, not sure if I can't access it cause of work, or if it's no longer on google docs? Please feel free to email me a copy: admin (AT) ex-its.com

Thanks so much, I greatly appreciate it! Hope you have a wonderful day!
[Nexus 7 Android Development] tr1gg3r.man:
Thanks h00py, I appreciate you emailing me the doc =]
[Nexus 7 Android Development] mynamesriz:
Thanks, I gave it a go but it didn't work I setup a VM on it instead and built a ROM successfully today the downside is that it took 2 and a half hours. :-/

My desktop can do it in 25 minutes.

I gave my VM half my of my MBP's resources which really slows everything down too. oh well, I guess I'll just have to live with it for now, I'll see if it improves when I receive my new set of RAM in the next few days.

:fingers-crossed:
[Nexus 7 Android Development] h00py:
Sucks :( You thought about dual booting with osx and Ubuntu?
[Nexus 7 Android Development] fattire:
do we need local_manifest.xml ?

Can someone who's doing a build try something for me?

If you look early in the thread, we're using the .repo/local_manifest.xml file as sort of a cheat because at the time I originally wrote this, the grouper device/asus/grouper and kernel/asus/grouper folders weren't showing up for some people.

Can some brave soul (who has already built successfully-- don't wan to trip anyone up who's building now for the first time) remove or rename the local_manifest.xml and go back to the root of the build folder with croot, then do "brunch grouper"? (alternately you can probably choose cm_grouper-userdebug from the lunch menu.

If it's working, it should automatically download the device (grouper) specific folders without needing the local_manifest.xml file to explicitely name them. If it doesn't work, try repo syncing and see if that does anything.

Let me know if it works. If so, we can get rid of one step in the build instructions.

Thanks and thanks to cdesai for suggesting to get rid of it.
[Nexus 7 Android Development] h00py:
Builds fine without the local_manifest.xml for me :)

(Deleted the device/asus folder too just to be safe, lol)
[Nexus 7 Android Development] #define:
Re: [HOWTO] Build CM10.1 for Nexus 7

If you do make clobber before starting a new build, the build date wil change to the day you make a fresh build...

Sent from my Nexus 7
[Nexus 7 Android Development] TheDarkDefender:
Re: [HOWTO] Build CM10.1 for Nexus 7

Okay. Thanks.

Make clean is also fine right?
[Nexus 7 Android Development] .torrented:
It takes time, I would recommend to watch a movie while it goes :)

35~40 Minues on my baby :) (It would go faster if I used my SSD but I don't.)

The only part you need your device connected is when you need to get the proprietary blobs (cd ~/android/system/device/asus/grouper/) then "./extract-files.sh" I believe that is the command (Please refer to the Cyanogenmod wiki for this)

yea you gotta " make clobber " or " make clean " then " . build/envsetup.sh " and finally " brunch grouper "

hopes this helps

on a side note for the people building (that haven't make a .zip yet) It will take lots of time (for slower computers that is) im guessing for laptops that are dual and quad core 4~8GBs ram are gonna take around 3~7 hours depending on your system and what kind of storage you are using (HDD vs SSD) so be patient (your laptop might even over heat some do) but if you finish you will get something at the end of the terminal saying

TADA you've made your ROM