[Q] Building CM11 - Android Q&A, Help & Troubleshooting

I'm trying to build CM11 for LG L9 P760.
I tried following some of the tutorials and reached the point where I synced the CM11 repo.
I've also pulled the device tree to vendor/lge/p760 from a git and used extract_files.sh to get the files from device.
But I don't know where to go from here. I tried brunch p760 and got the following output.
http://paste.ubuntu.com/6626112/
There is an error towards the end.
I am also confused whether to add the kernel source, and if i have to, where and how i have to add it.
It'd be really great if you guys could help.
thanks.

Thanks
Thanks Master

Related

Stuck while building

Ok. I know this is nooby but I don't have anyone else to ask. I am trying to build Android 4.4 Kit Kat for the HTC Flyer. I followed a guide. I installed all the packages, installed the repo downloaded the source code but after that it said that i need to clone my device tree from github. I googled HTC flyer github but i only found a branch of a kernel from doomlord and i don't think that's what I am looking for. Now I am stuck and don't know what to do. So basicly I don't what to after downloading the source code using repo sync.
Any sort of help would be appretiated. I am just trying to bring my device back from the dead. Thank you and again sorry for the nooby question.

[ROM][Porting] guide to cm11

Hello everybody. i serached the net a bit and found this guide on how to port CM11 to our devices
http://wiki.cyanogenmod.org/w/Doc:_porting_intro
my phone is still on service (two weeks now )
but i thought before i get it back if someone wanted to try to make it happen.
i wouldnt say im that much of a developer so i think theres people out there that can make this happen faster than me.
anyway i thought to start this thread so people can try it out and talk about what we have to do and help people out with the progression.
Help appreciate
invaderjohn said:
guide on how to port CM11 to our devices
http://wiki.cyanogenmod.org/w/Doc:_porting_intro
if someone wanted to try to make it happen.
i wouldnt say im that much of a developer
Click to expand...
Click to collapse
Any help is greatly appreciated!
I have set up a ubuntu box and got the cm sources.
I followed the instructions to build the device files from boot.img
Tweaked the BoardConfig.mk and can build recoverys from source now using the stock kernel.
Only problem with this is the 'dtb' part of the recovery.img.
I use Android Image Kitchen to copy the original recovery dtb to the ones i have build.
[Q]Can anyone tell me how to build dtb in the recovery at build time?
I have downloaded the android and kernel source from LG for D620.
Source from LG
[Q] Can anyone tell me how to merge them with the CM source?
In general i need some help to build the kernel from source, the instructions in the LG source don't work for me.
Zaaap
Zaaap72 said:
Any help is greatly appreciated!
I have set up a ubuntu box and got the cm sources.
I followed the instructions to build the device files from boot.img
Tweaked the BoardConfig.mk and can build recoverys from source now using the stock kernel.
Only problem with this is the 'dtb' part of the recovery.img.
I use Android Image Kitchen to copy the original recovery dtb to the ones i have build.
[Q]Can anyone tell me how to build dtb in the recovery at build time?
I have downloaded the android and kernel source from LG for D620.
https://www.lg.com/global/support/opensource/opensourceList?types=NAME&search=d620
[Q] Can anyone tell me how to merge them with the CM source?
In general i need some help to build the kernel from source, the instructions in the LG source don't work for me.
Zaaap
Click to expand...
Click to collapse
is this any help for you?
http://forum.xda-developers.com/showthread.php?t=1748297
and perhaps you can find a solution on the dtb here?
http://forum.xda-developers.com/showthread.php?t=2428117
Hi guys,
I bought this device a week ago, highly impressed with it.I'm not interested in tweeking it yet as I'm trying to get my lg o3d also a working cm11.I do follow this forum all the time and also leading as I mess around with my old phone, but if I know something I would try to help. To add sources to cm try this guide, its most recent and very helpful.
http://forum.xda-developers.com/showthread.php?t=2814763
:thumbup:
Sent from my GT-i8190 using XDA Free mobile app

[Q] Build error LG F6

Someone has asked me to build cm-12.1 for the metroPCS LG F6 and I have been doing nothing but fixing errors all day. I am finally stumped on an error because my best friend, Google, doesn't seem to have answers I need lol.
Error:
Code:
frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:66:14: error: 'GpsMeasurementInterface' does not name a type
static const GpsMeasurementInterface* sGpsMeasurementInterface = NULL;
^
The way the tree I forked is setup is a little odd from others I have seen but it had cm11 building and booting. I'm not a genius when it comes to this stuff but if I had a guess, I would say it has something to do with this: https://github.com/AndroidAddict92/android_device_lge_f6mt/tree/cm12/gps
Things I have done:
Updated gps source files in device tree from cm11 to 12.1
deleted the cm repo and ran a fresh repo sync
I would appreciate anyones help on this subject, thanks in advance
AndroidAddict||AA said:
Someone has asked me to build cm-12.1 for the metroPCS LG F6 and I have been doing nothing but fixing errors all day. I am finally stumped on an error because my best friend, Google, doesn't seem to have answers I need lol.
Error:
Code:
frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp:66:14: error: 'GpsMeasurementInterface' does not name a type
static const GpsMeasurementInterface* sGpsMeasurementInterface = NULL;
^
The way the tree I forked is setup is a little odd from others I have seen but it had cm11 building and booting. I'm not a genius when it comes to this stuff but if I had a guess, I would say it has something to do with this: https://github.com/AndroidAddict92/android_device_lge_f6mt/tree/cm12/gps
Things I have done:
Updated gps source files in device tree from cm11 to 12.1
deleted the cm repo and ran a fresh repo sync
I would appreciate anyones help on this subject, thanks in advance
Click to expand...
Click to collapse
Hey @AndroidAddict||AA
Did you work out a fix for this?
Im getting the same errors building LiquidSmooth for my HTC m7.
I cant see a difference between CM12.1 (which compiled first time without a hitch) and the c, c++ docs in my liquid code.
Its got me stumped as gps.h looks ok (Im no pro though) it is referenced. ie
#include "hardware/gps.h"
at the beginning of /frameworks/base/services/core/jni/com_android_server_location_GpsLocationProvider.cpp
Im getting the same errors building LiquidSmooth for my HTC m7.
I cant see a difference between CM12.1 which compiled first time without a hitch and the c, c++ docs in my liquid code.
The only solution I could think of was to add $(TOPDIR)hardware/libhardware/include \ to /build/coor/config.mk ...But it was already there.
Let me know if you figure it out. Ill do the same. Thanks.
Joeisgood99 said:
Hey @AndroidAddict||AA
Did you work out a fix for this?
Im getting the same errors building LiquidSmooth for my HTC m7.
The only selution I could think of was to add $(TOPDIR)hardware/libhardware/include \ to /build/coor/config.mk ...But it was already there.
Let me know if you figure it out. Ill do the same. Thanks.
Click to expand...
Click to collapse
Take the gps.h file from my tree and add it to yours. I think that fixed the error for me
AndroidAddict||AA said:
Take the gps.h file from my tree and add it to yours. I think that fixed the error for me
Click to expand...
Click to collapse
Hi!
I'm running into similar error while building AICP Marshmallow for Xperia L..Can you give me solution? Also I couldn't find your gps.h and honestly, I don't know whether it'll work on MM or not..
TIA.

[Q] Where to start with upbring of CarbonROM?

I have been working on Cyanogenmod 12.1 for the LG G Stylo (codenamed LG G4 Stylus). We've gotten to the point where enough bugs are fixed where we can look at the possibility of porting new ROMs to the Stylo. Several roms are in progress, mainly AICP and XenonHD. I was looking at the possibility of taking up porting CarbonROM.
My approach that I currently have in mind is to sync the CarbonROM sources, along with all the dependencies, vendor files, kernel, and device tree from CM and resolve the errors from lunch and make from there. Is that approach on the right track? What other modifications do I need to make before starting?
Thanks in advance!
Sent from my LG-H631 using Tapatalk
Might take a look here http://forum.xda-developers.com/showthread.php?t=1798056
I'm no developer, but this thread will show you kernel and ROM building from source.

[help]getting device tree for new devices for cyanogenmod builds

Hello Everyone!
I had started building Cyanogenmod-11.0:angel: from source.I had sucessfully completed the repo sync and now searching for getting device tree but my device haven't had any builds at so finally I've found this Cyanogenmod porting guide.
Code:
https://wiki.cyanogenmod.org/w/Doc:_porting_intro[/URL]
I'am trying this guide to get device tree out my device.
Now, I've been trying Method-1 you can see image of method I'am using from attachments.
But I get errors can anyone help me.
https://wiki.cyanogenmod.org/w/Doc:_porting_intro

Categories

Resources