yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] #define:
Hey guys, trying to port PA to HTC Pico..

frameworks/av/media/libmedia/AudioTrack.cpp:331:17: error: 'AUDIO_OUTPUT_FLAG_LPA' was not declared in this scope
frameworks/av/media/libmedia/AudioTrack.cpp:331:50: error: 'AUDIO_OUTPUT_FLAG_TUNNEL' was not declared in this scope
make: *** [/home/bhargav/android/pa3/out/target/product/pico/obj/SHARED_LIBRARIES/libmedia_intermediates/AudioTrack.o] Error 1

JB 4.2.2

We had this error in CM10.1, but that got magically fixed somehow..
[Android Q&A, Help & Troubleshooting] mic213:
Didn't get any response on this one. Any help will be greatly appreciated
[Android Q&A, Help & Troubleshooting] speed_bot:
media_flinger died so no audio hence bootloop
[Android Q&A, Help & Troubleshooting] mic213:
so how should I go about fixing this issue?
[Android Q&A, Help & Troubleshooting] speed_bot:
device?
[Android Q&A, Help & Troubleshooting] mic213:
Droid Razr M, using CM10 device tree from dhacker29 (STS Dev Team)
[Android Q&A, Help & Troubleshooting] speed_bot:
remove the reference to this config_backKillTimeout in device/samsung/aries-common/overlay/frameworks/base/core/res/res/values/config.xml:207

same for the error that follows next
[Android Q&A, Help & Troubleshooting] jrongi1:
thanks

Thanks that let the build complete.

I will flash in the morning to see if all is well.
[Android Q&A, Help & Troubleshooting] cj360:
edit fixed error by removing typo from my boardconfig.mk
[Android Q&A, Help & Troubleshooting] lozohcum:
This is my problem: (I think I am close to succesfull build)

1)

build/core/product_config.mk:253: *** No matches for product "cm_jlo". Stop.
Device jlo not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).
Found repository: android_device_sony_jlo
Default revision: cm-10.1
Checking branch info
Default revision cm-10.1 not found in android_device_sony_jlo. Bailing.
Branches found:
jellybean
Use the ROOMSERVICE_BRANCHES environment variable to specify a list of fallback branches.
build/core/product_config.mk:253: *** No matches for product "cm_jlo". Stop.

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

2) Sony Xperia J (codename: jlo)

3) Device tree:

https://github.com/freexperia/android_device_sony_jlo

4) I am building CM10.1 (but I can try just CM10 but I don't know which command is for CM10 repo sync because tutorial is for newest cm)

5) Guide I use: http://xdaforums.com/showthread.php?t=1762641

I admit that I have found also this thing: https://github.com/TheMuppets/proprietary_vendor_sony/tree/jellybean

I downloaded it and copied to my device folder ( device/sony/jlo )
[Android Q&A, Help & Troubleshooting] Unjustified Dev:
for cm10 repo init -u git://github.com/CyanogenMod/android.git -b jellybean
[Android Q&A, Help & Troubleshooting] extremetempz:
cm10.1 error what is it and how to fix im on ubuntu 12.04 64bit

prebuilts/tools/gcc-sdk/gcc: line 40: prebuilts/tools/gcc-sdk/../../gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/i686-linux-gcc: No such file or directory

prebuilts/tools/gcc-sdk/gcc: line 40: prebuilts/tools/gcc-sdk/../../gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/i686-linux-gcc: No such file or directory

make: *** [/home/justin/jellybean/out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs.o] Error 127

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

make: *** [/home/justin/jellybean/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] Error 127

prebuilts/tools/gcc-sdk/g++: line 40: prebuilts/tools/gcc-sdk/../../gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/i686-linux-g++: No such file or directory

prebuilts/tools/gcc-sdk/g++: line 40: prebuilts/tools/gcc-sdk/../../gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/i686-linux-g++: No such file or directory

prebuilts/tools/gcc-sdk/g++: line 40: prebuilts/tools/gcc-sdk/../../gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/i686-linux-g++: No such file or directory

prebuilts/tools/gcc-sdk/g++: line 40: prebuilts/tools/gcc-sdk/../../gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/i686-linux-g++: No such file or directory

make: *** [/home/justin/jellybean/out/host/linux-x86/obj/EXECUTABLES/clang-tblgen_intermediates/ClangCommentCommandInfoEmitter.o] Error 127

make: prebuilts/tools/gcc-sdk/gcc: line 40: prebuilts/tools/gcc-sdk/../../gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/i686-linux-gcc: No such file or directory

*** [/home/justin/jellybean/out/host/linux-x86/obj/EXECUTABLES/clang-tblgen_intermediates/ClangASTNodesEmitter.o] Error 127prebuilts/tools/gcc-sdk/g++: line 40: prebuilts/tools/gcc-sdk/../../gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/i686-linux-g++: No such file or directory

make: *** [/home/justin/jellybean/out/host/linux-x86/obj/EXECUTABLES/clang-tblgen_intermediates/ClangAttrEmitter.o] Error 127

make: *** [/home/justin/jellybean/out/host/linux-x86/obj/EXECUTABLES/clang-tblgen_intermediates/ClangCommentHTMLTagsEmitter.o] Error 127

make: *** [/home/justin/jellybean/out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/pseudolocalize.o] Error 127

make: *** [/home/justin/jellybean/out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/CopyFile.o] Error 127

justin@ubuntu:~/jellybean$
[Android Q&A, Help & Troubleshooting] #define:
You're missing a couple packages...

One is gcc-multilib, and the other is lib32z1(or something, dnt remember exactly)..

Install these two and you'll be good to go...:thumbup:

Sent from my Nexus 7
[Android Q&A, Help & Troubleshooting] speed_bot:
+ he hasnt downloaded the prebuilts
[Android Q&A, Help & Troubleshooting] extremetempz:
its working

thanks its compiling no errors so far
[Android Q&A, Help & Troubleshooting] speed_bot:
press it rather than doing a post
[Android Q&A, Help & Troubleshooting] #define:
Actually i had this same problem while compiling cm10 on ubuntu...

I installed these two packages and voila!!

Sent from my Nexus 7
[Android Q&A, Help & Troubleshooting] cj360:
I was just building carbon cm-10.1 the other day, now I'm google-ing to see if anyone else had a similar issue

Notice file: external/javasqlite/NOTICE -- /home/andrew/carbon/out/target/product/zeusc/obj/NOTICE_FILES/src//system/lib/libsqlite_jni.so.txt
make: *** No rule to make target `NOTICE-TARGET-STATIC_LIBRARIES-libFraunhoferAAC', needed by `/home/andrew/carbon/out/target/product/zeusc/system/lib/libstagefright_soft_aacdec.so'. Stop.
make: *** Waiting for unfinished jobs....
[Android Q&A, Help & Troubleshooting] mikrotik:
now I'm trying building 10.1 for my device.Maybe if there is a problem I will report here to get solution :)
[Android Q&A, Help & Troubleshooting] speed_bot:
your device config?
[Android Q&A, Help & Troubleshooting] Unjustified Dev:
i have no idea to what you are referring to im not good at finding files. Im just good at solving errors.

Board Config ?
[Android Q&A, Help & Troubleshooting] speed_bot:
github link to your config ..all the files in one repo
[Android Q&A, Help & Troubleshooting] Unjustified Dev:
https://github.com/CyanogenMod/android_device_samsung_fascinate
[Android Q&A, Help & Troubleshooting] speed_bot:
the config doesnt look good to me
[Android Q&A, Help & Troubleshooting] Unjustified Dev:
How would I go about modifying some things. I really need a guide on that because I always wanted to learn how to modify some things in there.
[Android Q&A, Help & Troubleshooting] #define:
Missing files..

Multiple missing files...

Sent from my Nexus 7
[Android Q&A, Help & Troubleshooting] Allen Hu:
Thanks for the quick reply:)

Can you tell me how to fix this?

Or I should sync the source again?
[Android Q&A, Help & Troubleshooting] krislibaeer:
hey

i have a strange error hope someone can help me

i try to compile slimbean 4.2.2 for my galaxy s plus

here is the error message

target arm C: libcoregrind-arm-linux <= external/valgrind/main/coregrind/m_demangle/cp-demangle.c
target arm C: libcoregrind-arm-linux <= external/valgrind/main/coregrind/m_demangle/cplus-dem.c
target arm C: libcoregrind-arm-linux <= external/valgrind/main/coregrind/m_demangle/demangle.c
target arm C: libcoregrind-arm-linux <= external/valgrind/main/coregrind/m_demangle/dyn-string.c
target arm C: libcoregrind-arm-linux <= external/valgrind/main/coregrind/m_demangle/safe-ctype.c
target arm C: libcoregrind-arm-linux <= external/valgrind/main/coregrind/m_initimg/initimg-linux.c
target arm C: libcoregrind-arm-linux <= external/valgrind/main/coregrind/m_initimg/initimg-darwin.c
target arm C: libcoregrind-arm-linux <= external/valgrind/main/coregrind/m_initimg/initimg-pathscan.c
target arm C: libcoregrind-arm-linux <= external/valgrind/main/coregrind/m_mach/mach_basics.c
external/valgrind/main/coregrind/m_initimg/initimg-linux.c: In function 'setup_client_stack':
external/valgrind/main/coregrind/m_initimg/initimg-linux.c:700:10: error: duplicate case value
external/valgrind/main/coregrind/m_initimg/initimg-linux.c:640:10: error: previously used here
external/valgrind/main/coregrind/m_initimg/initimg-linux.c:701:10: error: duplicate case value
external/valgrind/main/coregrind/m_initimg/initimg-linux.c:641:10: error: previously used here
make: *** [/home/krislibaeer/WORKING_DIRECTORY_3/out/target/product/ariesve/obj/STATIC_LIBRARIES/libcoregrind-arm-linux_intermediates/coregrind/m_initimg/initimg-linux.o] Error 1

all other roms i compiled no problem it is only with this one

and nothing can be found anywhere about the error one user wrote this in slimbean thread
[Android Q&A, Help & Troubleshooting] pinchopanda:
Try syncing the source again.

If that doesn’t helps then you need to debug the initimg-linux.c. Remove the multiple case values

---------- Post added 24th March 2013 at 12:03 AM ---------- Previous post was 23rd March 2013 at 11:57 PM ----------

Don't worry about the missing Google libs.

The other missing Android.mk, check if it exists and is not deleted.
[Android Q&A, Help & Troubleshooting] omerjerk:
I am getting this error during compiling ...

frameworks/av/media/libstagefright/MPEG4Extractor.cpp:45:24: fatal error: QCMetaData.h: No such file or directory
compilation terminated.

I have got QCMetaData.h file but don't know where to copy it manually ... :confused::confused:
[Android Q&A, Help & Troubleshooting] speed_bot:
http://xdaforums.com/showpost.php?p=35749897&postcount=2

important .. and sorry for the inconvenience.
[Android Q&A, Help & Troubleshooting] cbucz24:
Good luck speedbot:thumbup:

I've been busy lately but I'm still around. Im no where near as smart as he was but I'll do what I can

-Team Nocturnal Like A Boss

-Galaxy Note II Lab Rats Edition

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

Im not sitting at my pc...but I believe it goes in that directory where the cpp is located

-Team Nocturnal Like A Boss

-Galaxy Note II Lab Rats Edition
[Android Q&A, Help & Troubleshooting] #define:
I'll do my best to help out as much as I can...

Sent from my Nexus 7
[Android Q&A, Help & Troubleshooting] cbucz24:
Hey a quick easy way to modify the manifest is to go off another working one..

Find another working build an check out their manifest. Use it as a template until you learn where things are supposed to go.

-Team Nocturnal Like A Boss

-Galaxy Note II Lab Rats Edition
[Android Q&A, Help & Troubleshooting] Unjustified Dev:
Where's the error does it stop somewhere.

---------- Post added at 07:57 PM ---------- Previous post was at 07:55 PM ----------

I want to modify the fascinate source code very similar code to captivate minus the keyboard.
[Android Q&A, Help & Troubleshooting] cbucz24:
yea I understand its the SCH-I500...lol, what are you looking to modify? I dont remember, did you say what base you wanted to use? CM10.1, PA, AOKP, slim, baked??

there's a bunch of dev groups out there. like i said.. I would go to your original thread and check out a working rom's github. in their platform_manifest.xml it will basically explain and map out where everything is supposed to go
[Android Q&A, Help & Troubleshooting] ugurbor:
SOLVED THE PROBLEM!!!

(Again, I am trying to port Ubuntu Touch to i9100G)

It is because extract-files.sh wasn't working properly and couldn't get blobs. And the reason is that i haven't give root permissions to adb on my phone.

So if you are having make: *** No rule to make target `vendor/[manufacturer]/[device]/proprietary/sbin/cbd', needed by ... bla bla error, you should Go to your phone's Developer Settings and give Root access to ADB. After that plug your phone and run /device/[manufacturer]/[device]/extract-files.sh again. It should work :)

BTW, after i got rid of this error another error popped up (f*** me, right?). It was an error ending with src/R.stamp. Solving it easier than the first; just open your device/[manufacturer]/[device]/[device].mk and quote the line causing error. Probably something like GalaxyNoteSettings or GalaxyS2Settings.

Hope these help! :highfive:
[Android Q&A, Help & Troubleshooting] Unjustified Dev:
I don't want to modify source code I want to modify things like

Board config.mk
[Android Q&A, Help & Troubleshooting] pinchopanda:
Copy the QCMetaData.h in "frameworks/av/media/libstagefright/".
[Android Q&A, Help & Troubleshooting] cbucz24:
ok..so here is one i had worked on...

#
# Copyright (C) 2012 The CyanogenMod 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.
#

# This variable is set first, so it can be overridden
# by BoardConfigVendor.mk

-include device/samsung/t0ltecdma/BoardCommonConfig.mk

# assert
TARGET_OTA_ASSERT_DEVICE := t0ltespr,l900,SPH-L900

# inherit from the proprietary version
-include vendor/samsung/t0ltecdma/BoardConfigVendor.mk

Few things about android programming you will find is its kind of a first come first serve. Like the errors above, the "ignoring old commands"...this is sometimes related to when you call the same file later that has already been defined by something.

Biggest issue you will have is not overriding what you want to happen. for example...

if i had:

device/samsung/t0ltecdma/BoardCommonConfig.mk

where it made a statement about audio

you would have issues if you used a different file:

device/samsung/l900/BoardConfig.mk

where it made the same audio statement in different location

does this make any sense? Ive messed with this file a bunch...

them the next area to configure is the vendor/samsung/t0ltecdma...

I know yours is the fascinate ...i just am not sure what your "code name" is...lol SCH-L500 or something like that
[Android Q&A, Help & Troubleshooting] ugurbor:
Yet another error... It looks like there's a problem when compiling mmu.c file. Any idea?

CC [M] /media/Yeni_Birim/ubuntu-i9100g/out/target/product/i9100g/target/kbuild/services4/srvkm/devices/sgx/sgxtransfer.o
CC [M] /media/Yeni_Birim/ubuntu-i9100g/out/target/product/i9100g/target/kbuild/services4/srvkm/devices/sgx/mmu.o
/media/Yeni_Birim/ubuntu-i9100g/out/target/product/i9100g/target/kbuild/services4/srvkm/devices/sgx/mmu.c: In function 'MMU_Alloc':
/media/Yeni_Birim/ubuntu-i9100g/out/target/product/i9100g/target/kbuild/services4/srvkm/devices/sgx/mmu.c:1487:11: error: 'sDevPAddr.uiAddr' may be used uninitialized in this function [-Werror=maybe-uninitialized]
/media/Yeni_Birim/ubuntu-i9100g/out/target/product/i9100g/target/kbuild/services4/srvkm/devices/sgx/mmu.c:1427:20: note: 'sDevPAddr.uiAddr' was declared here
cc1: all warnings being treated as errors
make[6]: *** [/media/Yeni_Birim/ubuntu-i9100g/out/target/product/i9100g/target/kbuild/services4/srvkm/devices/sgx/mmu.o] Error 1
make[5]: *** [_module_/media/Yeni_Birim/ubuntu-i9100g/out/target/product/i9100g/target/kbuild] Error 2
make[4]: *** [sub-make] Error 2
make[3]: *** [all] Error 2
make[2]: *** [kbuild] Error 2
make[1]: *** [build] Error 2
make[1]: INTERNAL: Exiting with 9 jobserver tokens available; should be 8!
make[1]: `/media/Yeni_Birim/ubuntu-i9100g/device/samsung/omap4-common/pvr-source/eurasiacon/build/linux2/omap4430_android' dizininden çıkılıyor
make: *** [SGX_MODULES] Error 2
[Android Q&A, Help & Troubleshooting] hazedabeast:
how do i fix this error?

File "/home/feras/JB/revolt/build/tools/releasetools/ota_from_target_files", line 824, in main

WriteFullOTAPackage(input_zip, output_zip)

File "./device/samsung/galaxys2-common/releasetools/galaxys2_ota_from_target_files", line 66, in WriteFullOTAPackage

if OPTIONS.backuptool:

AttributeError: 'Options' object has no attribute 'backuptool'

make: *** [/home/feras/JB/revolt/out/target/product/d710/revolt_d710-ota-eng.feras.zip] Error 1

feras@feras-Inspiron-N5050:~/JB/revolt$
[Android Q&A, Help & Troubleshooting] Unjustified Dev:
What rom it seems it has aokp use this https://github.com/Root-Box/device_samsung_galaxys2-common

Read releasetools/ota file look for. (aokp doesnt have backuptool.sh). line and add that to yours and success.
[Android Q&A, Help & Troubleshooting] mikrotik:
any solution?

Import includes file: /home/mikrotik/source/10.1/out/target/product/ancora/obj/SHARED_LIBRARIES/audio_policy.msm7x30_intermediates/import_includes
target thumb C++: camera.msm7x30 <= device/samsung/ancora/camerahal/cameraHAL.cpp
Import includes file: /home/mikrotik/source/10.1/out/target/product/ancora/obj/SHARED_LIBRARIES/copybit.msm7x30_intermediates/import_includes
Import includes file: /home/mikrotik/source/10.1/out/target/product/ancora/obj/SHARED_LIBRARIES/libmemalloc_intermediates/import_includes
target thumb C++: libgenlock <= hardware/qcom/display/libgenlock/genlock.cpp
hardware/qcom/display/libgenlock/genlock.cpp:32:26: fatal error: gralloc_priv.h: No such file or directory
compilation terminated.
make: *** [/home/mikrotik/source/10.1/out/target/product/ancora/obj/SHARED_LIBRARIES/libgenlock_intermediates/genlock.o] Error 1
make: *** Waiting for unfinished jobs....
target thumb C++: libqdutils <= hardware/qcom/display/libqdutils/profiler.cpp
make: *** wait: No child processes. Stop.
mikrotik@ubuntu:~/source/10.1$
[Android Q&A, Help & Troubleshooting] mikshepard:
I've got a weird question:

When I compile CM10.1 or SlimBean ROM's, I can run nano, htop, etc just fine. If I compile Root-Box and try to run nano or htop, I get a "Error opening terminal: vt100." After running "export TERMINFO=/etc/terminfo", I can run either of these fine. So my question is, how do I set the TERMINFO global variable to be compiled into the ROM like I'm guessing SlimBean and CM10.1 do? Or am I missing something else?

Thanks in advance, any ideas would be greatly appreciated. I've been searching through the source code and comparing differences between the ROM sources for days now with no solution.

Cheers,

Mike
[Android Q&A, Help & Troubleshooting] shimp208:
You have to edit the init.rc file specifically the section where you set up the global environmental variables in that section you have to add the following lines:

export TERMINFO=/system/etc/terminfo
export TERM=linux

Also make sure the nano binary has been given the proper permissions, 644 should be fine for the binary.
[Android Q&A, Help & Troubleshooting] hazedabeast:
It's revolt Rom. I'll try.
[Android Q&A, Help & Troubleshooting] Unjustified Dev:
OK I'm sure that's the problem happened on two ROMs and this solved it twice.
[Android Q&A, Help & Troubleshooting] mikshepard:
Thanks for the help, I think I may have worded my problem incorrectly though. I was curious how to get that setting compiled into the ROM, so it's active on first boot and people don't have to add that manually. I can't seem to find where the files for generating the init.rc are located in the android source. Any ideas on how to do this? Or a better way to set the terminfo when compiling so nano can be run without having to adjust or set anything on a new ROM flash? There must be a way, as it works fine on SlimBean but not Root-Box. Perhaps I'm missing something?

Thanks for any help, I really appreciate it,

-Mike

EDIT: I'm going to try and add it to the "on boot" section of bootable/diskinstaller/init.rc I'll report back with results. Thanks
[Android Q&A, Help & Troubleshooting] mikrotik:
error compile AOSP 4.2.2

Which would you like? [full-eng] 12
build/core/product_config.mk:223: *** Cannot locate config makefile for product "cm_ancora". Stop.

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

mikrotik@ubuntu:~/source/aosp$
[Android Q&A, Help & Troubleshooting] #define:
A cm device tree won't work on aosp without some modification..

came outta my weird fish™
[Android Q&A, Help & Troubleshooting] krislibaeer:
First do you try to compile pure aosp for ancora? Or a custom rom (name?)

Pure aosp is very hard and i think impossible for ancora device to compile

Second this error occure because of a false name i think you use the device tree from arco with cm.mk and in it the name cm_ancora and that is the mistake

rename it to the rom you want to compile have a look at the git from that rom if it is not pure aosp
[Android Q&A, Help & Troubleshooting] mikrotik:
oke thanks

now problem again

mikrotik@ubuntu:~/source/aosp$ make -j4 otapackage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.2
TARGET_PRODUCT=full_ancora
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.2.0-39-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JDQ39
OUT_DIR=out
============================================
Checking build tools versions...
find: `../../vendor/unbundled_google/libs/gcm/gcm-client/src': No such file or directory
find: `../../vendor/unbundled_google/libs/gcm/gcm-server/src': No such file or directory
find: `../../vendor/unbundled_google/libs/gcm/gcm-client/src': No such file or directory
find: `../../vendor/unbundled_google/libs/gcm/gcm-server/src': No such file or directory
build/core/base_rules.mk:130: *** hardware/msm7k/liblights: MODULE.TARGET.SHARED_LIBRARIES.lights.msm7x30 already defined by device/samsung/ancora/liblights. Stop.
mikrotik@ubuntu:~/source/aosp$
[Android Q&A, Help & Troubleshooting] #define:
Remove liblights folder from device/samsung/ancora

came outta my weird fish™
[Android Q&A, Help & Troubleshooting] mikrotik:
yes it does not work ..

but I have added full_ancora in vendor.sh .. but there are errors like this

mikrotik@ubuntu:~/source/aosp$ make -j4 otapackage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.2
TARGET_PRODUCT=full_ancora
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.2.0-39-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JDQ39
OUT_DIR=out
============================================
Checking build tools versions...
find: `../../vendor/unbundled_google/libs/gcm/gcm-client/src': No such file or directory
find: `../../vendor/unbundled_google/libs/gcm/gcm-server/src': No such file or directory
find: `../../vendor/unbundled_google/libs/gcm/gcm-client/src': No such file or directory
find: `../../vendor/unbundled_google/libs/gcm/gcm-server/src': No such file or directory
build/core/base_rules.mk:130: *** hardware/msm7k/liblights: MODULE.TARGET.SHARED_LIBRARIES.lights.msm7x30 already defined by device/samsung/ancora/liblights. Stop.
mikrotik@ubuntu:~/source/aosp$
[Android Q&A, Help & Troubleshooting] mikrotik:
does anyone know how to compile from source trebuchet.apk only?

just trebuchet.apk not other ..
[Android Q&A, Help & Troubleshooting] #define:
I think u cn use "mmm"... To compile singular packages, instrad of the full ROM...

I've never used it, but i read about it.. I'll post some links...

came outta my weird fish™