yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Android Development] Zeljko1234:
Thank you very much for your patient answers :)

I don't have such file or directory but I didn't try to build twrp although I use it. It was flashed during unlocking and I updated it recently. I pulled blobs from my nexus running early CM11 build but replaced later with new ones.

How could I correct this error?
[Nexus 7 Android Development] PerCompLLC:
If I could "thank" you more than once I would!!!
[Nexus 7 Android Development] jgramkow:
First, fattire, thank you for this!

Second;

having trouble with the following error:

any ideas?
[Nexus 7 Android Development] jgramkow:
Found it here. Just not understanding what change needs to take place.
[Nexus 7 Android Development] koko98:
Should I clear ccache before building for other devices?

Enviado desde mi LT30p mediante Tapatalk
[Nexus 7 Android Development] underwaterjr:
I haven't and things built fine. Not sure if that's the right way to do it though.
[Nexus 7 Android Development] Sym_Link:
I build for 3 different devices and rarely clear ccache. Only clear it if switching major trees. IE cm 10.2-->cm 11. I have never had a problem. If I did clear it for each device I build for it would really be useless to use it at all.
[Nexus 7 Android Development] fourlans:
I'm getting the following message

make: *** No rule to make target `vendor/asus/grouper/proprietary/btmacreader', needed by `/home/john/android/system/out/target/product/grouper/obj/EXECUTABLES/btmacreader_intermediates/btmacreader'. Stop.

just before the 'brunch grouper' command finishes, after running for nearly an hour.

I've re-run all the installation instructions from the start 3 times and it stops at the same point each time

If it helps, here's the contents of the $OUT directory

-rw-r--r-- 1 john john 37482 Nov 30 12:33 clean_steps.mk

drwxr-xr-x 4 john john 4096 Nov 29 20:02 external

drwxr-xr-x 14 john john 4096 Nov 30 11:46 obj

-rw-r--r-- 1 john john 757 Nov 30 12:33 previous_build_config.mk

drwxr-xr-x 3 john john 4096 Nov 30 11:46 recovery

drwxr-xr-x 8 john john 4096 Nov 30 13:07 root

drwxr-xr-x 3 john john 4096 Nov 30 11:02 symbols

drwxr-xr-x 7 john john 4096 Nov 30 11:46 system

Can anyone shed any light on what is causing this error ?
[Nexus 7 Android Development] AndDiSa:
Do you have installed / extracted the grouper binary files?
[Nexus 7 Android Development] Zeljko1234:
You need btmacreader. You can find it at Muppet repository. Just download and copy to right folder.

https://github.com/TheMuppets/proprietary_vendor_asus/tree/cm-10.1/grouper/proprietary
[Nexus 7 Android Development] fourlans:
Yes, I've I think so
[Nexus 7 Android Development] Zeljko1234:
Just check your /home/john/android/system/vendor/asus/grouper/proprietary/ for this file ;)
[Nexus 7 Android Development] fourlans:
I added the file that you suggested in an earlier post into this directory and it seems to have solved the problem with btmacreader

But now i'm getting a simialr error for 'tf_daemon'

As per AndDiSa's suggestion, I re-extracted the proprietary blobs and I can see that tf_daemon is not being found in /system/bin/tf_daemon on the Nexus 7

Any more suggestions please
[Nexus 7 Android Development] Zeljko1234:
So again, put the file from attachment to the right folder (/home/john/android/system/vendor/asus/grouper/proprietary/). It's kind a dirty way but it works :)
[Nexus 7 Android Development] fourlans:
Yes that worked. Thank you again. I'm now running my own build on my Nexus 7 :D

I'm puzzled that I've had to do this for these 2 files when it appears from fattyre's guide and the posts in this thread that no one else has had this problem.

Do you have any suggestions what I've not done right for this to come about.

Also

I appear to have 2 zip files in the $OUT folder

cm-11-20131130-UNOFFICIAL-grouper.zip

and

cm_grouper-ota-aa9f268026.zip

Both are the same size. What's the second one ?
[Nexus 7 Android Development] Zeljko1234:
I don't know which rom you had on your device when you pooled files. Could be that files wasn't there or something wrong with scripts.

According "ota" in the name, second one is for over the air update which CM supports.

fattire is more competent to answer both questions. I just found workaround :)
[Nexus 7 Android Development] GeyerA:
No Radio / Baseband

Hello guys, since I always got good help here I want to post a question which is not connected to building CM 11. I compiled AOSP for the Mako (4.4) and now for Hammerhead but the version for the Hammerhead turns out to have a broken radio after flashing it on top of the factory image. There is basically no baseband version (unknown). Does anybody have an idea what goes wrong when I compile for the Hammerhead (Mako is fine...)? I also got all vendor binaries in the tree... Thanks !
[Nexus 7 Android Development] fattire:
Arriving tonight....

Details here.
[Nexus 7 Android Development] jblazea50:
IT HAS ARRIVED
[Nexus 7 Android Development] sparksco:
Funny to see the ROM sizes go from 147mb to 187mb. So we're downloading 40+mb every ROM? Why?
[Nexus 7 Android Development] koko98:
I have commited some changes to CyanogenMod gerrit. These changes fix kernel compiling with linaro 4.7. Let's see if they accept them.

Thanks to [MENTION=3041959]fattire[/MENTION] for linking me to a solution

Enviado desde mi LT30p mediante Tapatalk
[Nexus 7 Android Development] Old-school:
So I tried this on the N7 2013 by using the vold file from CM 10.2 (OTG used to work perfectly on 10.2). While it was completely broken on CM11, now it at least recognizes that something is plugged in, but still does not mount any usb disks. Any idea on some other files I can try swapping out to get it to work? Since avia added chromecast support yesterday, OTG would make the N7 FHD a great streaming accesory.
[Nexus 7 Android Development] webdroidmt:
Here's a link to someone who got it working with N7 flo by changing out the vold binary, he also mentions something about busybox in the updater script. I honestly don't know what that's about, maybe you can PM him?

http://xdaforums.com/showpost.php?p=48200201&postcount=4

Also as of 12/07, I guess coinciding with 4.4 going to 4.4.1, it seems that the ramdisk in CM's stock kernel is not working with the vold fix for OTG. At least this is the case with N7 grouper, don't know about flo. So, you may want to try another custom kernel with its own ramdisk that is/was compatible with CM.

Good luck,

Mike T
[Nexus 7 Android Development] JLow0214:
Build Error

I have been reading this thread and a couple others to build CM11 for my grouper. I got everything setup, the environment, source, proprietary blobs, kernel, and recovery.So i run brunch grouper and it builds for a little bit and throws this same error every time. Sorry its quite a bit of text. If anyone has any suggestions i could try it would be much appreciated.

Install: /home/jlow/source/out/target/product/grouper/root/property_contexts

/home/jlow/source/out/host/linux-x86/bin/checkseapp -p /home/jlow/source/out/target/product/grouper/obj/ETC/sepolicy_intermediates/sepolicy -o /home/jlow/source/out/target/product/grouper/obj/ETC/seapp_contexts_intermediates/seapp_contexts /home/jlow/source/out/target/product/grouper/obj/ETC/seapp_contexts_intermediates/seapp_contexts.tmp

host Executable: minigzip (/home/jlow/source/out/host/linux-x86/obj/EXECUTABLES/minigzip_intermediates/minigzip)

Install: /home/jlow/source/out/target/product/grouper/recovery/root/sbin/parted

/home/jlow/source/out/host/linux-x86/obj/EXECUTABLES/minigzip_intermediates/src/test/minigzip.o: file not recognized: File truncated

collect2: ld returned 1 exit status

build/core/host_executable.mk:31: recipe for target '/home/jlow/source/out/host/linux-x86/obj/EXECUTABLES/minigzip_intermediates/minigzip' failed

make: *** [/home/jlow/source/out/host/linux-x86/obj/EXECUTABLES/minigzip_intermediates/minigzip] Error 1

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

jlow@Overclockin:~/source$ cd $OUT

jlow@Overclockin:~/source/out/target/product/grouper$ ls

clean_steps.mk external obj previous_build_config.mk recovery root system

jlow@Overclockin:~/source/out/target/product/grouper$
[Nexus 7 Android Development] Zeljko1234:
Do you have installed all dependencies? From this and from Android guide. How much primary memory and swap do you have?
[Nexus 7 Android Development] mdowns989:
CM11

Export includes file: external/srec/audio/AudioIn/UNIX/src/Android.mk -- /home/mdowns989/android/system/out/target/product/flo/obj/SHARED_LIBRARIES/libSR_AudioIn_intermediates/export_includes

Notice file: external/srec/audio/AudioIn/UNIX/src/NOTICE -- /home/mdowns989/android/system/out/target/product/flo/obj/NOTICE_FILES/src//system/lib/libSR_AudioIn.so.txt

make: *** No rule to make target `vendor/asus/flo/proprietary/lib/libacdbloader.so', needed by `/home/mdowns989/android/system/out/target/product/flo/system/lib/libacdbloader.so'. Stop.

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

Notice file: external/srec/portable/NOTICE -- /home/mdowns989/android/system/out/target/product/flo/obj/NOTICE_FILES/src//system/lib/libESR_Portable.a.txt

can anyone tell me what is causing this error?
[Nexus 7 Android Development] MaceBewley:
[MENTION=3041959]fattire[/MENTION]

Any thoughts on this error? Setting up a new machine and probably forgot something simple...

http://pastebin.com/PpXyenPB

ETA Never mind must be a recent change, getting the same error on another machine (Known good). Will just wait till change is reverted.
[Nexus 7 Android Development] Screw Muggz:
Is SMS enabled in the overlays? I don't have my repo set up, still configuring a new machine. But the M2 snapshot allows for this, I just haven't found it in the settings yet. I was trying to set up SMS in the hangouts app.

And happy new year to all since it's been a while since I posted!
[Nexus 7 Android Development] alwaysadeel:
i am trying to build CM11 using this guide and CM wiki. i have virtualbox and ubuntu 12.04 on 4 GB intel core i5. virtual machine has 2GB RAM and 2GB swap file, 100 GB HDD. everything is setup , build continues normal using 1 GB or so RAM. kernel ,recovery, and system apps are created normally. but when it reaches this point

target SharedLib: libwebviewchromium (/home/ad/android/system/out/target/product/grouper/obj/SHARED_LIBRARIES/libwebviewchromium_intermediates/LINKED/libwebviewchromium.so)

RAM usage goes to maximum, swap file usage goes maximum, disk activity 100% . on checking system monitor process "ld.gold" is consuming all of it. nothing happens after that and i have to Control-C to abort with error

make: *** [/home/ad/android/system/out/target/product/grouper/obj/SHARED_LIBRARIES/libwebviewchromium_intermediates/LINKED/libwebviewchromium.so] Interrupt

can anybody help me out?? as to why it happens here ???
[Nexus 7 Android Development] Zeljko1234:
At this point, as you said, system utilized all available RAM and swap and if you wait long enough will kill some of processes (your compiling).

Solution? Increase RAM for guest or swap. In my experience, with 2GB of RAM, system needs about 3,5 GB of swap. Put 4 GB, just in case.
[Nexus 7 Android Development] alwaysadeel:
ok i will, but wondering it was using 1GB before,.. and then suddenly shoots up.
[Nexus 7 Android Development] Zeljko1234:
Just reached more memory demanding part of compiling.
[Nexus 7 Android Development] alwaysadeel:
thanx, doubling the swap did the trick. can u point me now to some tutorials on modifying ur build etc.
[Nexus 7 Android Development] Zeljko1234:
At the end of fattire's guide, you may find few links. For example, http://wiki.cyanogenmod.org/w/After_You_Build
[Nexus 7 Android Development] xperiafan13:
Please help e

IM HAVE THIS ERROR

target Strip: libwebviewchromium (/home/xperiafan13/android/system/out/target/product/kumquat/obj/lib/libwebviewchromium.so) prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7/bin/arm-linux-androideabi-strip:/home/xperiafan13/android/system/out/target/product/kumquat/symbols/system/lib/libwebviewchromium.so: File format not recognized make: *** [/home/xperiafan13/android/system/out/target/product/kumquat/obj/lib/libwebviewchromium.so] Error 1

?????? HOW TO FIX THIS??
[Nexus 7 Android Development] underwaterjr:
I made an .xml file to remove some packages I don't want and for some reason the last time synced it is no longer working, any ideas?

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remove-project name="CyanogenMod/android_packages_apps_Calendar" path="packages/apps/Calendar" />
<remove-project name="CyanogenMod/android_packages_apps_LockClock" path="packages/apps/LockClock" />
<remove-project name="CyanogenMod/android_packages_apps_Browser" path="packages/apps/Browser" />
</manifest>
[Nexus 7 Android Development] TheDarkDefender:
Try adding

remote=github revision=cm-11.0

In the end.

Sent from my Nexus 4
[Nexus 7 Android Development] underwaterjr:
Thanks I will give a try tonight.

Edit: I made those changes and it worked, thank you. Do you know why that changed and I need the revision?
[Nexus 7 Android Development] Boncey:
BtMacReader

Please delete, I made a bad bump.
[Nexus 7 Android Development] alwaysadeel:
wait until 4.4.3 transitions are complete :) , i would say

Sent from my Nexus 7
[Nexus 7 Android Development] AndDiSa:
Did you call

make clobber

before starting the build? A fresh development environment is needed for the first build of 4.4.3.
[Nexus 7 Android Development] katinatez:
yes, make clobber and make clean used both. Formatted the drive and re-installing everything again. Will keep you posted. Thanks
[Nexus 7 Android Development] katinatez:
Ok fresh install of Ubuntu 14.04 and new build envirement but no love with cyanogenmod build for 19300. here is another error in terminal. Can anyone point me in the right direction.

target Java: ThemeChooser (/home/katinatez/android/cyanogenmod/out/target/common/obj/APPS/ThemeChooser_intermediates/classes)
target Java: WallpaperCropper (/home/katinatez/android/cyanogenmod/out/target/common/obj/APPS/WallpaperCropper_intermediates/classes)
frameworks/ex/variablespeed/src/com/android/ex/variablespeed/EngineParameters.java:31: cannot access java.lang.Object
bad class file: java/lang/Object.class(java/lang:eek:bject.class)
unable to access file: corrupted zip file
Please remove or make sure it appears in the correct subdirectory of the classpath.
/*package*/ final class EngineParameters {
^
javax/annotation/concurrent/Immutable.class(javax/annotation/concurrent:Immutable.class): warning: Cannot find annotation method 'value()' in type 'java.lang.annotation.Target': bad class file: java/lang/annotation/Target.class(java/lang/annotation:Target.class)
unable to access file: corrupted zip file
Please remove or make sure it appears in the correct subdirectory of the classpath.
make: *** [/home/katinatez/android/cyanogenmod/out/target/common/obj/JAVA_LIBRARIES/android-ex-variablespeed_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
katinatez@x58:~/android/cyanogenmod$

My local manifetst is

<?xml version="1.0" encoding="UTF-8"?>

<manifest>

<project name="CyanogenMod/android_device_samsung_i9300" path="device/samsung/i9300" remote="github" revision="cm-11.0" />

<project name="CyanogenMod/android_device_samsung_smdk4412-common"path="device/samsung/smdk4412-common"remote="github"revision="cm-11.0" />

<project name="CyanogenMod/android_kernel_samsung_smdk4412" path="kernel/samsung/smdk4412" remote="github" revision="cm-11.0"/>

<project name="CyanogenMod/android_packages_apps_SamsungServiceMode" path="packages/apps/SamsungServiceMode" remote="github"revision="cm-11.0" />

<project name="CyanogenMod/android_hardware_samsung" path="hardware/samsung" remote="github" revision="cm-11.0"/>

</manifest>
[Nexus 7 Android Development] AndDiSa:
Do you have enough disk space available? What computer / OS are you using for compilation? 'Corrupted zip file' indicates to me, that there are some environmental problems (hard disk / file system corrupted?)
[Nexus 7 Android Development] katinatez:
Yes plenty of disk space have a kingston 240 GB SSD running dedicated Ubuntu 14.04. Fresh install of Ubuntu how would I check for system corruption?
[Nexus 7 Android Development] alwaysadeel:
what is the output of

java -version
[Nexus 7 Android Development] katinatez:
Java 1.6.0_45

Have not settled on distro Ubuntu is bloated, may try kubuntu. Just trying to learn how to build CyanogenMod.
[Nexus 7 Android Development] gee one:
Virtual Machine Performance

Has anyone compared different virtual machine performance?

I used to use virtualbox with 12.04 to build and each build would take about 40-45 mins. This was a 12.04 guest in a 12.04 host. I switched to debian wheezy and used qemu/kvm to build in a debian virtual machine and the build times are much faster, about 20-25 mins. Wheezy guest in a wheezy host. I'm not sure how much of this increase is from building in debian/wheezy versus building in a qemu virtual machine. I might have changed java versions too.

Does any have any experience or other data points?

BTW: Big thanks to fattire for putting this guide together, and all the previous ones for different phones. Ever since that guide for the mac, I've been building ever since. I even learned a few git commands to merge my own changes.
[Nexus 7 Android Development] katinatez:
Did another full wipe started over with another distro, Bbqlinux and was successful in compiling cm11 for i9300.
[Nexus 7 Android Development] shree_tejas:
Great!

Now its time to start finally :D
[Nexus 7 Android Development] Trafalgar Square:
Hi,

if I do a make clean my PC starts to build and it's not deleting all files...

http://xdaforums.com/showthread.php?p=30793697#post30793697

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=5.1.1

CM_VERSION=

TARGET_PRODUCT=full

TARGET_BUILD_VARIANT=eng

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a

TARGET_CPU_VARIANT=generic

TARGET_2ND_ARCH=

TARGET_2ND_ARCH_VARIANT=

TARGET_2ND_CPU_VARIANT=

HOST_ARCH=x86_64

HOST_OS=linux

HOST_OS_EXTRA=Linux-3.16.0-38-generic-x86_64-with-LinuxMint-17.2-rafaela

HOST_BUILD_TYPE=release

BUILD_ID=LMY48Y

============================================
[Nexus 7 Android Development] gee one:
Let it run until it completes- those are just the environment variables.

It will finish with something like "blah directory removed in 10:00"

make clean will delete some files, make clobber will delete the entire /out directory (takes 7-10 mins, depending on drive speed)
[Nexus 7 Android Development] mijiturka:
Just want to add for anyone who's finding this post through a search, make clean and make clobber are now (in Android 6.0.1) the same thing.

The recipes are

.PHONY: clean

clean:

[MENTION=1516568]rm -rf[/MENTION] $(OUT_DIR)/*

[MENTION=279333]ECHO[/MENTION] "Entire build directory removed."

.PHONY: clobber

clobber: clean

which means clobber just calls clean.

You could check for your own version by looking for clean/clobber in the main makefile, which is in build/core/main.mk .

(Mods are free to kill me now for necroposting)
[Nexus 7 Android Development] kumite2010:
Hey fattire (or anyone else capable of answering)

After successfully compiling for my Nexus7 (and even for my Evo4g) I decided to do a full wipe and upgrade to Ubuntu 12.04 from 10.04 since it seemed that everyone else was getting good results and of course I wanted the newest and shiniest version of the OS. I initially used 10.04 per Google's recommendation.

All was proceeding well with 12.04 until I got to Step 5: "Now ensure that your Nexus 7 is connected to your computer via the USB cable and that you are in the ~/android/system/device/asus/grouper directory..." I noticed that I didn't have an /asus/grouper directory! I've retraced all the steps of the tutorial several times including resyncing but I can't get the asus directory/sub-directory to install. As a last resort I even deleted the Android directory and started all over but again no /asus directory.

I know I'm probably missing something simple but for the life of me I can't seem to figure it out.

Thanks in advance
[Nexus 7 Android Development] Nark.GA60:
Did you do a

. build/envsetup.sh
lunch
[Nexus 7 Android Development] kumite2010:
That did it! I think here is where fattire made the new change. Previously I think we had to manually do it.

After your post I remembered about the update he made. Doh!

Thank you very much. All is well again
[Nexus 7 Android Development] z1gackly:
Anyone?

I'm also interested to know how to revert a cherry pick properly, rather than deleting the entire directory I dropped it in and re-syncing, which is my current workaround.
[Nexus 7 Android Development] Nark.GA60:
I just did a build for the wife's Nexus S and the build prop says this:

ro.modversion=10-20120907-UNOFFICIAL-crespo

That looks right? What does yours say?

I'd actually like to know how to specify something other than UNOFFICIAL.
[Nexus 7 Android Development] biohazrd51:
Edit: Giving advice on something you don't understand is a bad idea :P
[Nexus 7 Android Development] sparksco:
It's in vendor/cm/config/common.mk

https://github.com/pbeeler/android_vendor_cm/commit/2996f3e855667480b14000498dc65f88f15da6dd

But if you don't commit your changes you'll get sync errors on the next sync checkout. And even if you do commit your changes you'll still loose it on sync like a cherry-pick. Only way around this is to have your own vendor/cm repo and manifest.
[Nexus 7 Android Development] Stappern:
I've Just build forma my nexus 7 alla went well,but if i want Just add or remove apk,or change kernel?

Inviato dal mio Nexus 7 con Tapatalk 2
[Nexus 7 Android Development] raznalab:
Cherry pick questions

First off I'd like to thank fattire for this awesome guide. I woke up this morning to a successful first build, flashed it and so far its working great. I started reading about how to cherry pick from gerrit and I was able to do that, but how do you go about undoing a cherry pick? I read that you could delete the contents of the folder that pertained to that cherry pick and then repo sync again... is there a preferred method on how to go about undoing cherry picks?
[Nexus 7 Android Development] biohazrd51:
Ok, gonna reply with what I wiped out before :silly:

If I recall (and please someone correct me if I'm wrong) cherry picks are lost on your next repo sync.

I think they stick with the checkout command.
[Nexus 7 Android Development] splashd1:
Does the build include the Google Apps? I seem to remember that CM doesn't. If that's the case, where can I get the gapps for JB?

thanks,

Splashd
[Nexus 7 Android Development] sparksco:
No CyanogenMod ROMs do not / can not include gapps.

http://goo.im/devs/TeamAndroid/Nexus7/gapps/gapps-jb-20120906.zip
[Nexus 7 Android Development] kumite2010:
Well 12.04 is turning out to be a nightmare for me. After my last post when everything seemed to be straightened out my computer hard locked on me and I couldn't even reboot. I ended up having to reinstall 12.04 and redo everything.

Now when trying to repo sync I have repeatedly gotten this error message:

"Syncing work tree: 88% (272/308) error: revision refs/heads/jelly bean in CyanogenMod/android_prebuilt not found"

After googling, the error could be anywhere from permissions not set right to github being down. Most of the hits from google was about 8 months ago and none of the solutions were relevant in my case (one involved modifying the default.xml in .repo but after opening that file I don't think that looked right)

I've tried repo sync multiple times including plain "repo sync" to "repo sync -j1" all the way to -j16 and repo sync -f but still get that error.

any help would be appreciated. I'm so tempted to just go back to 10.04 but then again this is a really good learning experience and I would prefer to go forward rather than backwards.

Thanks in advance for any suggestions.