yashsingh1/xdaforums huggingface dataset:
[LG Optimus G (International)] Haze028:
The actual error is up higher in the output...... Look up until you see the error.
[LG Optimus G (International)] badagila:
great tutorial

but is this also work for samsung? or any other device?

---------- Post added at 04:57 PM ---------- Previous post was at 04:12 PM ----------

If i have the source of the custom rom that i want to port into my device do i still ned the original source of my device?

Sent from my GT-S5660
[LG Optimus G (International)] Haze028:
Yes, guide will work the same for any device.

What you will need to build a custom ROM is: Custom ROM source, device specific Vendor/Device/Kernel source.

'Original' source for your device, ie. Provided by Samsung, shouldn't be needed. Check other custom ROM threads for your device and see if you can find what device specific repos they use.
[LG Optimus G (International)] badagila:
Ok dude thanks and sorry for a lot of question but i want to undersrand it clearly :) example the hyperion rom for galaxy y. I like that rom but i can't port into my samsung galaxy gio because it is base on stock and we have a different chipset. I can use this guide to compile the hyperion source to buid for my galaxy gio?

Sent from my GT-S5660
[LG Optimus G (International)] Haze028:
I did a quick Google search and found this: HTTPS://github.com/phiexz?tab=repositories

There is a device vendor and kernel for the gio there. Use those and try the guide. Keep in mind your device is older, best compatibility will probably be with ice cream sandwich or lower.
[LG Optimus G (International)] badagila:
the rom that i want to port into my gio is ginger bread dude.., because hyperion is base on stock gingerbread if don't mind this the link of hyperion for galaxy y Hyperion 8 so that you will understand what i men :D anyway can i add you on fb so that we can talk much better?
[LG Optimus G (International)] badagila:
ROM SOURCE PROBLEM.., everytime i try to get the source ive encountered this error
[LG Optimus G (International)] badagila:
thanks a lot for the link dude
[LG Optimus G (International)] mathsz:
well, Google moved the repo source. so you need to edit that one in the guide.

To install Repo:

1.Make sure you have a bin/ directory in your home directory and that it is included in your path:
$ mkdir ~/bin
$ PATH=~/bin:$PATH
2.Download the Repo tool and ensure that it is executable:
$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo

From here

http://source.android.com/source/downloading.html

---------- Post added at 09:05 AM ---------- Previous post was at 09:04 AM ----------

Please see previous post and update this excellent guide.
[LG Optimus G (International)] badagila:
thanks for the new link dude

---------- Post added at 02:55 PM ---------- Previous post was at 02:42 PM ----------

repo is now working dude thanks a lot
[LG Optimus G (International)] ronasimi:
What device/kernel/vendor repos should I use for kitkat/cm 11? I want to use paulicat's kernel source for the notification lights if possible. I'm new to android building... I'm trying to set up a local manifest.
[LG Optimus G (International)] Haze028:
I haven't built 4.4 yet, though I see chad has his repos posted in his omni thread. Houston has a aosp build up so his repos should also work...and since they're both a part of TeamPlaceholder I imagine their repos may be working with 4.4 now... Though like I said I haven't built 4.4 yet.

On my phone right now but I'll edit this post with the links later if you need
[LG Optimus G (International)] ronasimi:
I've got the TeamPlaceholder repos, but can there's no kk branch for android_device_lge_geeb
[LG Optimus G (International)] mathsz:
brothaedhung did one too in his pac thread.

Didn't find sources listed...
[LG Optimus G (International)] brothaedhung:
I pushed the aosp mako based 4.4 device repo that I forked from Houstonn to my github. I'm still using houstonn's 4.3 adreno kernel and vendor repos for the CM11 test builds.
[LG Optimus G (International)] ronasimi:
How do I fix this:

build/core/base_rules.mk:134: *** hardware/qcom/display/msm8960/liblight: MODULE.TARGET.SHARED_LIBRARIES.lights.msm8960 already defined by device/lge/gee-common/liblight. Stop.

I assume I need to comment a line out, but I'm a noob.
[LG Optimus G (International)] Haze028:
Its saying that you're trying to add the liblight package twice. Just go into hardware/qcom/display/msm8960/liblight open the android.mk file and delete liblight from it's selected packages.

you could, in turn, remove the liblight that comes with the gee common repo. But i would suggest sticking with that one and removing the reference as shown above
[LG Optimus G (International)] cdub50:
kitkat build error

anyone run into this error? Trying a build for kitkat Using Chad's sources for local_manifest

<project path="device/lge/geeb" name="chadouming/android_device_lge_geeb" remote="cw" revision="android-4.4" />
<project path="device/lge/gee-common" name="chadouming/android_device_lge_gee-common" remote="cw" revision="android-4.4" />
<project path="vendor/lge/gee" name="chadouming/proprietary_vendor_lge_gee" remote="cw" revision="android-4.4" />
<project path="kernel/lge/geeb" name="chadouming/kernel_msm" remote="cw" revision="android-4.4" />

thought it was fixed in this commit from CM

commit 2025c3683a2f12163bdf62825def9d433fe6223e
Merge: f10bbe5 b92d63d
Author: Ricardo Cerqueira <cyanogenmod@cerqueira.org>
Date: Sat Nov 16 16:17:00 2013 +0000

Merge "Allow building against other qcom display HALs" into cm-11.0

but still seeing the error below

frameworks/native/libs/gui/Surface.cpp: In member function 'virtual android::status_t android::Surface::lock(ANativeWindow_Buffer*, ARect*)':
frameworks/native/libs/gui/Surface.cpp:770:29: error: 'GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY' was not declared in this scope
make: *** [/home/cdub/liquid-kk/out/target/product/geeb/obj/SHARED_LIBRARIES/libgui_intermediates/Surface.o] Error 1

If anyone has any ideas let me know I have been stuck on this for the past couple of days.

Thanks Cdub50
[LG Optimus G (International)] Haze028:
Its missing its deceleration in one of the header files... I think its metadata.h (check the CPP file giving the error for the exact header name...im close I think)

Search your source for the file, there is another copy of it somewhere that has that deceleration you can copy over.
[LG Optimus G (International)] cdub50:
these are the header files in frameworks/native/libs/gui/Surface.cpp

#include <android/native_window.h>

#include <binder/Parcel.h>

#include <utils/Log.h>
#include <utils/Trace.h>

#include <ui/Fence.h>

#include <gui/ISurfaceComposer.h>
#include <gui/SurfaceComposerClient.h>
#include <gui/GLConsumer.h>
#include <gui/Surface.h>

#include <private/gui/ComposerService.h>

#ifdef QCOM_BSP
#include <gralloc_priv.h>

frameworks/native that I am using is below

frameworks/native

Ok I think I was able to fix it I added the declaration to /hardware/qcom/display/msm8960/libgralloc/gralloc_priv.h

and it seems like it is getting past that error now. Thanks for the help
[LG Optimus G (International)] Haze028:
Sorry...my bad... Gralloc_priv.h.

Look in the Gralloc_priv.h files in your source....copy the private_internal_only deceleration from one that has it to the one you need.

Much like you said you did....didn't read the or rest of your post..lol
[LG Optimus G (International)] cdub50:
No worries thanks again for the help
[LG Optimus G (International)] ronasimi:
Can anyone tell me what I'm doing wrong this time?

make: *** No rule to make target `/home/ron/android/cm-ll.0/out/target/product/geeb/kernel', needed by `/home/ron/android/cm-ll.0/out/target/product/geeb/boot.img'. Stop.
[LG Optimus G (International)] Haze028:
There is something wrong with the kernel setup you've got. Looks like it may be looking for a prebuilt kernel, or it's not pointing to the right folder location/defconfig for the kernel you're trying to build.

what is the directory of your kernel?

can you put your board config (both geeb and gee-common) on pastebin and link.

It's more than likely a matter of changing a directory or filename that you have named differently than what it's looking for
[LG Optimus G (International)] ronasimi:
I renamed kernel/lge/gee to kernel/lge/geeb, and I think it fixed it. Give me a few min :)

So far, so good!
[LG Optimus G (International)] Haze028:
That will most likely do it. That's what i figured was probably the issue. Glad it's going.
[LG Optimus G (International)] ronasimi:
Now I'm getting much further, but this is happening:

drivers/staging/ste_rmi4/Kconfig:1:warning: type of 'TOUCHSCREEN_SYNAPTICS_I2C_RMI4' redefined from 'boolean' to 'tristate'

***

*** Can't find default configuration "arch/arm/configs/geeb_f_defconfig"!

***

make[3]: *** [geeb_f_defconfig] Error 1

make[2]: *** [geeb_f_defconfig] Error 2

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

make[1]: Leaving directory `/home/ron/android/cm-ll.0/kernel/lge/geeb'

make: *** [/home/ron/android/cm-ll.0/out/target/product/geeb/obj/KERNEL_OBJ/.config] Error 2

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

There is a geeb_defconfig, but no geeb_f_defconfig, do I rename the file or edit something else?
[LG Optimus G (International)] Haze028:
option one

The defconfig used is in the device tree, normally in the boardconfig.mk. check the one in the geeb and gee-common directories. one of those files should state the defconfig you're trying to use...

option two is to rename a GEEB defconfig in arch/arm/configs to geeb_f_defconfig
[LG Optimus G (International)] ronasimi:
now I'm getting this:

In file included from device/lge/geeb/bdAddrLoader/addrloader.c:29:0:

In function 'property_get',

inlined from 'readBDAddr' at device/lge/geeb/bdAddrLoader/addrloader.c:156:32:

system/core/include/cutils/properties.h:69:39: error: call to '__property_get_too_small_error' declared with attribute error: property_get() called with too small of a buffer

In function 'property_get',

inlined from 'readBDAddr' at device/lge/geeb/bdAddrLoader/addrloader.c:162:32:

system/core/include/cutils/properties.h:69:39: error: call to '__property_get_too_small_error' declared with attribute error: property_get() called with too small of a buffer

make: *** [/home/ron/android/cm-ll.0/out/target/product/geeb/obj/EXECUTABLES/bdAddrLoader_intermediates/addrloader.o] Error 1
[LG Optimus G (International)] Haze028:
Which repo are you using? What ROM are you building?
[LG Optimus G (International)] ronasimi:
Sorry about the delay, I'm building CM11 using houstonn's kernel and paulicat's device and vendor. I fixed that error and I'm getting much further, but now I'm getting:

device/lge/geeb/sepolicy/property.te":2:ERROR 'duplicate declaration of type/attribute' at token ';' on line 8183:

the property.te file is only 1 line:

type bluetooth_prop, property_type;

I just tried commenting it out and we'll see where I get, it is a duplicate declaration
[LG Optimus G (International)] cdub50:
anyone know where to find this header file or what creates it I am getting this error when trying to build.

CC drivers/staging/prima/CORE/SME/src/sme_common/sme_Api.o

/home/cdub/omni/kernel/lge/gee/drivers/staging/prima/CORE/SME/src/sme_common/sme_Api.c:84:23: fatal error: sme_Trace.h: No such file or directory

Thanks,

CDub50
[LG Optimus G (International)] Haze028:
sme_Trace.h should be in here: kernel_msm / drivers / staging / prima / CORE / SME / inc / do you have the file there?

Are you using chad's kernel?
[LG Optimus G (International)] ronasimi:
Now I'm getting:

build/core/tasks/kernel.mk:91: **********************************************************

build/core/tasks/kernel.mk:92: * Kernel source found, but no configuration was defined *

build/core/tasks/kernel.mk:93: * Please add the TARGET_KERNEL_CONFIG variable to your *

build/core/tasks/kernel.mk:94: * BoardConfig.mk file *

build/core/tasks/kernel.mk:95: **********************************************************

ron@ironhide:~/android/cm-ll.0$ build/core/tasks/kernel.mk:92: * Kernel source found, but no configuration was defined *

I verified that my BoardConfig.mk has TARGET_KERNEL_CONFIG defined, it points to geeb_f_defconfig.
[LG Optimus G (International)] mathsz:
Did you rename your geeb defconfig earlier? either change the geeb_f_defconfig or the references.
[LG Optimus G (International)] ronasimi:
I didn't rename it, I copied it and renamed the copy. I verified both files are identical.

This is the full output:

build/core/tasks/kernel.mk:91: **********************************************************
build/core/tasks/kernel.mk:92: * Kernel source found, but no configuration was defined *
build/core/tasks/kernel.mk:93: * Please add the TARGET_KERNEL_CONFIG variable to your *
build/core/tasks/kernel.mk:94: * BoardConfig.mk file *
build/core/tasks/kernel.mk:95: **********************************************************
make: *** No rule to make target `otapackage'. Stop.
[LG Optimus G (International)] mathsz:
Verify the boardconfig.mk in device and where it points to. In the source, it shows geeb_defconfig

# Try to build the kernel

TARGET_KERNEL_CONFIG := geeb_defconfig

make sure you don't have a make_defconfig. should be just a naming thing.
[LG Optimus G (International)] ronasimi:
It was TARGET_KERNEL_CONFIG := geeb_f_defconfig, I changed it, and there's no make_defconfig in device. Same error :(
[LG Optimus G (International)] Haze028:
can you post a copy/link for your boardconfig.mk from geeb and gee-common as well as your device.mk from each? not sure why it would be erroring right now.
[LG Optimus G (International)] ronasimi:
Not using gee-common, I didn't think it was necessary when building a full ROM. Is that the issue?

Here's my local_manifest.xml:

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

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

<project path="kernel/lge/gee" name="houst0nn/kernel_msm" remote="gh" revision=$
<project path="device/lge/geeb" name="Paulicat/android_device_lge_geeb" remote=$
<project path="vendor/lge/gee" name="Paulicat/proprietary_vendor_lge" remote="g$

</manifest>

---------- Post added at 11:14 AM ---------- Previous post was at 10:58 AM ----------

I just updated my local_manifest.xml to use only houst0nn's repos and fixed the kernel path to be kernel/lge/geeb. I'm resyncing now and I'll try again :S
[LG Optimus G (International)] Haze028:
never used paulicats repo, he may have geeb and gee-common combined *Edit* looking through paulicat's github there is no gee-common, so his repo must combine them.

I've always had a gee-common(at least since 4.2 i think) Teamplaceholder, Teamlgog I would recommend using one of those repos

I assume you're trying to build 4.2.2, which branch of houstonn kernel_msm are you using?

Don't forget too, that Cyanogenmod has official repos for the optimus g. So you could use those too, they're 10.2

*EDIT 2* Just read back, you're trying to build cm-11? the kernel and device repos you are using are for 10.2

I use chadoumings device/vendor/kernel for my cm-11 builds
[LG Optimus G (International)] cdub50:
Yeah I was using Chad's kernel. I will check this morning if its in that dir.
[LG Optimus G (International)] ronasimi:
10.2 branch for kernel will work for cm 11, I've flashed an adreno kernel and it works. brothaedhung is using houst0nn's adreno kerrnel on his cm 11 build too. I'm using kernel, device and vendor from houst0nn now but I'm resyncing the repos from scratch so it may take a while.
[LG Optimus G (International)] Haze028:
The issue may have just been trying to use paulicat's device with houstonnn kernel. paulitcats' geeb repo hasn't been updated in like 3 months

Generally the best idea to use device/vendor/kernel from same github if you can. At least to start, then try different repos out once you know a working baseline.... anyways, let me know how ya make out once you're all sync'd up.
[LG Optimus G (International)] ronasimi:
Just for reference, this is my current local_manifest.xml:

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

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

<project path="kernel/lge/geeb" name="houst0nn/kernel_msm" remote="gh" revision="jb-geeb-mr2-jss-adreno" />
<project path="device/lge/geeb" name="houst0nn/device_lge_geeb" remote="gh" revision="kk-geeb" />
<project path="vendor/lge/gee" name="houst0nn/vendor_lge_gee" remote="gh" revision="cm-10.2" />

</manifest>
[LG Optimus G (International)] cdub50:
Ok re-sync'd and I am not seeing that error seeing this when trying to build omni rom though. Was Using this as a test and was going to try and build Liquid Smooth if I could get Omni ROM building.

frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/NetworkController.java:625: cannot find symbol

symbol : variable accessibility_data_connection_HP

location: class com.android.systemui.R.string

R.string.accessibility_data_connection_HP);

^

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/cdub/omni/out/target/common/obj/APPS/SystemUI_intermediates/classes-full-debug.jar] Error 41

[EDIT]

Looks like doing a repo sync has fixed that error I was able to build successfully :)

Package complete: /home/cdub/omni/out/target/product/geeb/omni-4.4-20131126-geeb-HOMEMADE.zip
[LG Optimus G (International)] ronasimi:
So my sync command errored out with:

error: Exited sync due to gc errors

So I figured that I'd just init the repo again and now I'm getting:

Traceback (most recent call last):
File "/home/ron/android/cm-11.0/.repo/repo/main.py", line 418, in <module>
_Main(sys.argv[1:])
File "/home/ron/android/cm-11.0/.repo/repo/main.py", line 394, in _Main
result = repo._Run(argv) or 0
File "/home/ron/android/cm-11.0/.repo/repo/main.py", line 142, in _Run
result = cmd.Execute(copts, cargs)
File "/home/ron/android/cm-11.0/.repo/repo/subcmds/init.py", line 374, in Execute
self._ConfigureUser()
File "/home/ron/android/cm-11.0/.repo/repo/subcmds/init.py", line 275, in _ConfigureUser
name = self._Prompt('Your Name', mp.UserName)
File "/home/ron/android/cm-11.0/.repo/repo/project.py", line 620, in UserName
self._LoadUserIdentity()
File "/home/ron/android/cm-11.0/.repo/repo/project.py", line 633, in _LoadUserIdentity
u = self.bare_git.var('GIT_COMMITTER_IDENT')
File "/home/ron/android/cm-11.0/.repo/repo/project.py", line 2274, in runner
p.stderr))
error.GitError: manifests var:
*** Please tell me who you are.

Run

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

I've tried multiple times.
[LG Optimus G (International)] Haze028:
You've gone through those commands to re-set your name and email? I don't think repo likes an init over an init... you may need to delete and start agaain(as anoying as that may be)

try those git commands first, as it may have just lost your info when you re-init'd
[LG Optimus G (International)] ronasimi:
So apparently I'm doing something wrong again. Using the local_manifest.xml posted above, did a make clean and make -j2 otapackage, now getting:

Import includes file: /home/ron/android/cm-11.0/out/host/linux-x86/obj/STATIC_LIBRARIES/libmincrypt_intermediates/import_includes
Export includes file: system/core/mkbootimg/Android.mk -- /home/ron/android/cm-11.0/out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/export_includes
Export includes file: build/libs/host/Android.mk -- /home/ron/android/cm-11.0/out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/export_includes
Import includes file: /home/ron/android/cm-11.0/out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/import_includes
Export includes file: build/tools/acp/Android.mk -- /home/ron/android/cm-11.0/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/export_includes
make: *** No rule to make target `device/lge/geeb-kernel/kernel', needed by `/home/ron/android/cm-11.0/out/target/product/geeb/kernel'. Stop.
make: *** Waiting for unfinished jobs....
Notice file: system/core/libmincrypt/NOTICE -- /home/ron/android/cm-11.0/out/host/linux-x86/obj/NOTICE_FILES/src//lib/libmincrypt.a.txt
[LG Optimus G (International)] Haze028:
Just took a look at houstonn's geeb device repo.... It's looking for a prebuilt kernel in AndroidBoard.mk. You either need to

1) add a prebuilt kernel where it's looking

2) edit the device repo to say to build a kernel and where and which defconfig(see other geeb device tree's boardconfig.mk to see how if you're not sure)

3) Use a different repo. Houstonn is a smart guy and does great work, but his repo's you are using havn't been updated in quite a while.... try using Chadouming's kitkat repos, or teamplaceholder. I use chad's repos for my kitkat builds and don't have any issues.
[LG Optimus G (International)] mathsz:
Fwiw, I think this is standard for AOSP, it does not support in-line building. And since Houstonn built aosp... this is what you get...

You have to build the kernel first, then build ROM.

I've switched to teamplaceholder (chad's?) for vendor. I did manage to get a build through, but no wi-fi. hence, recompiling the kernel and ROM with new vendor. Tried to incorporate paulicat's led, it works. but broken wifi, so back at drawing board.

---------- Post added at 04:30 PM ---------- Previous post was at 04:17 PM ----------

Seriously, If I can add one comment,

gee, geeb, geeb_att_us and geebrh are a headache. I understand the use but it's a pain to sort out in github sometimes!
[LG Optimus G (International)] Haze028:
Totally agree there!
[LG Optimus G (International)] cdub50:
Ok I am close to a build on Liquid Smooth 4.4 but I am running into the errors below anyone know of a fix or a commit I might need to revert to fix it?

external/chromium_org/third_party/WebKit/Source/core/platform/graphics/cpu/arm/filters/FELightingNEON.h:109: error: undefined reference to 'WebCore::feLightingConstantsForNeon()'
external/chromium_org/third_party/WebKit/Source/core/platform/graphics/cpu/arm/filters/FELightingNEON.h:143: error: undefined reference to 'WebCore::FELighting::getPowerCoefficients(float)'
external/chromium_org/third_party/WebKit/Source/core/platform/graphics/cpu/arm/filters/FELightingNEON.h:162: error: undefined reference to 'WebCore::FELighting::getPowerCoefficients(float)'
external/chromium_org/third_party/WebKit/Source/core/platform/graphics/cpu/arm/filters/FELightingNEON.h:195: error: undefined reference to 'neonDrawLighting'
external/chromium_org/third_party/WebKit/Source/core/platform/graphics/cpu/arm/filters/FELightingNEON.h:196: error: undefined reference to 'WebCore::FELighting::platformApplyNeonWorker(WebCore::FELightingPaintingDataForNeon*)'
collect2: error: ld returned 1 exit status

Thanks for the help

CDub50
[LG Optimus G (International)] ronasimi:
+1 :cool:

---------- Post added at 02:01 PM ---------- Previous post was at 01:32 PM ----------

I'm having the same issue and I can't find a gralloc_priv.h file with GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY declared... Where'd you find it?

EDIT:

NM, grep to the rescue
[LG Optimus G (International)] cdub50:
OMNI ROM Failing build

not sure why I am getting this failure doesn't look like anything has changed

frameworks/native/libs/gui/Surface.cpp:38:26: fatal error: gralloc_priv.h: No such file or directory
compilation terminated.
make: *** [/home/cdub/omni/out/target/product/geeb/obj/SHARED_LIBRARIES/libgui_intermediates/Surface.o] Error 1

here are all the gralloc_priv.h files in my omni build dir

/home/cdub/omni/hardware/libhardware/modules/gralloc/gralloc_priv.h
/home/cdub/omni/hardware/qcom/display/msm8960/libgralloc/gralloc_priv.h
/home/cdub/omni/hardware/qcom/display/msm8974/libgralloc/gralloc_priv.h
/home/cdub/omni/hardware/qcom/display/msm8x26/libgralloc/gralloc_priv.h
/home/cdub/omni/hardware/qcom/display-caf/libgralloc/gralloc_priv.h
/home/cdub/omni/hardware/samsung_slsi/exynos5/include/gralloc_priv.h
/home/cdub/omni/out/target/product/geeb/obj/include/qcom/display/gralloc_priv.h

am I missing something?

Thanks,

CDub50