yashsingh1/xdaforums huggingface dataset:
[Android] jacobmacek:
I think im almost there!!!!

so this time when i attempted to compile after deleting those 2 lines you told me to, it said clean step a bunch of times and then this,

Clean step: rm -f out/target/product/inc/system/framework/filterfw.jar

build/core/base_rules.mk:171: *** device/common/android_device_htc_common/updater: MODULE.TARGET.STATIC_LIBRARIES.librecovery_ui_htc already defined by device/android_device_htc_common/updater. Stop.

jacobmacek@ubuntu:~/WORKING_DIRECTORY$

does this mean i need to change something in the build/core/base_rules.mk file? thank for the help!
[Android] uoY_redruM:
I tried what you said (changed vendorsetup.sh from cm_d2tmo-eng to full_d2tmo-eng) but I'm still getting:

Which would you like? [full-eng] 9
build/core/product_config.mk:205: *** No matches for product "full_d2tmo". Stop.

** Don't have a product spec for: 'full_d2tmo'
** Do you have the right repo manifest?
[Android] CosmoDroid:
I just now remembered that i also changed the Product name in cm.mk from "cm_...." to "full_....." ....You can give it a try....also check if in your full_d2tmo.mk file, the product name matches with that in the vendorsetup.sh file.... :highfive:

---------- Post added at 03:17 PM ---------- Previous post was at 03:05 PM ----------

In the "Android.mk" file in "device/android_device_htc_common/updater/" comment out the "include $(BUILD_STATIC_LIBRARY)"

Btw your device tree path is wrong i guess....Look at the name of the repository...android_device_htc_common....means that the git is to be cloned in ..../device/htc/common....For example from terminal type :

cd (your base directory name)/device/htc
git clone ............. -b jellybean common

Why the hell does most of the people not make use of the THANKS button....??? :mad:
[Android] rodrigoyasuda:
Finally got CM10 to compile for N7000 :P, flashed it and it was fine, except that wifi was disabled (cant enable it).

Any clues?
[Android] Astralix:
First of all: Thank you for the detailed description.

I made lots of kernels for some Android devices and while that was more or less easy, I got lot's of trouble with using the same machine (Ubuntu 12.04) to build Android itself. The tablets I build kernels for have most time 512kB RAM only, so while ICS does work I have no idea of how JB will perform on them.

So, is there any trouble to expect if I like to build ICS and JB by following your description for the basic setup?

Astralix
[Android] BombayBoy:
JB is less resource hungry than ICS. You need not worry about the performance :p
[Android] jacobmacek:
i have a problem

I ran that command you told me to to clone the git to my common folder, when i ran that command i got this

jacobmacek@ubuntu:~$ cd /home/jacobmacek/WORKING_DIRECTORY/device/htc

jacobmacek@ubuntu:~/WORKING_DIRECTORY/device/htc$ git clone https://github.com/CyanogenMod/android_device_htc_common.git -b jellybean common

Cloning into common...

remote: Counting objects: 89, done.

remote: Compressing objects: 100% (62/62), done.

remote: Total 89 (delta 41), reused 51 (delta 17)

Unpacking objects: 100% (89/89), done.

warning: Remote branch jellybean not found in upstream origin, using HEAD instead

jacobmacek@ubuntu:~/WORKING_DIRECTORY/device/htc$

then i commented out the lines you said and when i went to compile i got this,

build/core/base_rules.mk:171: *** device/common/android_device_htc_common/updater: MODULE.TARGET.STATIC_LIBRARIES.librecovery_ui_htc already defined by device/android_device_htc_common/updater. Stop.

jacobmacek@ubuntu:~/WORKING_DIRECTORY$

im stumped please help me with this, if it works, ill donate a few bucks!!! :)
[Android] CosmoDroid:
I don't see a JB branch for that tree....sorry...and if u delete that line from the android.mk file it should have worked.... :confused:
[Android] jacobmacek:
should i,,

should i remove the "LOCAL_STATIC_LIBRARIES += libmtdutils" line from the android.mk file? and any other line that refers to static library?
[Android] graffitiwriter:
Can somone send me a copy of the main.mk file ?. i believe i got a little trigger happy trying to delete the java error.
[Android] Charly225:
My First Build Erros

HI everyone I Got thes errors when trying compilation of AOSP

device/samsung/p3100/common-overlay/frameworks/base/core/res/res/values/arrays.xml:23: error: Resource does not already exist in overlay at 'shutdown_reboot_options'; use <add-resource> to add.
device/samsung/p3100/common-overlay/frameworks/base/core/res/res/values/arrays.xml:24: error: Resource at shutdown_reboot_options appears in overlay but not in the base package; use <add-resource> to add.
device/samsung/p3100/common-overlay/frameworks/base/core/res/res/values/arrays.xml:25: error: Resource at shutdown_reboot_options appears in overlay but not in the base package; use <add-resource> to add.
device/samsung/p3100/common-overlay/frameworks/base/core/res/res/values/arrays.xml:26: error: Resource at shutdown_reboot_options appears in overlay but not in the base package; use <add-resource> to add.
device/samsung/p3100/common-overlay/frameworks/base/core/res/res/values/arrays.xml:31: error: Resource does not already exist in overlay at 'shutdown_reboot_actions'; use <add-resource> to add.
device/samsung/p3100/common-overlay/frameworks/base/core/res/res/values/arrays.xml:32: error: Resource at shutdown_reboot_actions appears in overlay but not in the base package; use <add-resource> to add.
device/samsung/p3100/common-overlay/frameworks/base/core/res/res/values/arrays.xml:33: error: Resource at shutdown_reboot_actions appears in overlay but not in the base package; use <add-resource> to add.
device/samsung/p3100/common-overlay/frameworks/base/core/res/res/values/arrays.xml:34: error: Resource at shutdown_reboot_actions appears in overlay but not in the base package; use <add-resource> to add.
device/samsung/p3100/common-overlay/frameworks/base/core/res/res/values/config.xml:216: error: Resource at config_forceDisableHardwareKeyboard appears in overlay but not in the base package; use <add-resource> to add.
make: *** [out/target/common/obj/APPS/framework-res_intermediates/package-export.apk] Error 1
make: *** Deleting file « out/target/common/obj/APPS/framework-res_intermediates/package-export.apk »
make: *** Waiting for unfinished task....
charles@NP-NF310:~/android-source/jelly-bean$

Please Help Me
[Android] lithid-cm:
Delete the build folder and resync. It will copy it from the .repo projects.
[Android] DragunKorr:
Been compiling for a week straight with no errors!

now all of sudden i get this and im baffled and i need some help please thanks!

PASTEBIN
[Android] Charly225:
Not solved my problem :(
[Android] risotto:
Yellow tint on camera (TORO)

I'm getting a really bad yellow tint on pictures taken with my Verizon Galaxy Nexus (toro) which I built JB 4.1.1r4 for. I did use a ducati-m3.bin from my maguro 4.1.1 stock build I have. Any idea how I can get the white balance back under control?

Thanks!
[Android] Astralix:
That is good to hear! But in fact the question was about the compatibility for JB and ICS development in parallel on Ubuntu 12.04.

I had no luck till now with ICS building on my system. But I will try again following the hints in the TOs post #1 next weekend.

Astralix
[Android] Charly225:
It's me Again i want to build AOSP Jelly Bean for Galaxy tab 2 7 GT-P3113 but when i try compiling i got this

error: could not load kernel 'out/target/product/p3113/kernel'
make: *** [out/target/product/p3113/boot.img] Error 1
make: ***Waiting for unfinished jobs.....
[Android] reconex:
Hi is there anyway to change the output directory of the build? I want to have my repo files all on my ssd and start the build from there and then have the output files be placed on another drive as my ssd does not have enough space.
[Android] CallMeVentus:
Take the ducati-m3.bin from the Toro JB , not maguro .

"Friends forever." - Ventus
[Android] Charly225:
asidedin take

PLease Help Me
[Android] DragunKorr:
Thanks again dastin you have been of good help!:D
[Android] CdTDroiD:
Can anyone point in the right direction to build with the Linaro toolchains? Ive got the toolchain downloaded but im not quite sure how to get it to build with it. Its not something ive ever looked into before...
[Android] CosmoDroid:
Got past many errors but stuck at this one... :(

target thumb C++: libmemalloc <= hardware/qcom/display/libgralloc/ashmemalloc.cpp
hardware/qcom/display/libcopybit/copybit_c2d.cpp: In function 'uint32 c2d_get_gpuaddr(private_handle_t*)':
hardware/qcom/display/libcopybit/copybit_c2d.cpp:267:19: error: 'KGSL_USER_MEM_TYPE_PMEM' was not declared in this scope
hardware/qcom/display/libcopybit/copybit_c2d.cpp:269:19: error: 'KGSL_USER_MEM_TYPE_ASHMEM' was not declared in this scope
hardware/qcom/display/libcopybit/copybit_c2d.cpp:271:19: error: 'KGSL_USER_MEM_TYPE_ION' was not declared in this scope
make: *** [out/target/product/coconut/obj/SHARED_LIBRARIES/copybit.msm7x30_intermediates/copybit_c2d.o] Error 1
make: *** Waiting for unfinished jobs....
hardware/qcom/display/libgralloc/ashmemalloc.cpp: In member function 'virtual int gralloc::AshmemAlloc::clean_buffer(void*, size_t, int, int)':
hardware/qcom/display/libgralloc/ashmemalloc.cpp:132:19: error: 'ASHMEM_CACHE_FLUSH_RANGE' was not declared in this scope
make: *** [out/target/product/coconut/obj/SHARED_LIBRARIES/libmemalloc_intermediates/ashmemalloc.o] Error 1

P.S. : I have all the required dependencies cloned.
[Android] fezzy102:
I hit a road bump havent had any luck in fixing this error.

Import includes file: out/target/product/quincyatt/obj/SHARED_LIBRARIES/audio.primary.msm8660_intermediates/import_includes

make: *** No rule to make target `out/target/product/quincyatt/obj/SHARED_LIBRARIES/librpc_intermediates/export_includes', needed by `out/target/product/quincyatt/obj/SHARED_LIBRARIES/gps.msm8660_intermediates/import_includes'. Stop.
[Android] CallMeVentus:
Just create an empty document with the specified name at the specified folder

"Friends forever." - Ventus
[Android] ronak.super:
will this build include kernel?

please help!.
[Android] fezzy102:
another quick one.lol

gps.msm8660 <= hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp

hardware/qcom/gps/loc_api/libloc_api/loc_eng.cpp:44:21: fatal error: rpc/rpc.h: No such file or directory

compilation terminated.

make: *** [out/target/product/quincyatt/obj/SHARED_LIBRARIES/gps.msm8660_intermediates/loc_eng.o] Error 1
[Android] risotto:
There is no Toro JB ducati-m3.bin, afaik, or where would I find that? There have not been any official releases for JB and Toro yet.
[Android] CallMeVentus:
They told you what file is missing , find it .

Try using the ICS one ? :confused:

"Friends forever." - Ventus
[Android] lithid-cm:
Ignore. Xda app mix up.
[Android] dastin1015:
https://developers.google.com/android/nexus/drivers
[Android] LorD ClockaN:
You sure you have all the commits for it in frameworks_base? Or frameworks_av?

Also needed include files?

Sent from IceColdJelly OneX
[Android] CosmoDroid:
Currently I have kept that in standby....Now I'm again compiling for the n7000...I have the cm dependencies...frameworks_av commits...hardware_libhardware_legacy and hardware_libhardware commits from CM...but after overcoming many error I'm stuck at this one.....Please help...Thanks.

target arm C: libstagefright_aacenc <= frameworks/av/media/libstagefright/codecs/aacenc/src/aacenc.c
frameworks/av/media/libstagefright/colorconversion/SoftwareRenderer.cpp: In constructor 'android::SoftwareRenderer::SoftwareRenderer(const android::sp<ANativeWindow>&, const android::sp<android::MetaData>&)':
frameworks/av/media/libstagefright/colorconversion/SoftwareRenderer.cpp:98:5: error: 'GRALLOC_USAGE_HW_FIMC1' was not declared in this scope
target arm C: libstagefright_aacenc <= frameworks/av/media/libstagefright/codecs/aacenc/src/aacenc_core.c
frameworks/av/media/libstagefright/colorconversion/SoftwareRenderer.cpp:98:5: error: 'GRALLOC_USAGE_HWC_HWOVERLAY' was not declared in this scope
frameworks/av/media/libstagefright/colorconversion/SoftwareRenderer.cpp: In member function 'void android::SoftwareRenderer::render(void const*, size_t, void*)':
frameworks/av/media/libstagefright/colorconversion/SoftwareRenderer.cpp:218:9: error: 'GRALLOC_USAGE_YUV_ADDR' was not declared in this scope
make: *** [out/target/product/n7000/obj/STATIC_LIBRARIES/libstagefright_color_conversion_intermediates/SoftwareRenderer.o] Error 1
make: *** Waiting for unfinished jobs....
[Android] Amin`:
Hi all

Is there any way to compile ics/jb on 32bit os?!
[Android] CallMeVentus:
No and never

"Friends forever." - Ventus
[Android] fezzy102:
target thumb C++: hwcomposer.msm8660 <= hardware/qcom/display/libhwcomposer/hwc.cpp

hardware/qcom/display/libhwcomposer/hwc.cpp: In function 'int hwc_eventControl(hwc_composer_device*, int, int)':

hardware/qcom/display/libhwcomposer/hwc.cpp:125:42: error: 'MSMFB_OVERLAY_VSYNC_CTRL' was not declared in this scope

make: *** [out/target/product/quincyatt/obj/SHARED_LIBRARIES/hwcomposer.msm8660_intermediates/hwc.o] Error 1

how should i go about this one.thank you by the way for all the help on this thread.
[Android] dastin1015:
BoardConfigCommon.mk add this line:

TARGET_NO_HW_VSYNC := true
[Android] fezzy102:
the last fix worked perfectly.then this one popped up.sorry for the questions on how to fix this.

target thumb C++: liboverlay <= hardware/qcom/display/liboverlay/overlayRotator.cpp

hardware/qcom/display/liboverlay/overlayRotator.cpp: In member function 'virtual void overlay::MdpRot::setFlags(const overlay::utils::eMdpFlags&)':

hardware/qcom/display/liboverlay/overlayRotator.cpp:77:17: error: 'struct msm_rotator_img_info' has no member named 'secure'

hardware/qcom/display/liboverlay/overlayRotator.cpp:79:21: error: 'struct msm_rotator_img_info' has no member named 'secure'

hardware/qcom/display/liboverlay/overlayRotator.cpp: In member function 'bool overlay::MdpRot::open_i(uint32_t, uint32_t)':

hardware/qcom/display/liboverlay/overlayRotator.cpp:127:30: error: 'struct msm_rotator_img_info' has no member named 'secure'

make: *** [out/target/product/quincyatt/obj/SHARED_LIBRARIES/liboverlay_intermediates/overlayRotator.o] Error 1

if im on the right track with this i need to add something like : "QCOM_NO_SECURE_PLAYBACK :=" somewhere is this the right track?
[Android] lithid-cm:
Same thing to your BoardConfigCommon.mk try adding.

QCOM_NO_SECURE_PLAYBACK := True
[Android] jacobmacek:
github

do you think there could be a problem w/ the gits i used?

if you could, post a link for the htc incredible git, and when i try to compile it needs the git for "htc common", i did a git clone for common too and it worked but im assuming i did something wrong w/ the inc git?
[Android] fezzy102:
seems not to have worked. but let me ask you this is there a certain spot that i should add this line?i just added a signal line in there at the top its what i did the first time.
[Android] lithid-cm:
Sorry try

TARGET_QCOM_NO_SECURE_PLAYBACK := True
[Android] fezzy102:
i had to step out will try that when i get back and let you know thanks for the help
[Android] fezzy102:
well no luck on that either.lol ill keep trying.
[Android] dastin1015:
BoardConfigCommon.mk

COMMON_GLOBAL_CFLAGS += -DQCOM_NO_SECURE_PLAYBACK
[Android] fezzy102:
thanks that worked now on to the next error.lol
[Android] dan-fish:
Anyone know how much space one build of CM takes up? I'm running on a VM and have about 15gb after the sync.
[Android] Gecko225:
Make *** Error

Hi people, it's me again .The kernel Problem is solved but i got another error

make: *** [out/target/common/obj/JAVA_LIBRARIES/guava_intermediates/classes-full-debug.jar]

Any idea ?
[Android] CosmoDroid:
Hey devs, someone please tell me how and where to define these things...Thanks. :fingers-crossed:

target thumb C++: libandroid_runtime <= frameworks/base/core/jni/android_bluetooth_HeadsetBase.cpp
target thumb C++: libandroid_runtime <= frameworks/base/core/jni/android_bluetooth_common.cpp
frameworks/base/core/jni/android_hardware_Camera.cpp: In function 'void android_hardware_Camera_sendHistogramData(JNIEnv*, jobject)':
frameworks/base/core/jni/android_hardware_Camera.cpp:623:29: error: 'CAMERA_CMD_HISTOGRAM_SEND_DATA' was not declared in this scope
frameworks/base/core/jni/android_hardware_Camera.cpp: In function 'void android_hardware_Camera_setHistogramMode(JNIEnv*, jobject, jboolean)':
frameworks/base/core/jni/android_hardware_Camera.cpp:640:32: error: 'CAMERA_CMD_HISTOGRAM_ON' was not declared in this scope
frameworks/base/core/jni/android_hardware_Camera.cpp:642:32: error: 'CAMERA_CMD_HISTOGRAM_OFF' was not declared in this scope
make: *** [out/target/product/coconut/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/android_hardware_Camera.o] Error 1
make: *** Waiting for unfinished jobs....

Regards,

CosmoDroid
[Android] ttibbetts83:
you need to batch the the guava file

https://github.com/CyanogenMod/andro...617ebe4e731e09

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

http://pastebin.com/2fZKWuTp need some help
[Android] oo3:
So I am at the part where I type 'lunch' but as soon as I select full-eng, I get the following error:

build/core/product_config.mk:193: *** _nic.PRODUCTS.
[[device/asus/tf700t/device_tf700t.mk]]: "frameworks/native/build/tablet-dalvik-heap.mk"
does not exist. Stop.

Can someone enlighten me on what I need to do? Thank you.
[Android] CosmoDroid:
Try changing all the LOGx ( x may be any alphabet) to ALOGx in the files showing errors.
[Android] Gecko225:
Thank You it worked :good:
[Android] <JohnCarter>:
is it necessary

is it necessary to download the repo for all device :silly:

will it work if i have stopped downloading it after it got to download crespo :silly:

sry but asking this becoz of really slow net connection :mad:
[Android] mg2195:
can anyone help me? i keep getting this:

make: *** No rule to make target `out/target/product/infuse4g/kernel', needed by `out/target/product/infuse4g/boot.img'. Stop.
make: *** Waiting for unfinished jobs....

i synced the kernel to kernel/samsung by doing this

git clone git://github.com/teamhacksung/android_kernel_samsung_dempsey.git dempsey

What am i missing? what do i need to do?
[Android] tpearsall:
BLOB changes for d2vzw?

1st time trying to build a ROM so sorry for the noob question. I see other related messages, but not clear on the final solution.

Lunch gives me this menu:

Lunch menu... pick a combo:
...
8. full_crespo-userdebug
9. cm_d2vzw-eng
10. full_maguro-userdebug
11. full_panda-userdebug

when I select 9

Which would you like? [full-eng] 9
build/core/product_config.mk:205: *** No matches for product "cm_d2vzw". Stop.

** Don't have a product spec for: 'cm_d2vzw'
** Do you have the right repo manifest?

From the OP and some further searching of the thread I think I need to change some device .mk files to align the names.

in device/samsung/vendorsetup.sh:

add_lunch_combo cm_d2vzw-eng
#add_lunch_combo cm_d2vzw
#add_lunch_combo d2vzw

in device/samsung/d2vzw/cm.mk there are a few references to PRODUCT_NAME and PRODUCT_DEVICE

PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=cm_d2vzw TARGET_DEVICE=d2vzw BUILD_FINGERPRINT="d2vzw-user 4.0.4 IMM76D I535VRALF2 release-keys" PRIVATE_BUILD_DESC="Verizon/d2vzw/d2vzw:4.0.4/IMM76D/I535VRALF2:user/release-keys"

TARGET_BOOTANIMATION_NAME := vertical-720x1280

PRODUCT_NAME := cm_d2vzw
PRODUCT_DEVICE := d2vzw

full_d2vzw.mk has:

# Set those variables here to overwrite the inherited values.
#PRODUCT_NAME := full_d2vzw
PRODUCT_NAME := cm_d2vzw
PRODUCT_DEVICE := d2vzw
PRODUCT_BRAND := Verizon
PRODUCT_MANUFACTURER := samsung
PRODUCT_MODEL := SCH-I535

I have been trying variations of aligning the PRODUCT_NAME to the value in vendorsetup.sh (cm_d2vzw, full_d2vzw, cm_d2vzw-eng) to no avail.

Am I miss understanding the OP or are there other files to be updated? Not sure where I've gone off the tracks.

Thanks for any help or direction!
[Android] dastin1015:
Yes. If you stop it it will stop downloading the rest of the source.

Use a prebuilt kernel. AOSP doesn't use inline kernel building. Compile the kernel separately and the copy over the kernel to the needed directory and the modules to your device out directory in system/lib/modules.

You're trying to build the CM version of a device on an AOSP tree.
[Android] tpearsall:
Thanks for the fast response. I followed the instructions without always knowing what I was doing:

I assume this was the ASOP tree:

repo init -u https://android.googlesource.com/platform/manifest -b android-4.1.1_r4

The device example was:

git clone git://github.com/CyanogenMod/android_device_htc_shooter.git shooter

I used:

git clone git://github.com/CyanogenMod/android_device_samsung_d2vzw.git d2vzw
git clone git://github.com/CyanogenMod/android_device_samsung_d2-common.git d2-common

Should I have used a different device repo? If so, any clue which? This is all I found for a Verizon Galaxy S3.

---------- Post added at 02:03 PM ---------- Previous post was at 01:18 PM ----------

Think I found it

https://github.com/AOSP-d2vzw/device_samsung_d2vzw.git

UPDATE: Tried with this repo and PRODUCT_NAME=full_d2vzw and still no love. Seems like I missing the boat on something fundamental.
[Android] dastin1015:
It is ok to use a CM device tree, but you're trying to build using the cm.mk as opposed to full_dvzw.mk

Edit the vendorsetup.sh and add this line:

add_lunch_combo full_d2vzw-userdebug
[Android] yosterwp:
Well, so far while using the CM device tree, I was able to get pretty far into the build process. I learned that if you are not building CM, then you do not even need

cm.mk

cm.dependencies

at all. In my experience, it was safe to remove those two files all together.

Hope that helps.
[Android] tpearsall:
OK, I added that in and ran

. build/envsetup.sh
lunch

and I get:

build/core/product_config.mk:205: *** No matches for product "full_d2vzw". Stop.

** Don't have a product spec for: 'full_d2vzw'
** Do you have the right repo manifest?

I tried setting PRODUCT_NAME in full_d2vzw.mk to full_d2vzw and full_d2vzw-userdebug. Is there something else I need to align? is the -eng or -userdebug part of the product name or just an extension that is a build instruction of some sort?

Thanks!
[Android] yosterwp:
Oh yes, I remember spending quite a bit of time figuring this one out. Here is what I did:

I went to the maguro device folder at /device/samsung/maguro

Then I copied two files: Android.mk and AndroidProduct.mk into /device/samsung/d2vzw

In a text editor, I edited the COPIED AndroidProduct.mk to look like this:

#
# Copyright (C) 2011 The Android Open-Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/full_d2vzw.mk

And I don't recall seeing that error ever again after that.

EDIT: Oh yeah and you can change PRODUCT_NAME back to full_d2vzw
[Android] dastin1015:
-eng and -userdebug are extensions for building.

This is your fix.