yashsingh1/xdaforums huggingface dataset:
[LG Optimus G (International)] Haze028:
I believe you will need different repo's, check out Team LGOG's github(https://github.com/TeamLGOG) They have device tree's for all variants, Chadouming is a member of that team and as such his CM10.1 uses those repo's. The local_manifest for Cyanogenmod in the OP should show you which repo's to use.... then depending on what rom you're looking to build some minor changes might be required.

I've not built using their repo's, but I'll help you in getting it all set up.
[LG Optimus G (International)] cdub50:
ok past the other error, but getting an error when trying to build the kernel.

make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/cdub/omni/kernel/lge/gee'
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....

doesnt give much detail any ideas on to why its failing?

Thanks for any help.

[EDIT]

ok getting this error again. Sigh

frameworks/av/media/libstagefright/ExtendedUtils.cpp: In static member function 'static void android::ExtendedUtils::setArbitraryModeIfInterlaced(const uint8_t*, const android::sp<android::MetaData>&)':
frameworks/av/media/libstagefright/ExtendedUtils.cpp:534:24: error: 'kKeyInterlace' was not declared in this scope
frameworks/av/media/libstagefright/ExtendedUtils.cpp: In static member function 'static int32_t android::ExtendedUtils::checkIsInterlace(android::sp<android::MetaData>&)':
frameworks/av/media/libstagefright/ExtendedUtils.cpp:542:24: error: 'kKeyInterlace' was not declared in this scope
make: *** [/home/cdub/omni/out/target/product/geeb/obj/SHARED_LIBRARIES/libstagefright_intermediates/ExtendedUtils.o] Error 1
[LG Optimus G (International)] ronasimi:
Hey, guess what I just got...

target thumb C++: libstagefright <= frameworks/av/media/libstagefright/ExtendedUtils.cpp
frameworks/av/media/libstagefright/ExtendedUtils.cpp: In static member function 'static void android::ExtendedUtils::setArbitraryModeIfInterlaced(const uint8_t*, const android::sp<android::MetaData>&)':
frameworks/av/media/libstagefright/ExtendedUtils.cpp:534:24: error: 'kKeyInterlace' was not declared in this scope
frameworks/av/media/libstagefright/ExtendedUtils.cpp: In static member function 'static int32_t android::ExtendedUtils::checkIsInterlace(android::sp<android::MetaData>&)':
frameworks/av/media/libstagefright/ExtendedUtils.cpp:542:24: error: 'kKeyInterlace' was not declared in this scope
make: *** [/home/ron/out/cm-11.0/target/product/geeb/obj/SHARED_LIBRARIES/libstagefright_intermediates/ExtendedUtils.o] Error 1
make: *** Waiting for unfinished jobs....
frameworks/av/media/libstagefright/ExtendedCodec.cpp:65:40: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]

:mad:
[LG Optimus G (International)] mathsz:
Grep that thing

---------- Post added at 10:31 PM ---------- Previous post was at 10:28 PM ----------

I still can't get 4.4 and working Wi-Fi. Tried lots of sources up to here and various kernel. Haze, I see that you use Chad's, is it loaded with CAF drivers? And would CAF drivers works with basic aosp? Cheers
[LG Optimus G (International)] ronasimi:
So I gave up on CM 11 until they stabilize the source a little, they keep breaking stuff. I'm building CM 10.2 with adreno kernel and paulicat's lights for now. I'll put it up as soon as it's built and tested.
[LG Optimus G (International)] cdub50:
Yeah the error was upstream. I was able to build omni again today, so they must have fixed or reverted a bad commit.
[LG Optimus G (International)] ShinySide:
Did you ever resolve this? Im in the same boat as you but for the tmo s4. Its close as hell to spitting out a build but havent found a resolution to this.
[LG Optimus G (International)] ronasimi:
Just FYI for everyone:

CyanogenMod/android_device_lge_gproj-common
CyanogenMod/android_device_lge_e973

Both have CM-11.0 branches, however

CyanogenMod/lge-kernel-gproj

does not yet. I'm still a noob, so my question is does CM need vendor repos? I don't see any for any device so I'm assuming that they're part of the lge_gproj-common repo...

It'd sure be swell if I could get one build of 10.2 or 11.0 to go through.
[LG Optimus G (International)] Haze028:
Yes, you still need a vendor repo. You'll always needs a vendor repo for building. CM uses https://github.com/TheMuppets/proprietary_vendor_lge.git for their builds.
[LG Optimus G (International)] cdub50:
audio-caf errors

Anyone run into audio-caf issues I am seeing these errors when trying to build Liquid Smooth KitKat.

http://pastebin.com/p1smkQ19

I looked in Chad's common repo and I see a commit to use qcom audio-caf, not sure what I am missing.

Thanks,

CDub50
[LG Optimus G (International)] Haze028:
Cm upstream commits seem to have broke it, I used Houstonn's audio-caf repo instead on my last build and all went well. I tried but was unable to work through all the errors from the cm repo
[LG Optimus G (International)] cdub50:
Cool I will try a build with his repo and see what happens.
[LG Optimus G (International)] madphone:
Building CM11 for e975

I hope anybody of you geniuos guys can help me. I'm trying to build cm11 for e975. this is my local manifest:

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

<remote name="gh"
fetch="git://github.com/" />

<project path="kernel/lge/gproj" name="CyanogenMod/lge-kernel-gproj" remote="gh" revision="cm-10.2" />

<project path="device/lge/e975" name="CyanogenMod/android_device_lge_e975" remote="gh" revision="cm-11.0" />

<project path="vendor/lge/" name="TheMuppets/proprietary_vendor_lge" remote="gh" revision="cm-11.0" />

<project path="device/lge/gproj-common" name="CyanogenMod/android_device_lge_gproj-common/" remote="gh" revision="cm-11.0" />
</manifest>

after about one hour of building it is running into the following error:

target thumb C: pigz <= external/pigz/main.c
make: *** Keine Regel vorhanden, um das Target »vendor/cm/proprietary/Term.apk«,
benötigt von »/home/user/cm11/out/target/product/e975/system/app/Term.apk«, zu erstellen. Schluss.
make: *** Warte auf noch nicht beendete Prozesse...
target StaticLib: libpigz (/home/user/cm11/out/target/product/e975/obj/STATIC_LIBRARIES/libpigz_intermediates/libpigz.a)
target StaticLib: libzopfli (/home/user/cm11/out/target/product/e975/obj/STATIC_LIBRARIES/libzopfli_intermediates/libzopfli.a)

any ideas? thank you very much in anticipation and for all i have learnt thanks to the tutorial.
[LG Optimus G (International)] Kevinjoa:
You forget this mate: ./vendor/cm/get-prebuilts
[LG Optimus G (International)] madphone:
ohh, thanks. i'll try now.

EDIT: no i directly ran into another most probably stupid problem:

i have taken a look at the file in device/lge/e975 and it is there: TARGET_KERNEL_CONFIG := cyanogenmod_e975_defconfig

i have followed the instructions here and added a target kernel source but also no luck :(
[LG Optimus G (International)] Haze028:
It's looking for term.apk

cm calls for it in the build but it's not in the source... either remove term from the config in vendor/cm

or the other way, to keep term

download terminal aplication apk file(install from play store then copy it from data/apps and rename it term.apk)

then you need to add these files to cm vendor repo

vendor/cm/proprietary/Term.apk

vendor/cm/proprietary/libs/armeabi/libjackpal-androidterm4.so

*as i just look now, i think they've added them again... try to resync may be able to avoid having to do above

Edit: That's the term.apk error i got before at least... i didn't translate nor can fully understand exactly what your error message is saying
[LG Optimus G (International)] madphone:
Thank you [MENTION=5095490]Kevinjoa[/MENTION] and [MENTION=4153704]Haze028[/MENTION]. Successfully compiled my very first cm-rom.

Gesendet von meinem LG-E975 mit Tapatalk
[LG Optimus G (International)] Haze028:
Yeah there is no error listed there, search Ctrl+shift+F your output for ': error' that should find your actual error
[LG Optimus G (International)] ronasimi:
Found this:

hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp: In member function 'bool venc_dev::venc_set_entropy_config(OMX_BOOL, OMX_U32)':
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2175:17: error: 'struct venc_entropycfg' has no member named 'entropysel'
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2195:17: error: 'struct venc_entropycfg' has no member named 'entropysel'
hardware/qcom/media/mm-video-legacy/vidc/venc/src/video_encoder_device.cpp:2209:11: error: 'struct venc_entropycfg' has no member named 'entropysel'
[LG Optimus G (International)] Haze028:
That's just a typo in the define... Grep your build dir for 'venc_entropycfg'

Go to the header file its in and put a space between long and entopysel
[LG Optimus G (International)] madphone:
one simple question: if i want to update my cm rom and repo sync - what is the best and fastest way to build it AND having the new built-date in settings? if i rebuild the rom the same way compiling it the very first time i end up with the old date in settings/info. Is the only way to "make clean" and will this take ages again to compile?
[LG Optimus G (International)] ronasimi:
do cmka, it does make clean and make using CM's optimized make, only takes a few seconds to make clean and builds a bit faster that vanilla make IMHO, if you're using ccache then a new build won't take too long.
[LG Optimus G (International)] ronasimi:
So apparently gcc is looking for a cm-10.2 folder for kernel prebuilts (I'm building CM 11.0). How do I change this?

/home/ron/android/cm-10.2/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-gcc: No such file or directory
GEN /home/ron/out/cm-11.0/target/product/geeb/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
Using /home/ron/android/cm-11.0/kernel/lge/geeb as source for kernel
CC scripts/mod/empty.o
/home/ron/android/cm-10.2/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-gcc: No such file or directory
make[4]: *** [scripts/mod/empty.o] Error 1
make[3]: *** [scripts/mod] Error 2
make[2]: *** [scripts] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/ron/android/cm-11.0/kernel/lge/geeb'
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....

I've grepped for "cm-10.2" but came up empty.
[LG Optimus G (International)] Kevinjoa:
[MENTION=3990416]madphone[/MENTION] just edit build.prop

Gesendet von meinem LG-E975 mit Tapatalk
[LG Optimus G (International)] ronasimi:
Hey everyone: CyanogenMod 11.0 M1 – Nexus Edition

WTF? I still haven't got a build to go through :( Close though :)

Has anyone else gotten this error?

/home/ron/android/cm-11.0/out/host/linux-x86/obj/SHARED_LIBRARIES/libgccdemangle_intermediates/cp-demangle.o: file not recognized: File truncated
collect2: ld returned 1 exit status
make: *** [/home/ron/android/cm-11.0/out/host/linux-x86/obj/lib/libgccdemangle.so] Error 1
make: *** Waiting for unfinished jobs....

NM previous build was interrupted by a circuit breaker tripping... old wiring in the house. If this finishes I'll have the equivalent of the M1 build for LGOG, with a couple of added goodies for our hardware. I'll let you guys know soon. Had to wipe my ccache so it may take a little longer.
[LG Optimus G (International)] ronasimi:
So my machine is hung at

Install: /home/ron/android/cm-11.0/out/target/product/geeb/system/app/Email.apk

while building CM 11. One core is pegged and the HDD is going crazy. RAM is maxed (2 GB) and swap is at 2 GB usage. Has anyone else seen this, and wtf?
[LG Optimus G (International)] cdub50:
Yeah that is normal I allocate 4 gigs of memory to my build VM and 20 GB of swap. If you have already created a swap partition you can use gparted to create a new swap partition that's what I did had originally made swap 4 gb, but was running out of memory and swap so I increased it to 20 GB. Poor mans memory ftw.
[LG Optimus G (International)] ronasimi:
My build finished, but the ota it created is named cm_geeb-ota-88b17e8c3e.zip and it won't boot. ADB won't grab a logcat and it just hangs at the google screen. adb -d logcat>mylogfile.txt sits there waiting for device. I can reboot to bootloader/recovery fine

Can anyone tell me where it's going wrong?
[LG Optimus G (International)] brothaedhung:
With some builds there are 2 zip files in your output directory. You should flash the one with "unofficial" in the filename if there is one, not the one with "OTA".
[LG Optimus G (International)] spaceman860:
What's the difference between the OTA and the unofficial zips that are made?

Sent from my NEXUS 5
[LG Optimus G (International)] Haze028:
I'm not sure of the actual difference between the two, but you should still be able to boot with the ota zip. If you 'make otapackage' I'm not sure that it gives you a second zip file, may only be the ota one, which should still work(that's how i made/posted most of my roms, just renamed the zip)

As for the rom not booting above, try 1. using 'make -j# bacon' instead of 'otapackage' if you aren't already. that should give you the 'unofficial' zip

2. check the repo you are using for kernel/ try a new one. None booting rom ususally, is a kernel issue
[LG Optimus G (International)] ronasimi:
Thanks guys, I've got a booting ROM now but the video drivers don't work. The CM logo on the boot screen is yellow, then I get a black screen although vibration works. I think I might be missing the adreno drivers (I forked chad's kernel_msm). I've flashed a few alternate kernels and the display keeps blanking after the yellow boot animation except with houstonn's adreno kernel, which boots, but hangs at Starting apps. (after rebuilding dalvik) . Help?

I'm using chad's kernel_msm, haze's device, device-common and vendor
[LG Optimus G (International)] Haze028:
Have you tried building with houstonn adreno kernel, instead of flashing it after.

also you can try the kernel on my github. It's chads kernel but from a while back, seems to have all things working well.

Also, switch over to chad's vendor repo. I havn't updated the vendor repo on my github since i forked it, and i beleive it is due
[LG Optimus G (International)] ronasimi:
I've got a booting ROM at this point, but wifi is broken. I'm trying chad's vendor repo next
[LG Optimus G (International)] brothaedhung:
I had broken Wifi when using Chad's kernel source until I took the WiFi drivers from his flashable Smoocha zip and replaced the files in my device repo.
[LG Optimus G (International)] ronasimi:
It's working properly now, once I including the wifi drivers. Thanks everyone. I'll post it once I've added anything worthwhile to the build, as it is it's basically just the same as haze's
[LG Optimus G (International)] ronasimi:
Guess what error is back. Upstream again...
[LG Optimus G (International)] madphone:
Is anyone here building omni-roms at the moment? Every ROM i build has prebloems vith google voice search. whenever i try to use the mic for any kind of search it gets stuck on "initializing". Any ideas what went wrong. My last build was from yesterday (android 4.2.2). No errors while compiling.
[LG Optimus G (International)] gigitux:
I'm waiting for AOSP guide !
[LG Optimus G (International)] ronasimi:
All of a sudden, as of today 12/16/2013 my CM 11.0 builds are failing at installing modules. No errors are listed. WTF?

Last line of output:

mdpath=`find /home/ron/android/cm-11.0/out/target/product/geeb/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; rm -rf $mpath; fi

it looks like it might be an error in the build script, can anyone help?
[LG Optimus G (International)] ronasimi:
FYI for everyone, a make clobber fixed it.

---------- Post added at 09:28 AM ---------- Previous post was at 09:26 AM ----------

Is anyone here good with a logcat? Something with my kernel (?) causes cyanogenmod torch to fc. It's apparently a common issue with the unofficial builds, but the official is fine. I got a logcat:

logcat

but I'm not sure what I'm looking at. Anyone have any insight?

Thanks.

NM, I think I fixed it by fixing the overlay in gee-common. Thanks paulicat!
[LG Optimus G (International)] ronasimi:
It might be outside the scope of this thread, but can anyone tell me what I need to change in kernel source to allow CONFIG_LOW_CPUCLOCKS to work properly on an MSM kernel?
[LG Optimus G (International)] houstonn:
I think that's fauxs implementation. Look on his git
[LG Optimus G (International)] ronasimi:
Yeah, I ended up using your 192 MHz frequency tables. Thanks man!
[LG Optimus G (International)] 2nd Sky:
sorry for my noob question:

i can run nx4 4.2 rom on my e975, but when i edit some lines in build.prop i suck in boot!

logcat say: (again and again...)

(i wrote it up from CMD)

what does this mean?? when i only edit updter.script that i can flash it, it boots up and i can use the rom....
[LG Optimus G (International)] ShinySide:
What are you editing in the build prop?
[LG Optimus G (International)] 2nd Sky:
ok, sorry, my mistake, it was a 4.4 rom, not a 4.2

but why does 4.4 roms not boot full (suck in bootanimation) and 4.2 boot up, that i can use it?!

what does this part of logcat mean??

i try it tomorror, when i have time again..

thanks for your help!
[LG Optimus G (International)] ronasimi:
So, I don't know if this is the best place to post this question but I never seem to catch the right people on IRC...

Why does CM use CAF kernels opposed to AOSP kernels? I know there are newer CAF kernels available, but if that was the reason wouldn't CM have used a newer kernel than the 3.4 they include in the official builds?

It's frustrating, because for me to build pretty much any other ROM, I've got to maintain a separate AOSP kernel tree, when I've got a good CAF kernel going for CM.

Just ranting a little, but I'm genuinely curious if anyone knows why CM chose to go with CAF.
[LG Optimus G (International)] brothaedhung:
I've just been building CM based ROMs with an AOSP kernel source and dodging the whole CAF issue altogether.

There's even a legacy repo that tracks CM without the CAF adds called legaCyMod on github. You can pull their local manifest and it will sync their repos instead of CM. I haven't tried it yet since I'm still able to just build with AOSP kernels.
[LG Optimus G (International)] ronasimi:
I get so many errors when I'm trying to use AOSP kernels with CM, that it's easier to just use a CAF kernel. I'm going to check out the legaCyMod repo because then I can use some of the other kernels available for the LGOG.
[LG Optimus G (International)] ronasimi:
So I just started looking at CAF 3.10 sources and they've removed support for the 8960 chipset. Does that mean that once android moves off of 3.4x our phones are going to be SOL?
[LG Optimus G (International)] xboxfanj:
Either that or our kernel just won't change much except the bare minimum for the next OS. The Nexus 7 2012 is still on kernel 3.1. Any Android chipset manufacturer can use whatever kernel they want: even 2.6.35 (ala gingerbread).

It does mean that we're probably not (by we, I mean the Nexus 4, since officially, the OG is still on 4.1.2) going to get 3.10. I have had no luck porting it either. Stuck fairly early on in boot before ADB and ramconsole. I'm not sure why 8960/8064 aren't supported. There were several high-end devices released in 2013 with those chips (Oppo N1 was just a couple weeks ago). There are lesser chips that are supported such as the 8226 and 8610. I could see why 8960 isn't supported (old Adreno 2xx GPU that Qualcomm doesn't want to support anymore now that they added 4xx and don't want three GPU models to support), but 8064 wouldn't be much more work since it's 3xx.
[LG Optimus G (International)] F-L-Y-E-R:
In the 'installing reuqired package' section, is the code for 32bit or it doesn't matter? Becauge I'm on 64bit
[LG Optimus G (International)] Haze028:
Directions are for a 64-bit system. 64-bit system is required for building newer(ics+ i beleive) android.
[LG Optimus G (International)] F-L-Y-E-R:
Thanks, people maybe it's not the right place but even the official thread is silent and because this is a guide how to setup environment I'll post the error I get while building, maybe someone will know :confused:

target Dex: Keyguard

UNEXPECTED TOP-LEVEL EXCEPTION:
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at java.util.zip.ZipFile.<init>(ZipFile.java:143)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:244)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
at com.android.dx.command.dexer.Main.processOne(Main.java:596)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:498)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:264)
at com.android.dx.command.dexer.Main.run(Main.java:230)
at com.android.dx.command.dexer.Main.main(Main.java:199)
at com.android.dx.command.Main.main(Main.java:103)
1 error; aborting
make: *** [/home/arcioma/android/out/target/common/obj/APPS/Keyguard_intermediates/classes-with-local.dex] Error 1
make: *** Waiting for unfinished jobs....
[LG Optimus G (International)] Haze028:
In my experience alot of issues with intermediates can be resolved with a "make clean && make clobber" then "repo sync" then try again.
[LG Optimus G (International)] F-L-Y-E-R:
I don't know I just ran "brunch" again and it seems that I bypassed this error but now I get this one (seems like this is almost at the end of building process)

Can you have a look, thanks.

Package target files: /home/arcioma/android/out/target/product/ville/obj/PACKAGING/target_files_intermediates/cm_ville-target_files-161c121c01.zip
Package OTA: /home/arcioma/android/out/target/product/ville/cm_ville-ota-161c121c01.zip
MKBOOTIMG= \
./build/tools/releasetools/ota_from_target_files -v \
-p /home/arcioma/android/out/host/linux-x86 \
-k build/target/product/security/testkey \
--backup=true \
--override_device=auto \
/home/arcioma/android/out/target/product/ville/obj/PACKAGING/target_files_intermediates/cm_ville-target_files-161c121c01.zip /home/arcioma/android/out/target/product/ville/cm_ville-ota-161c121c01.zip
unzipping target target-files...
running: unzip -o -q /home/arcioma/android/out/target/product/ville/obj/PACKAGING/target_files_intermediates/cm_ville-target_files-161c121c01.zip -d /tmp/targetfiles-muFV5u
unzip: cannot find or open /home/arcioma/android/out/target/product/ville/obj/PACKAGING/target_files_intermediates/cm_ville-target_files-161c121c01.zip, /home/arcioma/android/out/target/product/ville/obj/PACKAGING/target_files_intermediates/cm_ville-target_files-161c121c01.zip.zip or /home/arcioma/android/out/target/product/ville/obj/PACKAGING/target_files_intermediates/cm_ville-target_files-161c121c01.zip.ZIP.

ERROR: failed to unzip input target-files "/home/arcioma/android/out/target/product/ville/obj/PACKAGING/target_files_intermediates/cm_ville-target_files-161c121c01.zip"

make: *** [/home/arcioma/android/out/target/product/ville/cm_ville-ota-161c121c01.zip] Error 1
[LG Optimus G (International)] Haze028:
Try running the commands I suggested above. just enter what i put in the quotes in your terminal window from your working dir. First will remove everything you've already built, Second will resync the repositories.

Once that is all done run a brunch again for your device

My guess as to what is going on is that your initial error messed up the intermediates zip which has caused your second error. Best to make make clean && make clobber, repo sync, brunch ville
[LG Optimus G (International)] ShinySide:
Make clean and make clobber both do the same. You're running the same command twice, not that it harms anything.