yashsingh1/xdaforums huggingface dataset:
[XDA-University] Slayer_b:
It seems my issue is still here. I've copied gps files from another device and forced to build them by including in mk file the following lines

# GPS

PRODUCT_PACKAGES += \

gps.msm8960

Android.mk file af gps project contains the following

ifeq ($(BOARD_VENDOR),pantech)

ifeq ($(TARGET_BOARD_PLATFORM),msm8960)

include $(call all-subdir-makefiles,$(LOCAL_PATH))

endif

endif

I double checked-all conditions should be true.

So, I suppose make ignores my files. That should I add to force it to use my gps project?

as far as I can see, it still uses old project, since my project is in another path

error: frameworks/base/services/jni/com_android_server_location_GpsLocationProvider.cpp:518:39: error: too many arguments to function

My proj path: /home/slayer_b/android/cyanogenmod/cm-10.1/device/pantech/ef47s/gps
[XDA-University] Great_Geek:
Hmm. Did you make sure a makefile is calling your makefile before that one ? Check the order in which it builds; go to the brunch scripts, see where they point, then just keep following the chain of compiling , you'll get it easily (though , with a lot of reading)..

If you use whatsapp, PM me your number. And name :p
[XDA-University] Slayer_b:
Addidng Android.mk with the below content did the trick (since i started work from the scratch, I missed this file). Now I completely get rid of GPS failures.

LOCAL_PATH := $(call my-dir)

include $(call all-makefiles-under,$(LOCAL_PATH))

After few hours of compiling (I have core 2 duo CPU with 2 Gb ram :LOL:) I got the below errors.

hardware/qcom/media-caf/mm-video/vidc/vdec/src/omx_vdec.cpp:9715:50: error: 'ION_FLAG_CACHED' was not declared in this scope
hardware/qcom/media-caf/mm-video/vidc/vdec/src/omx_vdec.cpp: In member function 'bool omx_vdec::allocate_color_convert_buf::set_color_format(OMX_COLOR_FORMATTYPE)':
hardware/qcom/media-caf/mm-video/vidc/vdec/src/omx_vdec.cpp:9920:71: warning: zero-length gnu_printf format string [-Wformat-zero-length]
hardware/qcom/media-caf/mm-video/vidc/vdec/src/omx_vdec.cpp: In member function 'OMX_ERRORTYPE omx_vdec::allocate_color_convert_buf::allocate_buffers_color_convert(OMX_HANDLETYPE, OMX_BUFFERHEADERTYPE**, OMX_U32, OMX_PTR, OMX_U32)':
hardware/qcom/media-caf/mm-video/vidc/vdec/src/omx_vdec.cpp:10068:138: warning: format '%d' expects argument of type 'int', but argument 5 has type 'OMX_U32 {aka long unsigned int}' [-Wformat]
make: *** [/home/slayer_b/android/cyanogenmod/cm-10.1/out/target/product/ef47s/obj/SHARED_LIBRARIES/libOmxVdec_intermediates/src/omx_vdec.o] Ошибка 1
target StaticLib: libc_nomalloc (/home/slayer_b/android/cyanogenmod/cm-10.1/out/target/product/ef47s/obj/STATIC_LIBRARIES/libc_nomalloc_intermediates/libc_nomalloc.a)

detailed log on pastebin

I'll investigate these as soon as I'll be at home
[XDA-University] Ninja_Harbinger:
Will this work in a VM? Say, if I use Virtual Box?
[XDA-University] housry23:
Yes, but building will be slower than on a native install because the VM is sharing resources with the host OS
[XDA-University] Ninja_Harbinger:
Ok cool. I'll get started tomorrow then. Thanks.
[XDA-University] ttibbetts83:
i keep getting a problem when installing build enviroment

sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 lib32z-dev libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc readline-common libreadline6-dev libreadline6 lib32readline-gplv2-dev libncurses5-dev lib32readline5 lib32readline6 libreadline-dev libreadline6-dev:i386 libreadline6:i386 bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev libsdl1.2-dev libesd0-dev squashfs-tools pngcrush schedtool libwxgtk2.6-dev python

after i run this a get this

Reading package lists... Done

Building dependency tree

Reading state information... Done

Note, selecting 'lib32z1-dev' instead of 'lib32z-dev'

E: Unable to locate package libwxgtk2.6-dev

E: Couldn't find any package by regex 'libwxgtk2.6-dev'

this is on fresh ubuntu install of 12.10
[XDA-University] mekayzer:
Folowing this guide give me error on lzop, so you have to install it first.

Second, you have to know what to put local_manifest file for a sony device. So your guide is not for any phone but for samsung phone.
[XDA-University] speed_bot:
I presume that as 12.10 is relatively new its missing packages so... I would recommend you to downgrade to 12.04 as it's lts... Just a suggestion..
[XDA-University] kurlrip:
Hi all

Thanks for this.

But a little question, you say Compile for any phone.

Could it work too for a tablet (galaxy tab 10.1) ?
[XDA-University] ktempleton:
Just install all except that one then look for an alternative

sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386 schedtool gcc-multilib g++-multilib pngcrush

these are what im running on my 12.10 machine also this is a good repository sudo add-apt-repository ppa:git-core/ppa

and

sudo apt-get update
[XDA-University] housry23:
It will work as long as it is in the device tree and you have the correct proprietary files which are easy to get once you download the source and lunch your device. Just be running cm10.1 go to working_directory/device/Samsung/Name_of_tablet in terminal, plug your tablet into your computer and run this command "sh extract-files.sh" and it will pull the files from your device.
[XDA-University] ktempleton:
ok guys i decided to see if i could run cm 10.1 and it ran great until right at the end i get this any ideas

usage: mkbootimg

--kernel <filename>

--ramdisk <filename>

[ --second <2ndbootloader-filename> ]

[ --cmdline <kernel-commandline> ]

[ --board <boardname> ]

[ --base <address> ]

[ --pagesize <pagesize> ]

[ --ramdisk_offset <address> ]

-o|--output <filename>

make: *** [/home/ken/android/cm10_1/out/target/product/i577/recovery.img] Error 1
[XDA-University] Dovidhalevi:
OK, once I get everything synced up including the device tree and all ...

Once-upon-a-time, builds defaulted to ARMv5!! leading to slower ROMs.

Now, for JB, they will default to ARMv7.

My device is ARMv6. So how do I assure I am compiling for this and not 7 or 5??
[XDA-University] reef2009:
Can someone confirm where to find the AOKP Jelly Bean Android 4.2 Source code?
[XDA-University] amike56:
hey guys i would appreciate some help, i keep getting this error. it seems like i have no idea how to access the package manager to properly run the command (not that great with linux) how would i access in order to use the command properly

Note, selecting 'lib32z1-dev' instead of 'lib32z-dev'

E: Unable to locate package zlib1g-dev

E: Unable to locate package libx11-dev

E: Unable to locate package libreadline6-dev

E: Unable to locate package libgl1-mesa-glx

E: Unable to locate package libreadline6-dev

E: Unable to locate package libreadline6

E: Unable to locate package libwxgtk2.6-dev

E: Couldn't find any package by regex 'libwxgtk2.6-dev'
[XDA-University] speed_bot:
You need to patch dalvik to build for armv6
[XDA-University] limzm:
@mithun46

I was wondering what if I would like to build a CM10.1 or AOKP for devices that does not exist in the tree like Huawei Honor u8860?

Is there any way I could go about doing it?

I know kernel sources would be a definite requirement but what else other than the kernel sources? :confused:
[XDA-University] speed_bot:
Create a device tree... No other way..
[XDA-University] sevenup30:
Hey guys,

i want to build bakedrom for galaxy tab 2.

It's supported officially by cm but not by baked,

so i edit manifest and add the necessary file to download.

Now in my baked source i do have the device/samsung/p5110 & device/samsung/p5100

kernel also and vendor file.

But now i want to build, if i do

"breakfast" i only have full-eng

i try add_lunch_combo p5110-userdebug

but after it said that it dont have any device p5110

i tried brunch p5110 but now he said

build/core/product_config.mk:211: *** No matches for product "baked_p5110". Arrêt.

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

No such item in brunch menu. Try 'breakfast'

i know baked dont support it, but now i have all the file, how can i add this to baked build process?

thanks
[XDA-University] ktempleton:
You need to go to vendor/baked/product create an empty document name it your phone. mk open another they has similar specs copy paste over to yours and change everything over to your phone then open the android mk copy and paste one of those lines at the bottom of the column and change it over to your phone name then build
[XDA-University] trevd:
All the Java You'll Ever need ;) http://xdaforums.com/showpost.php?p=26957072&postcount=4
[XDA-University] limzm:
I've managed to build a CM10.1 for my Huawei Honor u8860, but of course not without problem..

It seems that it is unable to boot past through the OEM logo..

Is there anyway I can debug/diagnose the problem?
[XDA-University] AndyFox2011:
i'm getting this error:

frameworks/base/services/jni/com_android_server_IrdaManagerService.cpp:26:27: fatal error: hardware/irda.h: No such file or directory
compilation terminated.
make: *** [/home/andrew/rinserom/system/out/target/product/ace/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/com_android_server_IrdaManagerService.o] Error 1
make: *** Waiting for unfinished jobs....

and i know why, its because irda isn't fully implemented yet in the source, but what i don't understand is why when my device doesn't support irda is it trying ti compile irda?
[XDA-University] Great_Geek:
Because the compiler doesn't know your device , it just does what it's told to do.

Something tells it to build the irda modules, and it will try to do just that..

Find out what's calling the makefile for irda, then remove that call, if it's not necessary :)
[XDA-University] AndyFox2011:
Is that why it say dependencies not found bailing out?

All the device files are there though :(

i dont even know where to begin looking for the make file though :/ there are so many of the damn things
[XDA-University] Great_Geek:
Dependencies not found is like telling someone to wash your car, when you don't even have a car..

Going through those makefiles are all you could do, short of asking the developer
[XDA-University] AndyFox2011:
i had a look on google so actually its like asking someone to wash your car using your hose pipe when you have a car but no hose pipe :P it just means the cm.depencies that would sync from the CM github aren't there so i can ignore that as it picks up it being a cm_ace

maybe i will ask a dev (:
[XDA-University] Great_Geek:
Same thing, doing work on some data when the data does not exist :p

Ask the specific dev that made that source tree / the maintainer for that device
[XDA-University] AndyFox2011:
I just PM'd him so hopefully he'll be able to help :3
[XDA-University] trevd:
"Dependencies not found" means your missing the cm.dependencies file in the device directory. you can create an empty one if the device doesn't depend on additional "common" repos by doing the following in the device directory

echo [] > cm.dependencies

This will suppress the warning

Thanks
[XDA-University] tan512:
Help me

It is source code cm10.1, I need to build rom cm10.1 from source. You can help me , i thank a lot of

Link Source code :

https://github.com/embeddedDev
[XDA-University] Great_Geek:
Your question & description is very vague. Please be more clear, so we can assist you better :)
[XDA-University] rmartin0120:
local_manifest

Does anyone know where or how to find or how to make a local_manifest for the mako nexus 4 uXylon ROM? Thanks!
[XDA-University] tan512:
Yes

Now, I have one source code cm10.1 of Huawei U8825. I need anyone build rom CM10.1 from this source

I'm junior, so i dont knowledge build rom from source, i need be helped me.

I thanks a lot of if you help me

This is my communication:

http://www.tinhte.vn/threads/q-smar...-va-tat-ca-nhung-thu-lien-quan.2105221/page-1

Is is almost rom ICS, everyone in my communication hope to have one JB ROM, but dont support us, so i hope you help me
[XDA-University] dacmcbibs:
ok .. so i think i missed a step somewhere... i am trying to compile cm 10.1 and i keep getting stuck with the following error :

make: *** No rule to make target `vendor/samsung/jf-common/proprietary/etc/wifi/wpa_supplicant.conf', needed by `/Source/out/target/product/jfltevzw/system/etc/wifi/wpa_supplicant.conf'. Stop.

can someone point me in a direction ? :)
[XDA-University] Great_Geek:
Resync your sources , or , if you created the tree yourself, you're missing a few rules :)
[XDA-University] kenzolo:
Hi guys,

someone can help me to solve this issue when I try to compile the rom:

https://dl.dropboxusercontent.com/u/30754456/Nuovo documento.txt

Thanks in advance

I tried different version of java but problem still here
[XDA-University] matt95:
Some people solved that only by deleting the repo folder and starting it over again
[XDA-University] ktempleton:
Delete your frameworks folder and resync
[XDA-University] dacmcbibs:
Hmmm ... already tried resynching sources.. , didn't seem to help... and i definitely didn't create the tree myself ;) (i haven't coded in years lets not get carried away ;) )

maybe i set something up wrong following the guide at the front of the thread... i guess its time for a do-over :D
[XDA-University] Great_Geek:
Delete the repos & then re sync

If that doesn't work, nuke the directory & start over..

If it still doesn't work, it's the developer's fault ?
[XDA-University] dacmcbibs:
exactly the path i am taking. re-compiling now ... we will see how it goes :)
[XDA-University] dacmcbibs:
That seems to have done it... of course just because the rom compiled doesn't mean it booted ;) but hey .. babysteps.. thanks for the help!
[XDA-University] kenzolo:
Well finally after several attempts I managed to compile and install the rom on the phone.

Now I would like to learn how to compile it with linaro but not 'it's all very clear.

In my sources I noticed that in addition to the file "envsetup.sh" there is also the file "envsetup-linaro.sh"

that means that linaro was already' installed?

this is the file:

https://dl.dropboxusercontent.com/u/30754456/envsetup-linaro.sh

How should I proceed?

Thanks in advance
[XDA-University] matt95:
some devices have it and some not... which is your phone?
[XDA-University] kenzolo:
my phone is the galaxy s4 jfltexx
[XDA-University] matt95:
Yep, in fact that devices does support for the Linaro code
[XDA-University] kenzolo:
So....

How can I build a rom with linaro toolchain?
[XDA-University] matt95:
Check here and here
[XDA-University] mithun46:
Do a

. build/envsetup-linaro.sh

and compile rom as usual and you will have a linaro rom
[XDA-University] lkspooky:
I Cant find my build!

Terminal says waiting for unfinished jobs and then completes but i cannot find my build in the out folder. I already tried nuking it and also reinstalling Lubuntu but I cannot see my build for my Nexus 7
[XDA-University] matt95:
take a screen of the process completed please
[XDA-University] :
Erroring out when compiling 4.2 for jflteatt:

see

http://imgur.com/51CrpNf
[XDA-University] Slayer_b:
I've seen a lot of these failures while built my rom, just ignore this and restart the build.
[XDA-University] daggerxXxsin:
cm 10.1 build error

This is only my second time building cm from source and I am encountering this error.

http://pastebin.com/WbzcJEJR

I'm sure I synced the source right but still I get this error. Thanks in advance!
[XDA-University] :
got further but cannot get it to build... odd
[XDA-University] soccerfan6789:
Bummer. I got a ROM yesterday somehow. It game me a process android error and wouldn't budge when I kept on pressing ok. Deleted my entire folder and started from scratch. Now, I'm getting this error again. It worked yesterday, but it isn't today. I am not getting the bluetooth error however. Just this

kernel/samsung/msm8660-common'
make: *** [TARGET_KERNEL_BINARIES] Error 2

Full log: http://pastebin.com/Ndqi0y3e

I changed the toolchain three times and still get the same error...Had this error for over two weeks now and I'm getting really frustrated. Building Xylon from here: https://github.com/ultimatumkang for hercules which isn't supported
[XDA-University] just1nsama:
/home/shariq/aosp/kernel/samsung/msm8660-common/net/bluetooth/hci_conn.c:400:2: error: expected ';' before 'hci_send_cmd'

From what i see, there seems to be an error in the code of hci_conn.c a ; missing or something else.
[XDA-University] soccerfan6789:
Ran a diff and one line was different. However, I purposely did that as it was suggested by someone. When I ran the build after I edited that line previously, it built fine. Flashed it and got a process error so I went back and built again. That's when I got that error. I'm going to revert back and try building again....don't think it'll work though.
[XDA-University] Ryuinferno:
It seems like a syntax error...the error when you added the line stated that a ";" was missing before something (can't remember, using tapatalk lol...)...try adding a ";" before that line as suggested...

EDIT: Look around line 400 in hci_conn.c and search for the error...
[XDA-University] xtrymind:
i had succesfully compile cm10.1 without error, but after flash it on my phone, it didnt copy all file to system, only copy bin folder,

whats wrong?
[XDA-University] Enmitix:
I've never come across that... how big is the zip file that was created? Are all the files present in your $OUT directory?
[XDA-University] xtrymind:
yeah, it just me having a bad package tools, everything working fine now :)
[XDA-University] -Happy Feet-:
Hello,

have anyone an Idea, how can i compile Cm 10.1 ROMs on an Ubuntu Root Server?

i have an very slow internet connection hat home.

i have use this tutorial. http://wiki.cyanogenmod.org/w/Build_for_endeavoru

The Repo is synced.... now i stuck at the part "Extract proprietary blobs"

for this i need my Phone connected to the PC, or if possbile to the server ;-/

have anyone an idea , if this possible? or anyone an idea how to build without the Phone?

Greets Lars
[XDA-University] Great_Geek:
Yeah, you could get them extracted somewhere then uploaded to server. Or get someone else to upload them for you. ;)
[XDA-University] -Happy Feet-:
this is the same when i build this on my PC with slow internet connection ;) i must sync the complete Repo when i whould run this command ./extract-files.sh
[XDA-University] Ryuinferno:
Well actually you don't have to...most of the devices that have official cm support will have the proprietary files in this repo: https://github.com/TheMuppets ...;)...just add the correct one and path to your .repo/local_manifests/roomservice.xml...
[XDA-University] -Happy Feet-:
thanks i will try it
[XDA-University] Great_Geek:
Wrong. You need only a working adb and the list of files mentioned in ./extract-files.sh :)
[XDA-University] soccerfan6789:
Experiencing this error when I try to build 4.3...(PAC-Man for hercules)

make: *** [/home/shariq/PACman/out/target/product/hercules/pac_hercules-ota-eng.shariq.zip] Error 1

Full log: http://pastebin.com/kKmmfgBV

Anyone had similar problems before?
[XDA-University] Ryuinferno:
Update your device tree...it's an error caused by the recently implemented fstab v2...
[XDA-University] soccerfan6789:
I'm using CM's 10.2...
[XDA-University] Ryuinferno:
Hmm...did it define something like RECOVERY_FSTAB_VERSION in BoardConfig.mk?
[XDA-University] demkantor:
Hey all, been stuck trying to figure this out for a few days now. Ive tried just about all i can think of and what google and xda searchs give me but still get the same errors

In file included from dalvik/vm/Dalvik.h:87:0,
from dalvik/vm/native/dalvik_system_Zygote.c:20:
dalvik/vm/oo/ObjectInlines.h: In function ‘dvmSetObjectArrayElement’:
dalvik/vm/oo/ObjectInlines.h:29:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
dalvik/vm/native/dalvik_system_Zygote.c: In function ‘setgroupsIntarray’:
dalvik/vm/native/dalvik_system_Zygote.c:173:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
dalvik/vm/native/dalvik_system_Zygote.c: In function ‘setrlimitsFromArray’:
dalvik/vm/native/dalvik_system_Zygote.c:193:19: error: storage size of ‘rlim’ isn’t known
dalvik/vm/native/dalvik_system_Zygote.c:201:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
dalvik/vm/native/dalvik_system_Zygote.c:205:9: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
dalvik/vm/native/dalvik_system_Zygote.c:216:9: warning: implicit declaration of function ‘setrlimit’ [-Wimplicit-function-declaration]
dalvik/vm/native/dalvik_system_Zygote.c:193:19: warning: unused variable ‘rlim’ [-Wunused-variable]
make: *** [/home/demkantor/cyanx/out/host/linux-x86/obj/SHARED_LIBRARIES/libdvm_intermediates/native/dalvik_system_Zygote.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from dalvik/vm/Dalvik.h:87:0,
from dalvik/vm/native/java_lang_reflect_Proxy.c:20:
dalvik/vm/oo/ObjectInlines.h: In function ‘dvmSetObjectArrayElement’:
dalvik/vm/oo/ObjectInlines.h:29:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
In file included from dalvik/vm/Dalvik.h:87:0,
from dalvik/vm/native/java_lang_reflect_Method.c:20:
dalvik/vm/oo/ObjectInlines.h: In function ‘dvmSetObjectArrayElement’:
dalvik/vm/oo/ObjectInlines.h:29:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
In file included from dalvik/vm/Dalvik.h:87:0,
from dalvik/vm/native/java_lang_reflect_Field.c:20:
dalvik/vm/oo/ObjectInlines.h: In function ‘dvmSetObjectArrayElement’:
dalvik/vm/oo/ObjectInlines.h:29:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]

This happens anytime i build, the out directory looks almost complete but never finsihes, never gives me the.zip so even though much of my googling says dont worry about this error i have to worry becuase i cant continue!

anyway all ideas are appreciated as im up against a wall!

thanks!

EDIT: fixed with these steps

opened dalvik_system_Zygote.c

then added

#include <sys/resource.h>

then build continued, had new errors and got those fixed too, but i just wanted to add a fix here in case others searched and needed an answer to this one!
[XDA-University] soccerfan6789:
No, it doesn't...should I add that?
[XDA-University] Ryuinferno:
Yup, refer to this: https://github.com/Ryuinferno/andro...mmit/ec15215be7ee3cea4eb6673bb8c1b0245ae53623

But it might also be in your common device tree (like mine is omap4-common)...if you do not have the fstab file like the one above, use v1 instead of v2
[XDA-University] JohnDoes:
Hi!

First, thanks for the great guide!

I want to build CM adding just HALO but I don't know exactly how. Perhaps you can help me with that.

As far I have understant it, i have to add a xml file in the local_manifests folder adding the commits from ParanoidAndroid, this two here:

h ttps://github.com/ParanoidAndroid/android_frameworks_base/commit/518c329e8c67fa96b8a8fc22e1962ddb8497c333

h ttps://github.com/ParanoidAndroid/android_packages_apps_Settings/commit/7c739a86e7a02451a63615d71f1b6c846caacdc6

But what is the exact syntax? I'm new in this stuff and my tries did not work.

Any suggestions?
[XDA-University] Red Devil:
You can cherry pick or patch the particular commits ...
[XDA-University] AndyFox2011:
Cherry pick is your best bet, it is easier than manually merging by far and is better
[XDA-University] WildfireDEV:
Does anyone know how to fix this error. I have tried multiple things but they don't seem to work.

http://m.imgur.com/4qwKrNA

**Press the thanks button if I have helped you.
[XDA-University] shine911:
I'm sorry for my crazy question: I have virtualbox with 1GB of RAM i can complie source :-/ and it compiled how much time?