yashsingh1/xdaforums huggingface dataset:
[Nexus 7 General] JStrauD:
Hey everyone, I'm newly registered to the forums, but a long time lurker :D

I just wanted to make a thread to let you guys know that on my YouTube channel, YouTube.com/JStrauD, I do a bunch of Nexus 7 / Android tutorials and reviews. For example, I've done a video tutorial on how to unlock and root the N7 and I've also started a new mini-series of my favorite Custom ROMs that come straight from the XDA forums! I also do iPhone & gaming videos but I'm only making this post to let you know about the Nexus 7 videos :D

Feel free to check them out and if you want your Nexus 7 ROM reviewed or have any ideas for video tutorials, either leave a comment here or PM me on YouTube! I'm really hoping these videos come to help some people out!

Thanks guys,

JStrauD
[Android Q&A, Help & Troubleshooting] speed_bot:
I have been wandering around the question and answers forum for some time now...i noticed a thing that most of them who had errors building from source have been left un answered..

i assume the following reasons for this

1)no dev would really care to search through and help out

2)users are scared to pm dev's

3)their posts are getting lost due to no actiivity within seconds of posting

as a outcome of all the above

the user isn't getting help

so i thought of making a thread for just source build errors..

so this this thread will focus on providing answers for all the problems that you are facing while building from source......

now i would like the users to follow a format similar to this for reporting

1)A full error encountered (pastie or any similar site's

2)your device name

3)your device tree that you have used for compiling(github link)

4)which rom are you building(cm aokp etc)

5)The guide which you are using to build(link)

another kind request please spread the link for this thread as many may benefit from it....

and find developers who are interested in helping....

feel free to give suggestions....

Before you move ahead make sure you copy paste this into the terminal

32bit users(ics & below)

sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev valgrind squashfs-tools zip curl pngcrush schedtool ia32-libs x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libwxgtk2.6-dev

64bit ( you need this in addition with 32bit packages)

sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
libxml2-utils gcc-4.3-multilib g++-4.3-multilib g++-multilib

common build errors

build/core/product_config.mk:196: *** _nic.PRODUCTS.[[device/YG/m805_892x/device_m805_892x.mk]]: "device/YG/m805_892x/m805_892x-vendor-blobs.mk" does not exist. Stop.

cause for problem

device_m805_892x.mk

Here in your device folder it is calling a make file which is required for compiling as in this case (device_m805_892x.mk) has a reference to

(device/YG/m805_892x/m805_892x-vendor-blobs.mk)

check if

(m805_892x-vendor-blobs.mk)

is there in vendors folder... as in this case this is not found ..

solution

1)remove the reference to that makefile..

2)check the path for makefile(these are case sensitive)

3)correct the makefile in vendor folder to match that in the makefile that has called it

2)

make: *** No rule to make target `vendor/cm/proprietary/RomManager.apk', needed by `out/target/product/m805_892x/system/app/RomManager.apk'. Stop.
make: *** Waiting for unfinished jobs....

cause for the problem

Here the script is written to copy rommanager.apk to system app during the build process...

But the apk is missing which is stoping the make process

solution

cd into vendors/cm

then type this

./get-prebuilts

IF some dev helps you out show your appreciation by using the thanks button
[Android Q&A, Help & Troubleshooting] speed_bot:
reserved 2
[Android Q&A, Help & Troubleshooting] speed_bot:
the last one reserved
[Android Q&A, Help & Troubleshooting] cbucz24:
dude, you rock..

anyways, im still building the same pac...since my initial build wouldn't boot, i decided to switch up some of the internals...

build/core/base_rules.mk:171: *** frameworks/native/cmds/sensorservice: MODULE.TARGET.EXECUTABLES.sensorservice already defined by frameworks/base/cmds/sensorservice. Stop.

Ive asked this question so many times, im ready to go nuts...ive looked thru every file and i cant find where these are referenced...where do i redirect this? and any other that may error back the already defined?
[Android Q&A, Help & Troubleshooting] wilfredcool007:
Contribute :

So..... A great thread to help all the beginners and the developers ( as everybody are prone to make mistakes ) I'd like to help too

But at first.... With reference to the problems I've encountered so far from different users.. all tat i see is most of them forget to install the necessary packages that are required for the build....

I've made a general command tat would hold most of the packages that are required for the build

For 32 Bit :

sudo apt-get install git-core gnupg flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev valgrind squashfs-tools zip curl pngcrush schedtool ia32-libs x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libwxgtk2.6-dev

For 64 Bit :

sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \
x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \
libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \
libxml2-utils gcc-4.3-multilib g++-4.3-multilib g++-multilib

Ps : I'd add more as and when needed as we encounter new problems :D

---------- Post added at 10:49 AM ---------- Previous post was at 10:49 AM ----------

Reserved just in case :D

---------- Post added at 10:53 AM ---------- Previous post was at 10:49 AM ----------

It would help us more to understand the problem if u could provide the device tree that u r using ( Github Link )
[Android Q&A, Help & Troubleshooting] speed_bot:
it seems that a single service (sensorservice) is defined in two places your tree would help... and spread the word about this thread as it ma help many people out :D just a request...

your error is like your destination is x

and there are two paths leading to it and you are confused which one to take..

so it has stopped ok try deleting

frameworks/base/cmds/sensorservice

or

frameworks/native/cmds/sensorservice

(one of two not both

)
[Android Q&A, Help & Troubleshooting] UtCollector@gmail.com:
I would like to share some solution to some basic build problems. I did copy this from my own thread here:

http://xdaforums.com/showthread.php?t=1935162

Fix problems... This the learning part.. Fun but can be really anoying to.

First i got my self:

make otatools did not work.

-Try make -j4 out/host/linux-x86/bin/unpackbootimg

-put "unpackbootimg" in ~/android/system/out/host/linux-x86/bin then i copy it to ~/usr/bin and set chmod.

Im did see a download if it some place. Google.

-copy unpackbootimg to into /usr/bin If it is there, make it executable.

make executable: sudo chmod a+x /usr/bin/unpackbootimg

-Run make clubber from The ICS folder. Than restart pc might help to.

Nother problem that i did run into trying to make ext4 images:

make_ext4fs -s -l 0x40000000 -a data out/target/product/m805_892x/userdata.img out/target/product/m805_892x/data

Need size of filesystem

make: *** [out/target/product/m805_892x/userdata.img] Error 4

make: *** Waiting for unfinished jobs..

The sizes need to be in bytes it seems.

make_ext4fs does not support hex in the -l argument

DD dump you´re partitions and you see the amount of bytes.

I put this in my BoardConfig.mk like this:

BOARD_USERDATAIMAGE_PARTITION_SIZE := 1073741824

Use this to finisch waiting jobs..:

make_ext4fs -s -l 1073741824 -a data out/target/product/m805_892x/userdata.img out/target/product/m805_892x/data

problem:

-frank@frank-Aspire-5755G:~/ICS$ make -j4 recoveryimage

build/core/product_config.mk:196: *** _nic.PRODUCTS.[[device/YG/m805_892x/device_m805_892x.mk]]: "device/YG/m805_892x/m805_892x-vendor-blobs.mk" does not exist. Stop.

The error is somewhare found in this file:

device_m805_892x.mk I used the original file and start adding things again.

Problem:

make: *** No rule to make target `vendor/cm/proprietary/RomManager.apk', needed by `out/target/product/m805_892x/system/app/RomManager.apk'. Stop.

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

Copy: out/target/product/m805_892x/system/bin/compcache

Copy: out/target/product/m805_892x/system/bin/handle_compcache

frank@frank-Aspire-5755G:~/ICS$

For that use the terminal and cd to:

cd /vendor/cm

run:

./get-prebuilts

This will download the RomManager.apk and bit of other stuff.
[Android Q&A, Help & Troubleshooting] speed_bot:
i will add this to op... i will expalin the problem the cause for it and the fix for it..i will explain stuff and type it in general for all devices..btw thanks for the reply ... will update the op soon..
[Android Q&A, Help & Troubleshooting] ktempleton:
So I've subscribed to this thread and I'll help when I can I've built about seven different ROMs and have had to solve allot of issues lol
[Android Q&A, Help & Troubleshooting] speed_bot:
thank you for helping..i too have done a lot of source builds and faced hell lot of problems so i made this as a general thread to get help and help other's too...
[Android Q&A, Help & Troubleshooting] hashroot:
Great Thread :)

Really very helpful thread for beginners. Keep on updating this thread. I will post my errors later :)
[Android Q&A, Help & Troubleshooting] speed_bot:
thank you for the support spread the thread so that more people get benfited...
[Android Q&A, Help & Troubleshooting] a.cid:
Sticky please :)
[Android Q&A, Help & Troubleshooting] hashroot:
Help Please

Getting this error while compiling for Samsung Galaxy Fit. I have used CM 10's device config & did changes as mentioned. Please any there help me

http://pastebin.com/QW2ViEDk
[Android Q&A, Help & Troubleshooting] wilfredcool007:
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasService.java:394: cannot find symbol
symbol : variable REQUEST_TYPE_MESSAGE_ACCESS
location: class android.bluetooth.BluetoothDevice
BluetoothDevice.REQUEST_TYPE_MESSAGE_ACCESS);
^
packages/apps/Bluetooth/src/com/android/bluetooth/map/BluetoothMasService.java:458: cannot find symbol
symbol : variable REQUEST_TYPE_MESSAGE_ACCESS
location: class android.bluetooth.BluetoothDevice
BluetoothDevice.REQUEST_TYPE_MESSAGE_ACCESS);

The part thats causing u the errors... !!!!

check the files BluetoothMasService.java and BluetoothMasService.java with the one in CM10 repo nd see wat is missing
[Android Q&A, Help & Troubleshooting] ktempleton:
What repo are you using I'll post a thread in aa min you need to get the repo for utackas repo because pa repo is broke

http://xdaforums.com/showthread.php?p=35507138

Don't know if your using this repo but I was getting errors like that until I switched
[Android Q&A, Help & Troubleshooting] hashroot:
o.O

I tried :( i think this is d error of source.

u compiled by using utacka's repo? n what is d size of source?
[Android Q&A, Help & Troubleshooting] cbucz24:
Ummm, how long has the pa repo been broken? I did see that someone said something about it. Reason I'm asking, In building PAC and part of the manifest pulls from PA doesn't it? Could that be causing my problems?
[Android Q&A, Help & Troubleshooting] ktempleton:
Have you erased one of those files the error pointed to

My PAC runs fine but when I ran it for the first time I had maybe four duplicates I had to take care of
[Android Q&A, Help & Troubleshooting] cbucz24:
well, i think i have to switch one or two more items in my local_manifest...i saw that git links i was using are not going to be updated any longer due to another dev going forward with the project.

but before i can switch them all out, i have to make sure i have the links right..but github is down so im kinda stuck for a bit :rolleyes:
[Android Q&A, Help & Troubleshooting] speed_bot:
http://xdaforums.com/showthread.php?t=1876035
[Android Q&A, Help & Troubleshooting] mikrotik:
it is for LG Optimus Me P350?

how do I use it?

please teach me
[Android Q&A, Help & Troubleshooting] speed_bot:
its for all devices
[Android Q&A, Help & Troubleshooting] mikrotik:
ok,,

if this fails will try it this way ...

because now it is 98% ... :D

thank you :good: ;)
[Android Q&A, Help & Troubleshooting] mikrotik:
whether I have succeeded?

From git://github.com/CyanogenMod/android_vendor_tmobile_providers_ThemeManager
* [new branch] ics -> github/ics
From git://github.com/CyanogenMod/android_vendor_tmobile_providers_ThemeManager
* [new tag] cm-7.1.0 -> cm-7.1.0
Fetching projects: 100% (255/255), done.
Checking out files: 100% (24618/24618), done.ut files: 50% (12311/24618)
Checking out files: 100% (19771/19771), done.ut files: 3% (726/19771)
Checking out files: 100% (33094/33094), done.ut files: 0% (310/33094)
Syncing work tree: 100% (255/255), done.

mikrotik@virtualbox:~/source_android/ics$
[Android Q&A, Help & Troubleshooting] cj360:
So far so good, now enter

. Build/envsetup.sh

The space is needed in that line and after you enter it type

Lunch

And see if your device is listed if its not there you still have to download your specific device tree files& folders.
[Android Q&A, Help & Troubleshooting] mikrotik:
yeah but now clone device and vendor for my device :D
[Android Q&A, Help & Troubleshooting] speed_bot:
ya the source has been downloaded.
[Android Q&A, Help & Troubleshooting] pratikmore:
I have hcl me u1 tab with vimicro cortex A8 cpu;stock ICS 4.0.3,1ghz,1gb ddr3 ram,vivante Gc400 gpu,800*480 resolution,arm v7. can i used allwinnere A10 cortex A8 cpu cm x rom as base???

I am getting this error in logcat

couldnt find an eglconfig matching the screen format;egl querysurface :352 error 300d

call to opengl es api with no correct context(logged once per thread)

I solved this then.

after patching egl.cfg i got this error

"E/libegl eglgetdisplay 121 error 300c egl bad parameter

eglinitialize 137 error 3008 egl bad display

validate display 209 error 3008 egl bad display"

can anyone help with this??

full logcat http://pastebin.com/6thwJUXG
[Android Q&A, Help & Troubleshooting] mikrotik:
thanks for your guide :)
[Android Q&A, Help & Troubleshooting] AnakTeKa:
Thanks for reply

So how to fix it ? I dont have any idea ...
[Android Q&A, Help & Troubleshooting] mikrotik:
when i try building something like this

what's the solution?
[Android Q&A, Help & Troubleshooting] cbucz24:
alright....got one ive not been able to find an answer for as of yet...

find: `src': No such file or directory
build/core/dynamic_binary.mk:12: *** This file should not be used to build host binaries. Included by (or near) build/core/dynamic_binary.mk. Stop.

still swapping out sources to build pac...this is the latest error?? any clue as what this means? when i google it, it pulls up the statement from the dynamic_binary.mk file where the error comes from..but ive not found an instance where someone had the problem and fixed it..:crying:
[Android Q&A, Help & Troubleshooting] mikrotik:
fixed

camera hal, audio, display fixed using cherry-pick... :laugh:

but do not know the rest .. :confused:
[Android Q&A, Help & Troubleshooting] mikrotik:
building done

finally I can finish well ...

it took 25 minutes for the building ...

thank you for speed_bot and broodplank1337 for all his help ..

I learned a lot from you guys ..
[Android Q&A, Help & Troubleshooting] trevd:
The problem is the check for the files in the local_manfests directory doesn't work, SOMEBODY** obviously didn't test the code before commiting! f***king amateurs :laugh: I joke :D ,obviously they're doing a great job, sometimes they just need an helping hand. To enable the local_manifests directory you need to patch .repo/repo/manifest_xml.py with this

diff --git a/manifest_xml.py b/manifest_xml.py
index 0664eff..4af1e01 100644
--- a/manifest_xml.py
+++ b/manifest_xml.py
@@ -344,9 +344,10 @@ class XmlManifest(object):
local_dir = os.path.abspath(os.path.join(self.repodir, LOCAL_MANIFESTS_DIR_NAME))
try:
for local_file in sorted(os.listdir(local_dir)):
+ local = os.path.join(local_dir, local_file)
if local_file.endswith('.xml'):
try:
- nodes.append(self._ParseManifestXml(local_file, self.repodir))
+ nodes.append(self._ParseManifestXml(local, local_dir))
except ManifestParseError as e:
print('%s' % str(e), file=sys.stderr)
except OSError:

It's quite a nice improvement.... you can name the xml files in the local_manifests directory anything you like.

** Git is a wonderful thing as you can put names (blame) to bugs LOL David Pursehouse <david.pursehouse@sonymobile.com> was responsible for that one, I might send him a gentle reminder to test before committing....
[Android Q&A, Help & Troubleshooting] cbucz24:
hey thanks for that acknowledgement on that one..i thought i was right that it was spelled wrong, but i started to question it since i didnt see anyone else saying anything online..

anyways...so i have a question about pulling files in from a local_manifest vs a manifest.xml.

here's my issue...https://github.com/TeamBAKED/vendor_samsung

it doesnt contain all of the files i need. but my issue is that the one who does have the all the files "i" need also have the same file directories...but missing my files...

https://github.com/sbrissen/vendor_samsung_note2

I want to build baked but their smdk4412-common is missing the info i need to build for my phone. and mine isnt supported yet..

is it possible to use "their" git and have mine over write theirs? or would it always try and correct the info and complain i have uncommitted entries??

I know they plan on supporting my phone at some point, maybe i can start the process? but until then, do i just do a <remove-project> on theirs until its ready??
[Android Q&A, Help & Troubleshooting] ktempleton:
You need to read up on git fork their source and push your changes to your own repo

But honestly your make file in your device tree is what builds the kernel with your device specs.
[Android Q&A, Help & Troubleshooting] cbucz24:
yea, i've read a bunch on merging separate forks into one. working with forks, etc...i will have to think about it, thanks for that advice.

i know they intend on building for my device eventually, i just wanted to see if i could do it myself first...i may just take your other advice and manipulate my make file to what i need until they go forward with it..
[Android Q&A, Help & Troubleshooting] ktempleton:
You should just be able to plug your device tree and vendor file in there and build it shouldn't have to make that many changes mostly overlay adjustments
[Android Q&A, Help & Troubleshooting] Gokulbalram:
Hey guys, I was building when I got this error:

bstdc++_intermediates/export_includes
make: *** No rule to make target `/media/alectradar/8a267be9-b95c-4b67-b851-32ec624f0499/Lollipop/out/target/product/i9300/obj/STATIC_LIBRARIES/libhealthd.exynos4_intermediates/export_includes', needed by `/media/alectradar/8a267be9-b95c-4b67-b851-32ec624f0499/Lollipop/out/target/product/i9300/obj/EXECUTABLES/healthd_intermediates/import_includes'. Stop.

I can't figure why this is happening.

EDIT: I fixed it, I get this now:

make: *** No rule to make target `/media/alectradar/8a267be9-b95c-4b67-b851-32ec624f0499/Lollipop/out/target/product/i9300/obj/SHARED_LIBRARIES/libcamera_client_intermediates/export_includes', needed by `/media/alectradar/8a267be9-b95c-4b67-b851-32ec624f0499/Lollipop/out/target/product/i9300/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....

I fixed those two errors, but now there's this baffling stuff:

http://hastebin.com/nivubanore.vhdl
[Android Q&A, Help & Troubleshooting] MasterAwesome:
Well basically your tool chain definitions are specified in the build/core/combo/"TARGET-arm.mk" , here it specifies the toolchain to use for the entire build. Instead of specifying there you can specify it in the Android.mk for singular compilations. or just add the files to Eclipse IDE and ask it to compile it with no warnings selecting the tool chain 4.7 GCC download it from online.

[IMG="Eclipse IDE Toolchain Settings"]http://help.eclipse.org/luna/topic/org.eclipse.cdt.doc.user/images/mpref_toolchain.png[/IMG]

and compile it there adding all the header and requirements, there might be a lot of header files and libraries to link if your source code for libaudio youre compiling has lot of dependencies, so id prefer you set the environment and compile it manually.

OR

just go to build/core/combo/"TARGET-arm.mk" and set TARGET_GCC=4.7 after copying the arm-eabi-4.7 and the arm-linux-androideabi-4.7. So that the entire build compiles on GCC-4.7. If you're getting errors compiling the kernel set the warning tags there too.

Kernel->Android.mk/Makefile-> search for KBUILD_CFLAGS and then set it to -w.

git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.7

git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7
[Android Q&A, Help & Troubleshooting] pawankonjarla:
Hi all.. I am getting the below compilation error while building aosp lollipop... Any idea how to resolve....

external/chromium_org/v8/src/i18n.cc:687: error: undefined reference to 'icu_52::Locale::Locale()' external/chromium_org/v8/src/i18n.cc:693: error: undefined reference to 'uloc_forLanguageTag_52' external/chromium_org/v8/src/i18n.cc:714: error: undefined reference to 'icu_52::Locale::~Locale()' external/chromium_org/v8/src/i18n.cc:697: error: undefined reference to 'icu_52::Locale::Locale(char const*, char const*, char const*, char const*)' external/chromium_org/v8/src/i18n.cc:697: error: undefined reference to 'icu_52::Locale::operator=(icu_52::Locale const&)' external/chromium_org/v8/src/i18n.cc:697: error: undefined reference to 'icu_52::Locale::~Locale()' external/chromium_org/v8/src/i18n.cc:704: error: undefined reference to 'icu_52::Locale::getBaseName() const'
[Android Q&A, Help & Troubleshooting] Gokulbalram:
Hey guys, (again). I'm having many build errors which report missing files, namely export_includes. This is for many folders. I tried creating a blank file by the name and built and got the same error for another folder. I repeated this thrice and then I just got pissed off. Here is an example:

Export includes file: frameworks/native/services/inputflinger/Android.mk -- /media/alectradar/8a267be9-b95c-4b67-b851-32ec624f0499/Lollipop/out/target/product/i9300/obj/SHARED_LIBRARIES/libinputflinger_intermediates/export_includes
make: *** No rule to make target `/media/alectradar/8a267be9-b95c-4b67-b851-32ec624f0499/Lollipop/out/target/product/i9300/obj/SHARED_LIBRARIES/libmedia_intermediates/export_includes', needed by `/media/alectradar/8a267be9-b95c-4b67-b851-32ec624f0499/Lollipop/out/target/product/i9300/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
[Android Q&A, Help & Troubleshooting] Quasar:
Are you sure you've synced qcom/common properly?
[Android Q&A, Help & Troubleshooting] pawankonjarla:
Any one got this error....?
[Android Q&A, Help & Troubleshooting] Gokulbalram:
Yep. I even got the error for libcamera_client. I deleted the files for it, including the stuff in .repo
[Android Q&A, Help & Troubleshooting] baselsayeh:
same errors

http://pastebin.com/FbTjs7ji

im using gcc 4.8

4.7 results invalid argrements
[Android Q&A, Help & Troubleshooting] baselsayeh:
i found fixes for audio for the most of the errors

new list:

http://pastebin.com/S2tz8sFv

i need to get past these errors:
[Android Q&A, Help & Troubleshooting] MasterAwesome:
I'm guessing the source is making an object of a abstract class. I need to see the source code to check what's happening. Abstract classes can't be instantiated only pointers to them are allowed. But i believe you can supress the warnings in your error log just add a CFLAG of -w to make file.