yashsingh1/xdaforums huggingface dataset:
[LG Optimus G (International)] AlandEr0301:
Hi, i've downloaded a Pure Google AOSP Android 5.1 and i used the CM source tree for the S Galaxy Note 3 - Hlte... but i have this error when i type lunch...

You're building on Linux

Lunch menu... pick a combo:

1. aosp_arm-eng

2. aosp_arm64-eng

3. aosp_mips-eng

4. aosp_mips64-eng

5. aosp_x86-eng

6. aosp_x86_64-eng

7. aosp_shamu-userdebug

8. aosp_flounder-userdebug

9. cm_hlte-eng

10. aosp_manta-userdebug

11. aosp_hammerhead-userdebug

12. aosp_mako-userdebug

13. mini_emulator_arm64-userdebug

14. mini_emulator_x86_64-userdebug

15. m_e_arm-userdebug

16. mini_emulator_mips-userdebug

17. mini_emulator_x86-userdebug

18. full_fugu-userdebug

19. aosp_fugu-userdebug

20. aosp_deb-userdebug

21. aosp_flo-userdebug

22. aosp_tilapia-userdebug

23. aosp_grouper-userdebug

Which would you like? [aosp_arm-eng] 9

build/core/product_config.mk:222: *** Can not locate config makefile for product "cm_hlte". Alto.

** Don't have a product spec for: 'cm_hlte'

** Do you have the right repo manifest?

Someone could help me?...

what files i need to edit for compile the source?...

i've use this repos...

https://github.com/CyanogenMod/andro...l_samsung_hlte -b cm-12.1

https://github.com/CyanogenMod/andro...e_samsung_hlte -b cm-12.0

https://github.com/CyanogenMod/andro...ng_hlte-common -b cm-12.1

https://github.com/TheMuppets/propri...vendor_samsung -b cm-12.1
[LG Optimus G (International)] ShinySide:
Are you new to compiling/building?
[LG Optimus G (International)] AlandEr0301:
Yes... XD ... :(
[LG Optimus G (International)] ShinySide:
Not to discourage but bro start with cm, nameless, PA, carbon, etc etc. Pure AOSP and using cm trees and building "pure" aosp for a device that isn't a nexus? Never works out. You're gonna hit 19 billion errors. And if by some crazy chance you get it to finish it most likely won't boot and by the rare chance it does ton of sh!t is going to be broken.
[LG Optimus G (International)] AlandEr0301:
i'm try to make a rom like this one... http://xdaforums.com/showthread.php?t=2659307 :/ but with lollipop... i dont like the mods that have the CM, slim... etc roms... :/ i prefer pure android... so anyone build one... i will do it... but is look some hard to make it...
[LG Optimus G (International)] Daniel Kng:
Alander, Make a photo with the files in /devices/yourdevice/yourdevice
[LG Optimus G (International)] dadi11:
I have compiled some roms before, but now I'm getting this error in every build:

" error: 'struct venc_entropycfg' has no member named 'entropysel' "

full: http://pastebin.com/DVqLR160

I tried to fix this but nothing helps.

https://github.com/Loller79/Solid_Kernel-GEEHRC

https://github.com/dadi11/device_lge_geehrc
[LG Optimus G (International)] MatheusAlves:
Hey bro i wanna start compiling, but i've downloaded a compressed source (CM10.2_JellyBean.7z). What i need to do to compile this? Thx
[LG Optimus G (International)] Divyansh747:
:D great thread :cool:
[LG Optimus G (International)] S-trace:
I'm installed lib32z1 package on mine Kubuntu 15.10 AMD64 and it helped:

sudo apt-get install lib32z1
[LG Optimus G (International)] eletendre84:
Awesome thanks. I've already synced the aokp source to my computer. That is what I'm trying to build. So I should sync a different git?
[LG Optimus G (International)] Haze028:
OK, did you already make a local_manifest then? and sync'd the device, kernel and vendor from my github? If so, just delete your device/lge/geeb, vendor/lge/geeb, and kernel/lge/geeb folders.... then change your local_manifest with the cyanogenmod one for sprint(From the OP) and do a repo sync again... that will get you the tree's you need.

Then just continue on normally as per the guide.
[LG Optimus G (International)] eletendre84:
The cm for sprint will give me the right vendor and device trees? What about kernel?
[LG Optimus G (International)] Haze028:
I don't think the kernel i use for my phone plays well with yours.. use the whole local manifest for cyanogen from the op. This will get you kernel, device general, device sprint and vendor from the TeamLGOG github for 4.2.2 and your device, then re-sync and continue with building.
[LG Optimus G (International)] eletendre84:
K thanks. Do I need the vendor setup stuff from post #2 to setup aokp on geeb?
[LG Optimus G (International)] Haze028:
Yes, follow the whole guide. For the aokp vendor setup you will need to direct to your sprint device tree, so some minor edits will be needed on top of what i have in post 2.

Just need to replace every 'geeb' from post 2 instructions with 'geehrc4g_spr_us' That should direct everything where it needs to go.
[LG Optimus G (International)] eletendre84:
OK. Am I missing something or does the local manifest for cm10 seem to be missing lines for device and kernel trees? Maybe I'm just stupid....
[LG Optimus G (International)] Haze028:
all of the repos are there... though i can see it's not the most clearly laid out... here is what you would need for your local manifest
[LG Optimus G (International)] eletendre84:
So, I have everything copied properly. I have double checked everything. all i get is fatal errors, saying the Git repository cannot be found. any ideas??
[LG Optimus G (International)] Haze028:
Yes, sorry, I fogot to make one other edit to your manifest. CM10 uses github as it's default remote, AOKP does not. You need to add remote="aokp" between name='' '' and revision=" " on each of the repo's in your local manifest.

so:

<project path="device/lge/geehrc4g_spr_us" name="TeamLGOG/android_device_lge_geehrc4g_spr_us" revision="cm-10.1"/>

would become:

<project path="device/lge/geehrc4g_spr_us" name="TeamLGOG/android_device_lge_geehrc4g_spr_us" remote="aokp" revision="cm-10.1"/>

Now you should be good.. sorry forgot about the remote when I posted what your local_manifest should look like.
[LG Optimus G (International)] spleef:
following this guide and a few tips from haze and in source building now thanks buddy other than the few typos guide is fantastic and so easy a caveman could do it
[LG Optimus G (International)] eletendre84:
Hey haze....ive fixed a few compiler errors, but...i cant figure this one out. any ideas??

device/lge/gee-common/overlay/packages/apps/Torch/res/values/config.xml:20: error: Resource at useCameraInterface appears in overlay but not in the base package; use <add-resource> to add.
[LG Optimus G (International)] Haze028:
The overlay in your device tree is referencing a resource not in your veraion of torch.... You can just delete that file from your overlay directory.... Follow the path it states in your error
[LG Optimus G (International)] eletendre84:
Haze, this built successfully, but, i only have a black screen. any ideas?? do i need a different kernel or anything?
[LG Optimus G (International)] brothaedhung:
I kept getting a black screen with my CM builds until I changed the name of the vendor file directory from "vendor_lge_gee" to just "gee". One of the make files in the common or device directory can't find the files to transfer but it doesn't tell you or stop the build.
[LG Optimus G (International)] spleef:
dude following your guide ive been able to source build three roms so far much thanks.... here is link to the rom thread

http://xdaforums.com/showthread.php?t=2235291
[LG Optimus G (International)] Haze028:
That's awesome! Glad I could help. Building is addictive....I'm going through withdrawal having to step away for a few weeks. Though I'll try to put out a resync of my roms soon.

Great news though spleef, keep up the good work
[LG Optimus G (International)] iamtha1:
What about e.l.e........... Cant forget e.l.e

Via LG OG running Rootbox 4.2.2
[LG Optimus G (International)] cdub50:
CM 10.1 for ATT

Hey Guys,

I am trying to build CM 10.1 using the latest wifi drivers from here https://www.codeaurora.org/gitweb/ex...n/?p=prima.git for ATT LGOG, so Mystery Emotions asop kernel will having working wifi for E970. Currently if you install the kernel it breaks wifi. I was able to sync to the CM repo for ATT, but I am not sure how to add the drivers. Do I have to build the drivers from source then add them or do I need to add the Kernel before I build? I am totally new to building android so any help or directions on that step would be awesome and appreciated. Thanks again Haze for the great post.

Thanks,

Cdub50
[LG Optimus G (International)] chadouming:
You need to add the 3 files in firmware_bin to their respective place in the device tree.
[LG Optimus G (International)] kjinx01:
Nice guide... Will it work on latest android marshmallow?? Or lollipop??
[LG Optimus G (International)] krassermensch:
I confirm, it does on a cm based ROM and most probably on every other ROM, too. Just make sure you're using Ubuntu 14.04. On my 15.10 running computer there's a small difference at the step with the installation of required libs. Furthermore be carefull at the vendor step as some devices, e.g. grouper, need multiple vendor directories. Just google for device related informations. But yep, it works for CM13 (Marshmallow). If you need any further help feel free to ask ;)
[LG Optimus G (International)] knmurthy:
I would like to build Chroma ROM on my own for Nexus 4. I have followed the entire steps in the guide. Build command given in manifest is not working. "./build.sh device -j#". Please help.
[LG Optimus G (International)] krassermensch:
OK, just to make sure you did everything right:

-You successfuly did a repo sync (download about 30GB)

-You downloaded the kernel sources, device sources and vendor sources for your device and extracted them to kernel, device and vendor folder (the best would be to add these sources to your roomservice.xml, if you don't know how to do that, just respond and I'll tell ya)

- you ran source build/envsetup.sh in your terminal in the root of your working_dir

- you ran breakfast mako

If you did all these steps there's some kind of shortcut for the lunch and make command to make it easier. If all the previous things have been done correctly you finally just need to run the command brunch mako and your build for mako will be initialized :)
[LG Optimus G (International)] knmurthy:
I did all the above correctly. After running . build/envsetup.sh below details are displayed.

including device/asus/deb/vendorsetup.sh

including device/generic/mini-emulator-arm64/vendorsetup.sh

including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh

including device/huawei/angler/vendorsetup.sh

including device/lge/bullhead/vendorsetup.sh

including device/moto/shamu/vendorsetup.sh

including vendor/chroma/vendorsetup.sh

including sdk/bash_completion/adb.bash

After running breakfast mako command I am getting below error.

narasimha@narasimha-desktop:~/chroma$ breakfast mako

breakfast: command not found

I tried to find roomservice.xml in Source directory but the file is not found.
[LG Optimus G (International)] krassermensch:
If breakfast command can't be found that means that the file envsetup.sh isn't sourced correctly.

Try following:

Open terminal in your build_dir

Run source build/envsetup.sh as the script envsetup sh is in the build directory

In the same terminal session run breakfast mako and your roomservice.xml should be created automatically. If you want to know how to setup roomservice.xml manually just respond to this message.

Finally run brunch mako in the same terminal session. If the error occurs again respond to this post as well. Good luck :)
[LG Optimus G (International)] knmurthy:
Thank you for your support.

I decided to build PureNexus ROM for Nexus 4 as I could build PureNexus for N5 successfully. PureNexus ROM officially do not support N4. Can you guide me which files to modify to build N4. Also can you suggest device tree, Kernel, Vendor tree for the same.

I feel Chroma source on Github is not fully available as I could not find Kernel source for N4 on Chroma repository.
[LG Optimus G (International)] krassermensch:
You have to be carefull as most device and kernel trees are adapted to one specific ROM. In my case for example I took a device, a kernel and a vendor tree for cm13. When I breakfasted I saw an error message that the file cm.mk in my device tree couldn't find the directory vendor/cm. So I went to vendor directory, looked for the cm directory and it wasn't available. As a result I looked for a folder which could have the same function as the cm directory and I found it. So I went to the cm.mk, looked for the line vendor/cm and replaced the cm by the folder name of the folder with the same function. So like that I went on until my terminal didn't give any error message no more. Then I initialized the build and another error occured. I watched the error message, looked for the file which caused the error and fixed it. Also keep in mind that cyanogenmod based Roms use a so called CAF kernel and aosp based Roms a so called aosp kernel. You have to decide which kernel source you need. Also keep in mind that every file you edit will be restored to stock when you repo sync the next time so consider to do following with every file you edit:

git add filename.fileextension

git commit -m "information regarding the code you changed"
[LG Optimus G (International)] fedoud32:
almost build is complete and i get error while packing the ota zip file , please help me to fix this problem!!!!!!
[LG Optimus G (International)] EmreAkz:
can somebody help me to fix that?

warning: string 'wifi_display_notification_message' has no default translation.

warning: string 'wifi_display_notification_title' has no default translation.

device/htc/m7-common/overlay/frameworks/base/core/res/res/values/config.xml:273: error: Resource at config_deviceHardwareWakeKeys appears in overlay but not in the base package; use <add-resource> to add.

device/htc/m7-common/overlay/frameworks/base/core/res/res/values/config.xml:281: error: Resource at config_perf_profile_prop appears in overlay but not in the base package; use <add-resource> to add.

device/htc/m7-common/overlay/frameworks/base/core/res/res/values/config.xml:282: error: Resource at config_perf_profile_default_entry appears in overlay but not in the base package; use <add-resource> to add.

make: *** [/home/emreakz/omni/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Fehler 1

make: *** Datei »/home/emreakz/omni/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk« wird gelöscht

real	2m0.796s

user	1m14.228s

sys	0m6.200s

emreakz@emreakz-desktop ~/omni $
[LG Optimus G (International)] dadi11:
From:

device/htc/m7-common/overlay/frameworks/base/core/res/res/values/config.xml

Remove / comment out:

config_deviceHardwareWakeKeys

config_perf_profile_prop

config_perf_profile_default_entry

Sent from LG G3
[LG Optimus G (International)] EmreAkz:
thx u but i have the next error message

make: *** Keine Regel vorhanden, um das Target »/home/emreakz/omni/out/target/common/obj/JAVA_LIBRARIES/qcmediaplayer_intermediates/classes.jar«,

benötigt von »/home/emreakz/omni/out/target/common/obj/PACKAGING/boot-jars-package-check_intermediates/stamp«, zu erstellen. Schluss.
[LG Optimus G (International)] F-L-Y-E-R:
Hello, I just upgraded my ubuntu to 16.04 and found out that it doesn't support openjdk-7 anymore. Can I use openjdk-8 to compile CyanogenMod 13? I found this COMMIT which suppose to allow it but it doesn't :confused:
[LG Optimus G (International)] krassermensch:
It seems to be possible to install openjdk 7 if you install this package (http://ftp.uk.debian.org/debian/pool/main/t/tzdata/tzdata_2016c-0%2bdeb7u1_all.deb) and after that you need to install openjdk from an unoficial repo like this one (https://launchpad.net/~no1wantdthisname/+archive/ubuntu/openjdk-fontfix). Let me know if it works for you :)
[LG Optimus G (International)] F-L-Y-E-R:
Actually you can build CM with openjdk-8, the commit I mentioned in my post works I just needed to execute this from my build directory

export EXPERIMENTAL_USE_JAVA8=true
[LG Optimus G (International)] krassermensch:
Wow, really? Interesting to know. I'm thinking about upgrading to 16.04, too. I'll try this commit :)

If you want to automatically export that you could try to add it to your .bashrc. This would make some things easier.
[LG Optimus G (International)] GMCadiom:
can u tell me how to make :

android_device_lenovo_s850

android_vendor_lenovo_s850

please please ????!

and what is required to be ready for that and what tools ??
[LG Optimus G (International)] krassermensch:
OK, you first need to install the required build tools. Depending on your Linux distro this can vary slightly. Then you need to repo init the rom you want to compile after setting up repo and exporting it. When it's initialized I recommend runing the command repo sync -f. When everything's synced you need to go to your device folder in the working_dir and do a git clone of the suitable device tree you found. After that you need to do the same with the vendor source and the kernel source. Keep in mind that everything should be compatible with your ROM otherwise you'd need to adapt some things manually. Yeah, what's the problem on your side?
[LG Optimus G (International)] GMCadiom:
yep

and i want to start build CM12.1 first to test then RR or CM13

i have installed ubuntu 14.4 lts 64Bit

my device : lenovo s850

kernel : 3.4.67

base stock rom : KK 4.4.2
[LG Optimus G (International)] krassermensch:
Yeah, what's the problem, bro? You followed the guide and then? Does your build fail? Do you need help seting up something?
[LG Optimus G (International)] GMCadiom:
i really need u on that bro :fingers-crossed: :fingers-crossed:

thanks for ur help man ;) ;)

i need to learn how to make my MTK

android_device_tree

android_vendor_tree

make my device tree to make a cm rom from source

thanks again for ur replay :angel: :angel:
[LG Optimus G (International)] krassermensch:
Wow, hey, wait, your phone uses a Mediatek Chipset? Normally it's not possible to compile for Mediatek as the required resources aren't published, pitty...
[LG Optimus G (International)] GMCadiom:
:crying::crying:

so now way to make tree to my device

it lenovo s850 with mt6582 chip

and what is resources like ??

can i get it from my device ??

i have all data for all my partitions

i am really thank u for ur replaying me and ur help <3 <3
[LG Optimus G (International)] krassermensch:
That's a bit anoying but it seems like there's no mediatek phone on the market that has open kernel sources so you cannot do anything. Maybe Lenovo will send them to you if you ask for them but that's unprobable. Sry, but actually you cannot do anything as a normal person.

Edit: I guess you're lucky. It seems like the sources for your device were published by Lenovo. Not on Github so you cannot add it to your roomservice but here you can get the sources for your device http://support.lenovo.com/de/de/downloads/ds100533
[LG Optimus G (International)] GMCadiom:
Thanks bro for ur help :o :angel:

i downloaded that's open source but!!

one last ask

how i use it ?? how i can use it to build CM12.1 from source ??!! :crying: :crying:

thanks in advance bro

That's SS from the folders in the open source

View attachment 3732908

View attachment 3732909

View attachment 3732910
[LG Optimus G (International)] krassermensch:
Uhm, have you really read the guide on page 1? You need to run Linux to build a ROM currently. Also you should just follow the instructions in the Readme of the ZIP I provided you. However the sources were updated at the times of KitKat so CM12.1 shouldn't work...
[LG Optimus G (International)] side:
hello!!

home/side/android/omni/out/target/product/jflte/obj/SHARED_LIBRARIES/libpowermanager_intermediates/import_includes

make: *** No rule to make target `/home/side/android/omni/out/target/product/jflte/obj/SHARED_LIBRARIES/libqdutils_intermediates/export_includes', needed by `/home/side/android/omni/out/target/product/jflte/obj/STATIC_LIBRARIES/libexsurfaceflinger_intermediates/import_includes'. Stop.

again and again :'(

any ideas
[LG Optimus G (International)] GMCadiom:
i already on Ubuntu 14 and using it

and where is the ZIP file !!

how i can make my device tree ??
[LG Optimus G (International)] princesaska:
I have a repo only folder...where shuld i use it
[LG Optimus G (International)] zainifame:
which one folder i must place the gcc, prebuilt or prebuilts?

and can u give little explanation for that twice folder? thanks
[LG Optimus G (International)] aleasto:
Can I use device tree from any team? Say i want to compile rom X which is based on aosp, can I use device tree from cyanogenmod's github?
[LG Optimus G (International)] Holmes.Sherlock:
To have a custom ROM for any device, is it mandatory to have all three (device+vendor+kernel) provided by the device vendor?
[LG Optimus G (International)] :
Sir, i downloaded ,android aosp open source tree ,,in desktop directory of ,,linux 16:10 ,next i downloaded open source ,,kernal and android files from lg website ,,as i am using lg ,,,in open source lg ,,i got 2 tar files,,1 android.tar in that tar i got external ,,framework,,vendor,, ,2nd is kernal tar,,and one readme.txt,, i opened it ,,it showing that untar android. tar and merge ,in download.android source tree ,,but where i am not getting ,,please tell me where ,,please sir
[LG Optimus G (International)] dev.kasibhatla:
Making a fresh tree

My device doesn't have a page or a tree made. Could you please assist in making my own?

Thank you
[LG Optimus G (International)] HarshOne:
Any solution for this error?

Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/home/harshone/android/lineage/out/target/product/m8/obj/KERNEL_OBJ/usr', needed by '/home/harshone/android/lineage/out/target/product/m8/obj/STATIC_LIBRARIES/libsdcard_intermediates/sdcard.o', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/home/harshone/android/lineage'

#### make failed to build some targets (02:30 (mm:ss)) ####

:confused::confused::confused:
[LG Optimus G (International)] Suraaj Vashisht:
I'm making AOSP for land getting this error:

device/xiaomi/land/board/qcom-sepolicy.mk:2: error: device/qcom/sepolicy/sepolicy.mk: No such file or directory

Plz help
[LG Optimus G (International)] dev.kasibhatla:
You're missing that file in the device tree.

Go to that folder device/qcom

Check if there's a folder sepolicy. If yes check if the makefilw exists within.

If not, download it and put it in the right place

---------- Post added at 08:43 AM ---------- Previous post was at 08:41 AM ----------

Just make the required folder for now.
[LG Optimus G (International)] Androidfan@:
doogee f5

Hello :o I'm new at android developing and i want to build a rom from aosp source for my doogee f5 phone

What are the requiments to build an android rom from source aosp (at least android marshmallow:D)for my doogee f5?

I like pure android 6.0 :D

can anyone help me??

thanks :o:D

p.s. my device (doogee f5) isnt very popular
[LG Optimus G (International)] DiamondJohn:
Read the OP

Go through step by step

come back with a specific question at which step you are having problems with
[LG Optimus G (International)] Androidfan@:
my problem is that I have a device tree for doogee f5 but it is for cyanogenmod 12 (lollipop)

how can I "update" the device tree for android marshmallow

And I don't understand it really good the last part of compiling a rom:(

the part of "connecting" the device config with the aosp source code and than building the rom

I have seen many videos and in the last part is a device list and I have to select my device :rolleyes:

:confused:

thanks for replying:)

p.s. the person who built my device tree ,added the kernel and I think the vendor tree too
[LG Optimus G (International)] ZeroVirus:
anyone know how to remove default gallery and add another gallery in source??
[LG Optimus G (International)] cdub50:
would the files need to be placed in device/lge/gee-common/wifi? I am just making an educated guess.
[LG Optimus G (International)] chadouming:
Check the name, don't have a computer in front of me to check.