yashsingh1/xdaforums huggingface dataset:
[LG Optimus G (International)] Haze028:
Issue is Ubuntu related... Google how to unhold packages and free up the OK me causing an error... Or if it possible reinstall Ubuntu (obviously not ideal if its used for anything other than just building android)
[LG Optimus G (International)] nch26:
this make me crazy man.. thanks.
[LG Optimus G (International)] mathsz:
Definitely Ubuntu related. But has it says, replace libgl1

libgl1-mesa-glx:i386 by

libgl1-mesa-dri:i386

This will allow you to install packages.

Xubuntu is a lightweight alternative

:)

Zero problems up to here.
[LG Optimus G (International)] nch26:
You are awesome
[LG Optimus G (International)] mathsz:
entiendo un poco espanol.

You will find, as you go building android, that most of what you need to do, to change or investigate will be in the error message you will get. :)

the key is having patience and using google a lot. have fun
[LG Optimus G (International)] nch26:
Again same error:

naacho@ubuntu:~/Escritorio/CM10.2$ repo init -u https://github.com/CyanogenMod/android.git -b cm-10.2

error: manifest required for this command -- please run init

i will apreciate your help. I checked all packages installed, fastboot adb, etc.

---------------------------------------------

Its weird since i do this only in desk and not on cm10.2 folder and all okey.
[LG Optimus G (International)] Haze028:
That is weird... Try repo init -u git://github.com/CyanogenMod/android.git -b cm-10.2

I've had trouble before using HTTPS instead of git. Even though that how they say.... Anyways I'll see if I can find anything to help ya out
[LG Optimus G (International)] nch26:
And when i do it in my desktop, repo sync fails. I will leave you more news at night :) hope im not disturb you, thanks
[LG Optimus G (International)] Haze028:
It fails with the same error as http:// I assume?

Did a quick Google search... See if this applies to you http://vanuitert.org/wordpress/source-code/repo-init-error/
[LG Optimus G (International)] nch26:
I dont remember exactly, i remember that repo sync in desk give me easy 5 o 6 errors. At morning i will leave you full errors of repo sync and if changing http for git worked. Thanks
[LG Optimus G (International)] zaryab360:
Hello!

First of all big thanks to [MENTION=4153704]Haze028[/MENTION] for this awesome TuT ?

I just want to confirm few things:

-My PC specs is AMD quad core (2.20 GhZ) model 9550. 4GB RAM 80GB free hard drive space I'm running Ubuntu 12.04. My internet speed is 4MB (?)

Can i good to go? ?

Any reply will be appreciated ?
[LG Optimus G (International)] Haze028:
You'll be able to build with that. The more ram/CPU cores the faster it will build. My machine is a quad core with 8 GB ram.

A complete build will take in the area of 30-40gb hard drive space, so you're good there too.

Run your make otapackage with -j9 (9 jobs being processed at a time). You'll be looking in or about 2 hours to build, give or take.
[LG Optimus G (International)] zeetherocker:
I've built PAC from source for a few devices...

In the OP I saw the tweaking thread

There you have explained how to add apks to my build... But I wanna know how to remove an apk...

For example if I wanna remove DSP manager from my builds how to do that..??

Thanks in advance ...

And great tutorial btw..:)
[LG Optimus G (International)] Haze028:
I'll have to update that. To remove an app from your build you need to find which make file is saying to add it. Search for DSP in your device.mk, if not there check the cm/PAC/paranoid vendor repo.... I just can't recall where it is called for.

If you can't find it, delete the DSP folder from source and try to build.. See which makefile complains and delete the reference to DSP from said make file

Hope that helps

Edit: I rambled there a bit, simply put just remove it from the make file its in to exclude it from your build.
[LG Optimus G (International)] geokilla:
Noticed that only Java 6 is used. Can I update to Java 7?
[LG Optimus G (International)] ronasimi:
I got some flack about a comment I made on the Arch Linux AUR about java6-jdk and java6-jre PKGBUILDs, and apparently google says use Java 7 now. (http://source.android.com/source/initializing.html#installing-the-jdk

Installing the JDK

The latest version of Android in the Android Open Source Project (AOSP) requires Java 7. On Ubuntu, use OpenJDK.

Java 7: For the latest version of Android

$ sudo apt-get update
$ sudo apt-get install openjdk-7-jdk
Optionally, update the default Java version by running:

$ sudo update-alternatives --config java
$ sudo update-alternatives --config javac

But CM still says use jdk6. Give it a try and let us know :)
[LG Optimus G (International)] Haze028:
I have successfully built using 7 before.... So if Google is saying use 7 now, its probably the way to go.

I'll update the guide accordingly. Thanks guys for pointing that out
[LG Optimus G (International)] geokilla:
Just tried updating to Java 7. However FireFox is still stuck on Java 6 so I'm not sure if it worked or not.. Application manager says I have Java 7 installed though. How can I remove everything Java related and then do a clean install of Java 7? I have some leftover Java 6 stuff, like Java VM or whatever.
[LG Optimus G (International)] Haze028:
Try this: http://unix.stackexchange.com/quest...ava-6-and-install-java-jdk-7-on-linux-mint-13
[LG Optimus G (International)] smartyyadav:
Pls help me

i am unable to find my device repo. I searched my device forum but i didn't find link to my device repo even i am unable to know where can i find my device specific repo. I searched on github at sonyxperiadev still i didn't find my device sources. My device is Xperia ZR and its codename is Dogo. Pls help me to find me device specific repo pls i spent 4 hrs to search for it but in vein
[LG Optimus G (International)] Haze028:
Googling is an art, took me 10 mins this morning to track down your repos

https://github.com/CyanogenMod/android_device_sony_dogo

Look at cm.dependencies for the other cyanogen repos you'll need. You will then need a vendor repo. I would use themuppets

https://github.com/TheMuppets/proprietary_vendor_sony

And that's it. I think there were like 5 or 6 repos you needed from CyanogenMod s github. And the one vendor from themuppets
[LG Optimus G (International)] smartyyadav:
thanks bro, i found device tree on CyanogenMod page but couldn't find vendor tree thats why i asked for help.

thanks again bro
[LG Optimus G (International)] Haze028:
NP glad to be of help. wasn't trying to be rude, merely shameless self promotion.
[LG Optimus G (International)] Devhost97:
When trying to compile receives this error, does anyone have any idea how to solve this problem?

target Generated: libwebcore <= external/webkit/WebCore/inspector/InjectedScriptHost.idl
target Generated: libwebcore <= external/webkit/WebCore/inspector/InspectorBackend.idl
target Generated: libwebcore <= external/webkit/WebCore/inspector/InspectorFrontendHost.idl
target Generated: libwebcore <= external/webkit/WebCore/notifications/Notification.idl
target Generated: libwebcore <= external/webkit/WebCore/notifications/NotificationCenter.idl
target Generated: libwebcore <= external/webkit/WebCore/websockets/WebSocket.idl
target Generated: libwebcore <= external/webkit/WebCore/dom/make_names.pl
target Generated: libwebcore <= external/webkit/WebCore/dom/make_names.pl
given is experimental at external/webkit/WebCore/dom/make_names.pl line 207.
when is experimental at external/webkit/WebCore/dom/make_names.pl line 208.
when is experimental at external/webkit/WebCore/dom/make_names.pl line 211.
target Generated: libwebcore <= external/webkit/WebCore/dom/make_names.pl
given is experimental at external/webkit/WebCore/dom/make_names.pl line 207.
when is experimental at external/webkit/WebCore/dom/make_names.pl line 208.
when is experimental at external/webkit/WebCore/dom/make_names.pl line 211.
Unknown parameter a interfaceName for tags/attrs
make: *** [out/target/product/shakira/obj/STATIC_LIBRARIES/libwebcore_intermediates/WebCore/HTMLElementFactory.h] Błąd 255
make: *** Oczekiwanie na niezakończone zadania....
Unknown parameter a interfaceName for tags/attrs
make: *** [out/target/product/shakira/obj/STATIC_LIBRARIES/libwebcore_intermediates/WebCore/HTMLNames.h] Błąd 255
given is experimental at external/webkit/WebCore/dom/make_names.pl line 207.
when is experimental at external/webkit/WebCore/dom/make_names.pl line 208.
when is experimental at external/webkit/WebCore/dom/make_names.pl line 211.
Unknown parameter a interfaceName for tags/attrs
make: *** [out/target/product/shakira/obj/STATIC_LIBRARIES/libwebcore_intermediates/WebCore/V8HTMLElementWrapperFactory.h] Błąd 255
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.
[LG Optimus G (International)] geokilla:
I understand this guide is for ROMs, but is there a guide on how to port kernels? There's a couple kernels I want to try and port but I don't know how.
[LG Optimus G (International)] hoffdamann:
Hey guys, first off thanks for making this thread!

So I'm a noob and this is my first time setting up a build environment, and im running into this issue when "Installing Packages"

: Reading package lists... Done

Building dependency tree

Reading state information... Done

gnupg is already the newest version.

libc6-dev is already the newest version.

zip is already the newest version.

Some packages could not be installed. This may mean that you have

requested an impossible situation or if you are using the unstable

distribution that some required packages have not yet been created

or been moved out of Incoming.

The following information may help to resolve the situation:

The following packages have unmet dependencies:

build-essential : Depends: dpkg-dev (>= 1.13.5) but it is not going to be installed

E: Unable to correct problems, you have held broken packages.

Any help would be greatly appreciated! Running Ubuntu 14.04 on a Macbook.
[LG Optimus G (International)] dbaler:
Same problem
[LG Optimus G (International)] geokilla:
I'm trying to sync Carbon to June 2nd or June 3rd. Does anyone know what command I need to run in order to do that? I tried repo forall -c 'git checkout `git rev-list --all -n1 --before="2014-06-02 15:00"`' but it doesn't work.
[LG Optimus G (International)] YamyYugi:
thanks for this tutorial.. i try in home creat a 4.4.3 rom for my clone S4, but on my virtual machine is to slowww, the sync normaly takes 30m/45m and mine in 3h dont complete yet, so i give up =(. but very nice tutorial, in android.developer helps to much. thanks guys, i will try end i have a nice pc.
[LG Optimus G (International)] x1123:
what package you going to install ... GOOD GUIDE FOR UBUNTU 14.04 preparation for android rom build
[LG Optimus G (International)] ShinySide:
Holy crap that is the longest most drawn out guide ive ever seen for setting up a build environment. That could be simplified and make it a lot easier by installing all packages with 2 commands (one for java and one for everything else) instead of one by one like that appears to be.
[LG Optimus G (International)] ronasimi:
Has anyone tried switching to the snapdragon-llvm-3.4-compiler that Qualcomm released? I can't seem to find a guide on setting it up.
[LG Optimus G (International)] geokilla:
Not sure if this is what you're looking for. Builduntu
[LG Optimus G (International)] ShinySide:
Na, I just check out guides when they are posted. Im already set up and just use my script to install everything I need by just running it
[LG Optimus G (International)] YamyYugi:
hey guys, i have a S4 clone from goophone, its possible i can make a rom with that guide? i do some steps but i need some help on this, i do this:

cd ~/Downloads

unzip adt-bundle-linux-x86_64-20131030.zip

mv adt-bundle-linux-x86_64-20131030 ~/android

gksudo gedit ~/.bashrc

Add these lines to the end:

# Android tools

export PATH=${PATH}:~/android/sdk/tools

export PATH=${PATH}:~/android/sdk/platform-tools

export PATH=${PATH}:~/bin

gksudo gedit ~/.profile

Add these lines to the end:

PATH="$HOME/android/sdk/tools:$HOME/android/sdk/platform-tools:$PATH"

gksudo gedit /etc/udev/rules.d/51-android.rules

Copy and paste this in:

#Garmin-Asus

SUBSYSTEM=="usb", ATTR{idVendor}=="091E", MODE="0666"

#Google

SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666"

#HTC

SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666"

#Huawei

SUBSYSTEM=="usb", ATTR{idVendor}=="12d1", MODE="0666"

#K-Touch

SUBSYSTEM=="usb", ATTR{idVendor}=="24e3", MODE="0666"

#KT Tech

SUBSYSTEM=="usb", ATTR{idVendor}=="2116", MODE="0666"

#Kyocera

SUBSYSTEM=="usb", ATTR{idVendor}=="0482", MODE="0666"

#Lenevo

SUBSYSTEM=="usb", ATTR{idVendor}=="17EF", MODE="0666"

#LG

SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666"

#Motorola

SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666"

#NEC

SUBSYSTEM=="usb", ATTR{idVendor}=="0409", MODE="0666"

#Nook

SUBSYSTEM=="usb", ATTR{idVendor}=="2080", MODE="0666"

#Nvidia

SUBSYSTEM=="usb", ATTR{idVendor}=="0955", MODE="0666"

#OTGV

SUBSYSTEM=="usb", ATTR{idVendor}=="2257", MODE="0666"

#Pantech

SUBSYSTEM=="usb", ATTR{idVendor}=="10A9", MODE="0666"

#Philips

SUBSYSTEM=="usb", ATTR{idVendor}=="0471", MODE="0666"

#PMC-Sierra

SUBSYSTEM=="usb", ATTR{idVendor}=="04da", MODE="0666"

#Qualcomm

SUBSYSTEM=="usb", ATTR{idVendor}=="05c6", MODE="0666"

#SK Telesys

SUBSYSTEM=="usb", ATTR{idVendor}=="1f53", MODE="0666"

#Samsung

SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666"

#Sharp

SUBSYSTEM=="usb", ATTR{idVendor}=="04dd", MODE="0666"

#Sony Ericsson

SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", MODE="0666"

#Toshiba

SUBSYSTEM=="usb", ATTR{idVendor}=="0930", MODE="0666"

#ZTE

SUBSYSTEM=="usb", ATTR{idVendor}=="19D2", MODE="0666"

type android to see if it worked, or just plug in a device and type adb devices

If fastboot isn't working right for you check here:

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

# fastboot protocol on grouper/tilapia (Nexus 7)

SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e40", MODE="0600", OWNER="<username>"

(you might have to reboot again)

so i need help on

gksudo gedit /etc/udev/rules.d/51-android.rules

i have a mtk 6589 s4 clone, i need put more any drive or config something? bcse i next i do: abd devices and apear that:

adb: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

help please :S
[LG Optimus G (International)] Haze028:
Sorry for the delayed reply, moved recently and took a lot longer than expected to get my internet up and going.

Not sure if you still need help with the setup? As for the device specific stuff(driver/kernel...) I'm not sure how compatible things will be. If there isn't already compatible kernel vendor and device repos available for your device then you've beyond the scope of this guide and will need to find/create these first.
[LG Optimus G (International)] codingninja62001:
same error help

Hey im having the same error but im not finding the declaration in gralloc_priv.h for it can you post the line that declared it Thanks

if your confused post this

GRALLOC_USAGE_PRIVATE_INTERNAL_ONLY = (what it says),
[LG Optimus G (International)] Haze028:
I believe your error is that it cannot find the deceleration either. It will need to be added to the correct gralloc_priv.h

I'm at work but I'll look into more tonight to see if I can find exactly where the deceleration should be added if you're not able to get it going.
[LG Optimus G (International)] Navneet Suresh:
Am building aosp for taoshan(Xperia L) and build goes well but after some time throws this error :

Copying: out/target/common/obj/JAVA_LIBRARIES/mms-common_intermediates/classes.jar
Aidl Preprocess: out/target/common/obj/framework.aidl
Docs droiddoc: out/target/common/docs/api-stubs
DroidDoc took 42 sec. to write docs to out/target/common/docs/api-stubs
Copy: apicheck (out/host/linux-x86/obj/EXECUTABLES/apicheck_intermediates/apicheck)
Install: out/host/linux-x86/bin/apicheck
Checking API: checkapi-last
Checking API: checkapi-current
make: *** No rule to make target `out/target/product/taoshan/kernel', needed by `prebuilt'. Stop.

Can you guide me further :)
[LG Optimus G (International)] ShinySide:
Aosp or aosp based like cm, omni , nameless etc?
[LG Optimus G (International)] Navneet Suresh:
Aosp

---------- Post added at 08:39 AM ---------- Previous post was at 08:12 AM ----------

Leave it I was able to figure out a fix myself.
[LG Optimus G (International)] Riku Azhurlar:
Bane of my existance

so im trying to build pacrom for my device and it keeps failing miserably and i dont know why and every time its the same god forsaken erro staring me in the face heres the error

make: *** [/home/darian/pac/out/target/product/w7ds/obj/SHARED_LIBRARIES/libgui_intermediates/Surface.o] Error 1

any ideas?
[LG Optimus G (International)] fjsferreira:
hi,

I've been building some ROMs for the lg gee, namely, aokp and aicp. They go fine, without any issue, the problem is, when installing them on the device, it then won't get past bootanimation.

I can't adb logcat, it only says --waiting for device-- no matter what, adb devices shows it but says it's offline.Windows device manager shows the "android adb composite device as usual". It even won't adb logcat if I add ro.adb.secure=0 and ro.secure=0

I can only get last_kmsg - http://pastebin.com/Nv6DjyRk

Here's the rom itself (aokp gee, jollaman's kernel, device and vendor)

https://mega.co.nz/#!pYMC1CJJ!fFVE3I-kM9AIp6DjL016dPQe76H2GeD_878vt0VLGhk

If anyone has a little time, could you take a look at it? I get the same errors even when installing other kernels.

I think it would be great to have both aokp and aicp (this one isn't even available for gee or gproj), they build fine but won't boot :(
[LG Optimus G (International)] nerdyblonde:
I thanked your OP, but just wanted to post and say thanks for taking the time to write the guide.. It is very easy to follow, and worked like a charm. I'm sure many others appreciate it just as much as I do. It's people like you that make XDA one of the best, if not the best, Android sites on the WWW. . Thank you! :good: :highfive:
[LG Optimus G (International)] epicboy:
Hey, I'm trying to build Carbon Rom for my device. But I get this error.

And here is the bootanimation section of my common.mk

Any ideas on how i can fix this?
[LG Optimus G (International)] Haze028:
You could go into vendor/carbon/prebuilt/common/bootanimation/

And find the boot animation for your screen size and just change the $(target boot....).zip to whichever bootani.zip you went with from the folder. Which would make all that finding it out code unnecessary.

Is your repo up to date?
[LG Optimus G (International)] epicboy:
I will try your suggestion. And yes, I always do a repo sync before building.

EDIT: okay, so I just tried your suggestion. Still, same issue. But now I also get this
[LG Optimus G (International)] bangdes:
I'll try...
[LG Optimus G (International)] ronasimi:
OK, I'm doing a CM-12.0 build and my out zip looks like this:

[IMG="zip root"]http://i.imgur.com/aqtuezt.png[/IMG]

and the system directory just has a bin directory inside:

[IMG="system dir"]http://i.imgur.com/mBhLyOF.png[/IMG]

I was using mka bacon, I tried make -j4 bacon and mka otapackage and make -j4 otapackage. WTF is going on? I also tried both Oracle JDK7 and OpenJDK 7, although I didn't think that was the issue, since CM-12.0 wants OpenJDK. I'm using Brothaedhung's device/vendor trees... I've been doing this for a while, not sure what I'm doing wrong now, I'm building the same way as I always build CM-11.0.

---------- Post added at 06:33 PM ---------- Previous post was at 06:27 PM ----------

Damn it, I hate it when a proper google search answers my own damn question:
[LG Optimus G (International)] ShinySide:
Yeah cm switch to block based flashing vs the traditional directory flashing. Block based is a lot faster and seems a lot more reliable
[LG Optimus G (International)] jfpsb:
MDP_SMP_FORCE_ALLOC was not declared

Guys, I'm trying to build CM12, but I have this problem:

target thumb C++: libqdutils <= hardware/qcom/display-caf/msm8226/libqdutils/cb_utils.cpp
target thumb C++: libqdutils <= hardware/qcom/display-caf/msm8226/libqdutils/display_config.cpp
target thumb C++: libqdutils <= hardware/qcom/display-caf/msm8226/libqdutils/cb_swap_rect.cpp
target thumb C++: libqservice <= hardware/qcom/display-caf/msm8226/libqservice/QService.cpp
In file included from hardware/qcom/display-caf/msm8226/libhwcomposer/hwc_utils.h:32:0,
from hardware/qcom/display-caf/msm8226/libqdutils/cb_utils.h:33,
from hardware/qcom/display-caf/msm8226/libqdutils/cb_utils.cpp:28:
hardware/qcom/display-caf/msm8226/liboverlay/overlayUtils.h:274:30: error: 'MDP_SMP_FORCE_ALLOC' was not declared in this scope
OV_MDP_SMP_FORCE_ALLOC = MDP_SMP_FORCE_ALLOC,
^
build/core/binary.mk:617: recipe for target '/home/felipe/cm/out/target/product/d618/obj/SHARED_LIBRARIES/libqdutils_intermediates/cb_utils.o' failed
make: *** [/home/felipe/cm/out/target/product/d618/obj/SHARED_LIBRARIES/libqdutils_intermediates/cb_utils.o] Error 1
make: *** Waiting for unfinished jobs....

Any ideas? I tried searching for it in Google but found nothing. Thank you.
[LG Optimus G (International)] invaderjohn:
im getting this problem when trying to build cm12 for my lg g2 mini. anybody has any ide whats going on? do i miss out on som folder beeing on the wrong place?
[LG Optimus G (International)] Mister-v:
Hey, I got many errors but I was able to fix them till now, I got this error:

prebuilts/sdk/api/19.txt:25635: error 9: Removed public method android.transition.TransitionManager.getDefaultTransition

prebuilts/sdk/api/19.txt:25638: error 9: Removed public method android.transition.TransitionManager.setDefaultTransition

host C: libcrypto_static <= external/openssl/crypto/aes/aes_ecb.c

host C: libcrypto_static <= external/openssl/crypto/aes/aes_misc.c

******************************

You have tried to change the API from what has been previously released in

an SDK. Please fix the errors listed above.

******************************

make: *** [/home/ebert/android/smooth/out/target/common/obj/PACKAGING/checkapi-last-timestamp] Error 38

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

Does someone know the solution?

I've already done make update-api
[LG Optimus G (International)] LARMYV:
Hello, I am on ubuntu 14.4 and I am trying to build CM-12. When the rom is building, it keep stopping at the following error;

target R.java/Manifest.java: com.android.emailcommon (/home/larmyv/android/system/out/target/common/obj/JAVA_LIBRARIES/com.android.emailcommon_intermediates/src/R.stamp)

/home/larmyv/android/system/out/host/linux-x86/bin/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

make: *** [/home/larmyv/android/system/out/target/common/obj/JAVA_LIBRARIES/com.android.emailcommon_intermediates/src/R.stamp] Error 127

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

Any Ideas? Any help would be greatly appreciated.

Thanks
[LG Optimus G (International)] ronasimi:
Does anyone have working init.d scripts on any AOSP lollipop ROM? My scripts aren't starting on cm-12.0. I've messed around with sepolicy, and cherry-picked this, but no luck. I've checked the logcat, I'm not seeing any scripts starting at all. What am I missing?
[LG Optimus G (International)] Shamestick:
Did you ever find a solution to this? I am trying to build LS lollipop and just got the same error.