yashsingh1/xdaforums huggingface dataset:
[Android] h2on0:
Hello. I had this same type of error. So, I followed what it was telling me to change and it worked. But my question is why I had to change them. I am compiling on ubuntu 11.10 and the source is liquidsmooth roms. Does this have something to do with the configuration of my build enviroment or is it something everyone who compiles liquid has to do?

The android.mk file in /sdk/layoutopt/app/etc had the LOCAL_MODULE_TAGS := optional in the file but at the bottom of the mk file and it kept spitting out the same error so I moved it to the middle of the file and it built. Odd? Normal?

Anyways thanks for taking the time to make these guides and help us all out I really appreciate it.
[Android] adil_:
Need help with this error.

Any help for this error?

infinityy@infinityy-Aspire-5738:~/WORKING_DIRECTORY$ make -j3 update-api
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.7
TARGET_PRODUCT=cooper
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GWK74
============================================
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `frameworks/base/frameworks/base/docs/html': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
build/core/Makefile:21: warning: overriding commands for target `out/target/product/cooper/system/lib/libril.so'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/cooper/system/lib/libril.so'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/cooper/obj/lib/libril.so'
build/core/dynamic_binary.mk:141: warning: ignoring old commands for target `out/target/product/cooper/obj/lib/libril.so'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/cooper/system/usr/keylayout/qwerty.kl'
sdk/emulator/keymaps/Android.mk:13: warning: ignoring old commands for target `out/target/product/cooper/system/usr/keylayout/qwerty.kl'
No private recovery resources for TARGET_DEVICE cooper
make: *** No rule to make target `hardware/qcom/gps/loc_api/libloc_api-rpc/inc-50000/loc_api_cb.h', needed by `out/target/product/cooper/obj/include/libloc_api-rpc/inc/loc_api_cb.h'. Stop.
[Android] bLusiLv:
im trying to build samsung open source platform for gt-s5300 (samsung pocket) but the build script make the generic-eng and no choice for this device, how can i add this device? because i want to make otapackage, this device doesnt support fastboot.
[Android] daygen4545:
Hey, im trying to build 2.3.7 for the LG-P999 or G2x, but i get this weird error when i make the otapackage. It looks like this:

Traceback (most recent call last):
File "./build/tools/releasetools/ota_from_target_files", line 785, in <module>
main(sys.argv[1:])
File "./build/tools/releasetools/ota_from_target_files", line 760, in main
WriteFullOTAPackage(input_zip, output_zip)
File "./build/tools/releasetools/ota_from_target_files", line 376, in WriteFullOTAPackage
script.FormatPartition("/system")
File "/home/daygen/GB/build/tools/releasetools/edify_generator.py", line 166, in FormatPartition
p = fstab[partition]
KeyError: '/system'
make: *** [out/target/product/p999/lge_p999-ota-eng.daygen.zip] Error 1

It leads me to believe system is not a valid mount point, because /data is listed right above that line in the ota_from_target_files file. Anyone know what's wrong?
[Android] yajnab:
Webkit webcore

target thumb C++: libwebcore <= external/webkit/WebCore/css/CSSStyleSelector.cpp

external/webkit/WebCore/css/CSSStyleSelector.cpp:109:22: error: WMLNames.h: No such file or directory

external/webkit/WebCore/css/CSSStyleSelector.cpp: In function 'const WebCore::AtomicString* WebCore::linkAttribute(WebCore::Node*)':

external/webkit/WebCore/css/CSSStyleSelector.cpp:858: error: 'WMLNames' has not been declared

external/webkit/WebCore/css/CSSStyleSelector.cpp: In member function 'void WebCore::CSSStyleSelector::adjustRenderStyle(WebCore::RenderStyle*, WebCore::Element*)':

external/webkit/WebCore/css/CSSStyleSelector.cpp:1614: error: 'WMLNames' has not been declared

external/webkit/WebCore/css/CSSStyleSelector.cpp:1615: error: 'WMLNames' has not been declared

make: *** [out/target/product/beni/obj/STATIC_LIBRARIES/libwebcore_intermediates/WebCore/css/CSSStyleSelector.o] Error 1

Having this error while compiling
[Android] sashka21:
Any help for this error?

target Executable: mediaserver (out/target/product/blade/obj/EXECUTABLES/mediaserver_intermediates/LINKED/mediaserver)
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: error: out/target/product/blade/obj/lib/libcameraservice.so:1:1: invalid character
prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/../lib/gcc/arm-eabi/4.4.3/../../../../arm-eabi/bin/ld: out/target/product/blade/obj/EXECUTABLES/mediaserver_intermediates/main_mediaserver.o: in function android::BinderService<android::CameraService>::publish():frameworks/base/include/binder/BinderService.h:39: error: undefined reference to 'android::CameraService::CameraService()'
collect2: ld returned 1 exit status
make: *** [out/target/product/blade/obj/EXECUTABLES/mediaserver_intermediates/LINKED/mediaserver] Ошибка 1
[Android] erickwill:
Valgrind

@OP

Thanks for the nice content.

I wondering if can you give me any practical example about how to implement correctly Valgrind. In which circumstance should I use it?

Thanks!
[Android] CallMeVentus:
WMLNames.h doesn't exist where CSSStyleSelector is specifiying it in

Seems like a bad libcamera.so to me
[Android] sagara981:
Reading the guide I have to ask themselves a device not on the list, for example, the INQ Cloud Touch is still possible to fill in the GB. To be noted that I did a little research and it seems that there are no sources of this damn device. There is a possibility to circumvent this problem? Not just the kernel extracted from the stock rom? Thanks in advance!
[Android] CallMeVentus:
Yes there is: actually making a device repo for it .

Sent from a Samsung Galaxy Ace
[Android] sagara981:
Thanks for the reply but I did not understand what to do. Itself more clearly explain to me why I use the translator. Thank you again.
[Android] CallMeVentus:
If your device doesn't have its own repo , you need to make one .
[Android] xSkArx:
Thanks for info, when build otapackage are rooted?

Enviado desde mi X10i
[Android] CallMeVentus:
Most of the time it is

Sent from Ursa's claws.
[Android] xSkArx:
Why?

Enviado desde mi X10i
[Android] CallMeVentus:
AOSP has the su binary AFAIR

Sent from Ursa's claws.
[Android] xSkArx:
and superuser.apk?

Enviado desde mi X10i
[Android] CallMeVentus:
You can check /packages/app or /system

Sent from Ursa's claws.
[Android] xSkArx:
I have this error when type "lunch"
[Android] blazingwolf:
Looks like "build/target/product/full_base.mk" is missing. Have you tried doing a repo sync and seeing if it picks up on any missing files?
[Android] xSkArx:
My device is not listed because the file is missing?

Enviado desde mi X10i
[Android] blazingwolf:
According to your post above your trying to build a generic-eng build. So it goes to try and do that and it looks for the full_base.mk file and it isn't there. It needs that file to build the ROM.

So, do a repo sync and make sure that that file exists. It should build after that.
[Android] xSkArx:
I resync repo, i think that i i have use ".../manifest -b gingerbread" in this moment I'm downloading source again, my device isn't listed because tree don't have "vendorsetup.sh" I added manually

Enviado desde mi X10i

---------- Post added at 12:45 AM ---------- Previous post was at 12:41 AM ----------

I resync repo, i think that i i have use ".../manifest -b gingerbread" and not "...../manifest -b android-2.3.7_r1" in this moment I'm downloading source again, my device isn't listed because tree don't have "vendorsetup.sh" I added manually and now is listed

Enviado desde mi X10i
[Android] xSkArx:
The problem was that I downloaded aosp master and no GB,but now give me an error when make otapackage, how to fix this?

http://pastebin.com/ENVS7i0h

Thanks
[Android] adil_:
The error speaks for itself...

Do as it says ..
[Android] xSkArx:
I know but idk how to

Enviado desde mi X10i
[Android] gametv:
i get problem :

daffar@daffar:~/omfgb/omfgb$ lunch

You're building on Linux

Lunch menu... pick a combo:

1. full-eng

2. cooper-eng

3. cooper-userdebug

4. OMFGB_ace-eng

5. OMFGB_desirec-eng

6. OMFGB_heroc-eng

7. OMFGB_inc-eng

8. OMFGB_mecha-eng

9. OMFGB_sholes-eng

10. OMFGB_supersonic-eng

11. OMFGB_fascinatemtd-eng

12. OMFGB_mesmerizemtd-eng

13. OMFGB_showcasemtd-eng

14. OMFGB_vibrantmtd-eng

15. OMFGB_vivow-eng

16. OMFGB_shadow-eng

17. OMFGB_p999-eng

Which would you like? [full-eng] 3

build/core/config.mk:136: *** No config file found for cooper . Stop.

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

** Do you have the right repo manifest?

daffar@daffar:~/omfgb/omfgb$

i already change all TARGET_DEVICE but doesnt work :(
[Android] pongnamu:
I am curious but what does each number here mean? Thanks :)

36 1984M 36 724M 0 0 183k 0 3:04:15 1:07:15 1:57:00 93972
[Android] CallMeVentus:
So that means you tried changing to OMFGB_cooper-eng ?

Sent from a Motorola Defy
[Android] AndroidAceTeam:
thanks :D
[Android] someone755:
Will this work on 64bit ubuntu 12.04?

The thread tag says 32bit and the first post mentions nothing about it...

Anyways, thanks for the great tutorial, syncing repo now :D

I'm wondering why this isn't on XDA U... Your tutorials are better than all XDAniversity's combined!
[Android] basha.ram:
I have build Codeaurora Gingerbread for Desire z I'm facing below issues, dont know how to proceed

File "/gb_rel/build/tools/releasetools/common.py", line 155, in LoadRecoveryFSTab
ValueError: malformed recovery.fstab line: "/cache	ext4	/dev/block/mmcblk0p27 NULL ext3"
raise ValueError("Could not find RECOVERY/RAMDISK/etc/recovery.fstab")
ValueError: Could not find RECOVERY/RAMDISK/etc/recovery.fstab
[Android] EpicLordPhone:
When I try and add my device, I can extract the files through ADB but when I try and compile, it says no such file or directory
[Android] Krizthian:
Great

Thanks for this awesome guide!
[Android] Krizthian:
Great

Great Guide!
[Android] Dracari:
is there an easier way to setup to compile for an U-boot based tablet?
[Android] dastin1015:
This is the only correct way to proceed to compile. All necessary steps included.

Sent from my Hero that never dies! ;D
[Android] chris5s:
After using -

make otapackage

I am left with a bunch o folders, some files and some .img files, inc ramdisc/recovery/ramdisc recovery, etc.

Any ideas what happened to the flashable zip file or if I can make one from this, um, debris :confused:
[Android] dastin1015:
The flashable zip is created from the boot.img and system.img

What you can do is zip the boot.img and system.img and then use Dsixda's kitchen to make it flashable. Make sure the boot.img and system.img are in the root of the zip.
[Android] chris5s:
Thanks guvnor! Giving it a go....
[Android] dastin1015:
No problem!
[Android] chris5s:
Hmmm ... no system.img. And the process terminated with this error -

fatal error: X11/Xlib.h: No such file or directory

.....
[Android] chris5s:
Ne'er mind, got it working ... make otapackage produced a flashable zip. Yee Haa!!
[Android] dastin1015:
Congrats! Haha. Tell me how it turns out.
[Android] dmeadows013:
I got an error when typing a+x... No command found. a2x, a+ are suggested. Ubuntu 10.4
[Android] dastin1015:
Did you put chmod in front of that? The commands need to be followed to the letter.

Sent from my HTC Hero making C.R.E.A.M.
[Android] chris5s:
Ok, managed to get past the issue regarding updater-script, as per the other thread.

I think now there's an issue with mount points so I'm currently comparing updater-script from a working rom to the one produced by my aosp zip.

In other words, a work in progress ;)

Thanks again for your help, its helped me enormously.
[Android] dastin1015:
You are very welcome. If you got questions feel free to ask!

Sent from my HTC Hero making C.R.E.A.M.
[Android] dmeadows013:
Alright that helped but then it did the same for the repo init command. "repo is not a known command"

Is there any fix for this?
[Android] dastin1015:
Issue this in the Terminal to add it to your PATH

PATH=~/bin:$PATH
[Android] chris5s:
Any idea why I am getting 'script aborted (no error message)E:Error in /sdcard/rom-name (Status 7)' message of my rom? I think it may be related to updater-script, I have attached the original and then what I have changed it to.

Any help much appreciated.

Peace
[Android] dastin1015:
Try the new attached updater-script
[Android] chris5s:
Thanks for your help. However, the install aborts with the same error message :confused:

Not much time for doing anything today, but will have a play around with it ...

Peace
[Android] tripdoc79:
I have a question you may be able to help me with. I am currently trying to build a gingerbread rom for the LG Optimus M MS690. there is a CM7 rom that has been ported over.. and i have been using it.. it has a few bugs.. but im trying to build a AOSP gb rom from source. i have dumped my /system/bin, /system/etc and /system/lib from the stock rom into the /WORKING_DIRECTORY/device/lg/MS690 folder i made. have synced with the repo from AOSP have everything, ur tutorial is helpful.. but im somewhat confused at this part:

6) Prepare To Copy Device Proprietary Files To Vendor Tree:

Code:

$ cd prebuilt

7) Copy Proprietary Files To Vendor Tree:

Code:

$ cp -r proprietary WORKING_DIRECTORY/vendor/htc/heroc

i dont have a /vendor directory in my WORKING_DIRECTORY, do i need to create one? and then copy the prop files int here? i do have a prebuilt directory, does something need to go in there? lg hasnt released the source for this phone, and the only repo that i have found for it is the repo of the cm7 rom i am currently using.. which has issues.. beent rying to fix those issues int eh android kitchen unsuccessfully by just replacing system files here and there.. more trial and error than anything.. but myself and a few others are tryingt o get started on a AOSP build for the phone.. i have some linux knowledge.. and am learning everything i need to know along the way.. i have alot of coding knowledge and experiance as well.. been a while since i did any but it is all coming back to me rather quickly lol. guess im just looking for a little bit of guidance,, this is my first android project outside of flashing and rooting. any help would be appreciated
[Android] dastin1015:
Can you link me to the repo you have? I can build a set of instructions for you, as the instructions in the OP is for my device.
[Android] Pondy:
Hi, thanks for this guide. I have been thinking about trying to build my own AOSP rom from source for my Desire HD. I will try this over the next week.

Should it work for DHD also?

Sorry I am a noob at the cheffing, but am keen to get into it.
[Android] dastin1015:
You should be able to if you have the device tree and Cyanogenmod does, so yes. I'll give you instructions for your device when I can get on a computer.

Sent from my HTC Hero making C.R.E.A.M.
[Android] Pondy:
Thanks heaps, I really appreciate it ;)
[Android] Pondy:
Hey mate, have you had a chance to work out those instructions? I an really keen to give it a shot :-D
[Android] dastin1015:
Hey! Sorry I haven't been able to make those instructions yet. I've been busy packing because I'm about to move into my college dorms. I'll make them first thing in the morning!

Sent from my HTC Hero making C.R.E.A.M.
[Android] Pondy:
Thanks dude! I can't wait!

It's ok, just checking if you forgot about me. Take your time.
[Android] dastin1015:
Yeah don't worry I haven't forgotten about you. :) Just have no free time.

Sent from my HTC Hero making C.R.E.A.M.
[Android] dastin1015:
Ok some instructions (don't close Terminal until completely done):

1) Open Terminal and issue these commands:

$ cd WORKING_DIRECTORY/device
$ mkdir htc
$ cd htc
$ git clone git://github.com/cyanogenmod/android_device_htc_ace -b gingerbread ace
$ cd ace

2) Don't close Terminal, but go to this link and download the latest nightly and save it to the WORKING_DIRECTORY directory and rename it to ace_update.zip

Link: http://download.cyanogenmod.com/?device=ace

3) Once downloaded and renamed go back to your opened Terminal and issue these commands:

$ ./unzip-files.sh
$ cd ~/WORKING_DIRECTORY

4) Now continue the rest of the instructions from step #10
[Android] Pondy:
Thanks alot!!! I will give it a go this afternoon!

:cool:
[Android] Pondy:
OK, I just tried:

git clone git://github.com/cyanogenmod/android_device_htc_ace -b gingerbread ace

and got the following error:

fatal: remote error:

Could not find Repository cyanogenmod/android_device_htc_ace
[Android] dastin1015:
Try just a simple

$ git clone git://github.com/cyanogenmod/android_device_htc_ace ace
[Android] CallMeVentus:
Hello everyone.....

Me and a few other friends have been trying to make an aosp ROM for the Samsung Galaxy Ace . The emulator was successfully booted , but had FCs with Launcher and Settings .

Since we thought it was easy to solve , we realised that "make otapackage" doesn't work . We are currently stuck and unsure of what to do . Any help would be greatly appreciated . :)
[Android] dastin1015:
What is the error it gives when you try to "make otapackage"?

Sent from my HTC Hero making C.R.E.A.M.
[Android] Pondy:
Hi, thanks for the reply. I tried this command and received the same error:

fatal: remote error:

Could not find Repository cyanogenmod/android_device_htc_ace

Any ideas?
[Android] Pondy:
This ended up working:

git clone git://github.com/CyanogenMod/android_device_htc_ace.git -b gingerbread ace

is it case sensitive? Never mind, its moving along now, cheers mate :D
[Android] dastin1015:
I guess it is hahaha. As long as its working :)

Sent from my HTC Hero making C.R.E.A.M.
[Android] Pondy:
It didnt work, but I think I stuffed up a bit trying different things. I will roll-back and try again soon
[Android] CallMeVentus:
Okay.....my friend made a generic build successfully....but it doesn't read the simcard , sdcard and usb
[Android] dmeadows013:
When I do the

curl http://android.git.kernel.org/repo > ~/bin/repo

It goes to a download screen for about a minute and then gets

curl: (7) Failed to connect to 2001:4f8:1:10:1972:112:1:0: Network is unreachable

Does this mean that Android's git is just down right now?
[Android] CallMeVentus:
It is down due to a security breach
[Android] dmeadows013:
Alright. So it's not just me lol

Hopefully it will be back soon
[Android] dastin1015:
Ok. Since it is a generic build it wont read anything. For the SD card you will have to take the vold.fstab file from your device in the /system/etc folder and place it into the new build. The other stuff don't work because it doesn't have the permission files, your phones drivers, etc.

Sent from my HTC Hero making C.R.E.A.M.
[Android] CallMeVentus:
Ahh , yes.....my team member just finished adding everything . Thanks a lot and I hope the flashing will work :)
[Android] viper2g1:
Hey dastin1015, any idea how to take AOSP and inject select parts from cm7 such as statusbar widgets and battery percentage but nothing else (just as an example). I have been searching for a while asking all over xda for a tutorial on this.

Basically I am trying to build as AOSP as possible and hoping to add select other parts from other sources. CM7 has too much stuff I just don't use!

Would love to learn how to do this.

Thanks!
[Android] tommytomatoe:
Those widgets are in framework.jar, services.jar, and android.policy.jar as well as in framework-res.apk and possibly SystemUI.apk

Battery is simply in SystemUI.apk.

There is a way, but you have to be able to understand the precompiled code and integrate the things you want. There are no guides for code reading. That takes time and practice. :-)

My suggestion is to build the AOSP and then use Apktool to decode the dex into smali code. Most android "devs" here on xda fair better with the smali then the actual precompiled java (myself included).

Edit. To be fair, I think a lot of devs don't understand java, not most like states above. Thanks.
[Android] CallMeVentus:
We've done up some stuff , now the sdcard reads , USB works and there is a reception .

However , the ROM cannot receive calls , has a NON-working Camera and proximity sensor doesn't work :/

Any ideas ?
[Android] dastin1015:
You're going to have to use library files from original ROM and see if you can get it working.

Sent from Dorian's HTC Hero CDMA
[Android] CallMeVentus:
From the original ROM ? You mean as in the stock 2.3.4 of Samsung ?
[Android] dastin1015:
Yes.

Sent from Dorian's HTC Hero CDMA
[Android] CallMeVentus:
Okay.....we tried your suggestion and used many different 2.3.4s available , but the Camera still doesn't work . We tried fiddling with seccamera.xml but it still doesn't work.......

I also have problems with Settings.....because it always Force Closes on boot .
[Android] lemonoid:
So my ubuntu crashed and I didn't wanna troubleshoot so I just reinstalled and am starting from scratch. For some reason when trying to init the main repo my connection times out I've never had the problem anyone got a way to force it or change the time before receiving a timeout response?
[Android] lemonoid:
Also, as a fairly new dev there are still a few things I wanna do that I need to ask about. The RenderFX widget used in CM is something I really wanna incorporate and haven't tried yet. Does anyone know what I would need to do inside the ROM for it to work? Anything in framework -res? Or a simple explanation of how that type of program works?
[Android] dastin1015:
Read the red text on the first post.

I don't know how to implement that. I'm not a developer like that.
[Android] lemonoid:
THanks for the heads up, I haven't even looked at the first post on this since the very first time I started to compile, I copy and pasted all the instructions and printed them out and have mainly by now memorized it. So thanks! And I asked about RenderFX because I wasn't sure if anyone else here knew how to implement that type of program into a ROM. It is a fairly useful feature and uses various components inside a ROM and I think learning how to implement this would help a beginner learn more about the source and how things work
[Android] atoore:
Read here for a workaround for compiling while the server is down.
[Android] CallMeVentus:
I found out that Settings keep force closing becausr classes.dex is missing......can I use classes.dex from any 2.3.4 stock ROM from Samsung ?
[Android] dan0412:
It appears android3.git.kernel.org is down as well. Anyone else able to use this link?

I am getting an error.....'couldn't resolve host'

Thanks.
[Android] cdesai:
Kernel.org is completely pulled down as of now

The workaround worked when it was partially up - the website and linux kernels were there - nothing now
[Android] dastin1015:
You're just going to have to wait until kernel.org is done restoring their backups to the affected servers and whatnot.

Sent from Dorian's EVO 3D
[Android] cdesai:
Maybe even make it more secure just in case