yashsingh1/xdaforums huggingface dataset:
[XDA-University] sevenup30:
hey guys,

does anyone know how to build in UTF-8 instead of ASCII ?

i have lot of those error since i re install my laptop:

frameworks/base/core/java/android/view/View.java:1982: error: unmappable character for encoding ASCII
* ALIGN_CENTER, or ALIGN_OPPOSITE, which are relative to each paragraph??????s text direction.
^
frameworks/base/core/java/android/view/View.java:1982: error: unmappable character for encoding ASCII
* ALIGN_CENTER, or ALIGN_OPPOSITE, which are relative to each paragraph??????s text direction.
^
frameworks/base/core/java/android/view/View.java:1982: error: unmappable character for encoding ASCII
* ALIGN_CENTER, or ALIGN_OPPOSITE, which are relative to each paragraph??????s text direction.
^
frameworks/base/core/java/android/view/View.java:1982: error: unmappable character for encoding ASCII
* ALIGN_CENTER, or ALIGN_OPPOSITE, which are relative to each paragraph??????s text direction.
^
frameworks/base/core/java/android/view/View.java:1982: error: unmappable character for encoding ASCII
* ALIGN_CENTER, or ALIGN_OPPOSITE, which are relative to each paragraph??????s text direction.
^
frameworks/base/core/java/android/view/View.java:1982: error: unmappable character for encoding ASCII
* ALIGN_CENTER, or ALIGN_OPPOSITE, which are relative to each paragraph??????s text direction.

thanks
[XDA-University] pikachukaki:
Hey can anyone help me with my problem...im trying to compile latest cm10.1 and im getting this error 1 all the time...

http://pastebin.com/zkfrcNNp
[XDA-University] daniel98:
Does this work for devices not officially supported? I'd like to build CM7 for ACE Plus
[XDA-University] mithun46:
READ THE OP!

*Is it Soooo Hard????*
[XDA-University] daniel98:
I missed that... Silly me. Thx for the tutorial anyway
[XDA-University] doga.ozkaraca:
can somebody help me i'm getting this error while compiling cm10.1

make: *** No rule to make target `/home/doga/Source/out/target/product/primou/obj/KERNEL_OBJ/usr', needed by `/home/doga/Source/out/target/product/primou/obj/EXECUTABLES/mm-vdec-omx-test_intermediates/test/omx_vdec_test.o'. Stop.
make: *** Waiting for unfinished jobs....
/home/doga/Source/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin/../lib/gcc/arm-linux-androideabi/4.6.x-google/../../../../arm-linux-androideabi/bin/ld: /home/doga/Source/out/target/product/primou/obj/STATIC_LIBRARIES/libbusybox_intermediates/libbusybox.a(mktemp.o): in function mktemp_main:external/busybox/debianutils/mktemp.c:96: warning: warning: mktemp() possibly used unsafely; consider using mkstemp()
doga@doga-Inspiron-N5110 ~/Source $
[XDA-University] trevd:
Hi there

your kernel directory is probably missing the usr directory, you've got a couple of options to solve it,

in the kernel directory you can do

git checkout usr

or what I'd probably is delete the full kernel directory and the from the top of the build tree do

repo sync kernel/<manufacturer>/<device>

That should make sure you've got anything else that is potentially missing.

For future reference whenever you see "make: *** No rule to make target" means the file is missing, then you need to figure out why and fix it up :good:

Hope that helps
[XDA-University] snOwjAwk:
Hey guys, first off i would like to thank the op for the excellent guide. As many here im facing breakfast errors, I already searched through the thread and read about the little guide to pretend such errors, but the tree is existing and i seriously dont know what im doing wrong.

the log: http://pastebin.com/DeSucqLL

thanks in advance :fingers-crossed:
[XDA-University] trevd:
Hi There

Don't know whether you solved this as it was 2 weeks ago....LOL :D that looks a pretty showstopping error when presented like that... then I looked at your pastie dump and saw that it's failing to build a test for the ion library

target thumb C: iontest <= system/core/libion/ion.c
system/core/libion/ion.c: In function 'ion_alloc':
system/core/libion/ion.c:65:3: error: unknown field 'heap_mask' specified in initializer
system/core/libion/ion.c:67:17: warning: initialized field overwritten [-Woverride-init]

The quickest way to fix this is to not build it, It doesn't effect the final build and I'd hazard a guess that you're not running a test suite on your device when the build is complete.

So in system/core/libion/Android.mk, you can comment out the line's that look like this

include $(BUILD_EXECUTABLE)

This will prevent the tests being built and causing a problem.
[XDA-University] Red Devil:
I figured out that one of the headers that gets included during the build in my device tree libion.h was not as it was supposed to be.. I referenced a few other trees for my device and manually reverted a couple of commits that were regarding this and managed to build it. Thanks a ton anyway [MENTION=4179234]trevd[/MENTION] .. Knowledge never goes to waste :)
[XDA-University] doga.ozkaraca:
usr folder is exists but i'm still getting same error...

what other possible things for this error ? :)
[XDA-University] trevd:
Ay, probably not in that directory "/home/doga/Source/out/target/product/primou/obj/KERNEL_OBJ/", but having another a look, it's a similar situation to [MENTION=4918174]Red Devil[/MENTION] and the file it's failing on is a test. So I'd just comment it the relevant makefile and carry on.

So test next question is which Android.mk is it defined in? There's an easy way to find it ( and any file in the AOSP tree ) is to use the godir function which is setup when you run build/envsetup.sh

In your case i'd search for the file that it failed on which is omx_vdec_test.o , search for the name without the ".o" and it should bring you somewhere close. This time the file is in "hardware/qcom/media/mm-video/vidc/vdec/test" and the Android.mk is in the directory above it.
[XDA-University] snOwjAwk:
please guys anyone? :( :confused:
[XDA-University] just1nsama:
Have you tried this ? I remember it fixed my breakfast problem when i first tried to build.

FYI cm10.1 is your source tree's folder, might have a different name if you named it differently.
[XDA-University] snOwjAwk:
No such file or directory. I havent renamed anything at all tho. :( :(

I guess Im doing such kind of very very obvious mistake though :/
[XDA-University] ktempleton:
CD into .repo/repo type git pull
[XDA-University] snOwjAwk:
This is confusing. It says 'is already up to date'. But when i retry breakfast again it tells me not found? :headbang: :(

and :

Device mako not found. Attempting to retrieve device repository from CyanogenMod Github (http://github.com/CyanogenMod).

Found repository: android_device_lge_mako

Default revision: cm-10.1

Checking branch info

CyanogenMod/android_device_lge_mako already exists

Traceback (most recent call last):

File "build/tools/roomservice.py", line 268, in <module>

add_to_manifest([adding], fallback_branch)

File "build/tools/roomservice.py", line 183, in add_to_manifest

f = open('.repo/local_manifests/roomservice.xml', 'w')

IOError: [Errno 13] Permission denied: '.repo/local_manifests/roomservice.xml'

ls: cannot access device/*/mako/cm.mk: No such file or directory

build/core/product_config.mk:234: *** Cannot locate config makefile for product "cm_mako". Stop.

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

** Do you have the right repo manifest?
[XDA-University] doga.ozkaraca:
can somebody help me for getting QCMediaDefs.h file

i cannot compile

frameworks/av/media/libstagefright/MPEG4Extractor.cpp:44:25: fatal error: QCMediaDefs.h: No such file or directory

compilation terminated.

make: *** [/home/doga/Source/out/target/product/primou/obj/SHARED_LIBRARIES/libstagefright_intermediates/MPEG4Extractor.o] Error 1

make: *** Waiting for unfinished jobs....
[XDA-University] kilometers4:
[MENTION=225651]op[/MENTION] looks like github is functioning normally again. So you can take down the warning on the first post :)
[XDA-University] ktempleton:
Are you trying to build cm
[XDA-University] snOwjAwk:
yes :o
[XDA-University] mrsmtt:
Hi, I'm tryin' this for the first time; Is it normal that repo sync is taking hours to be done?
[XDA-University] Deadly:
Yes, 2.3 GB OS 3-4 GB & JB 8 GB size i think..
[XDA-University] thewadegeek:
Depends on your internet, most likely yes.
[XDA-University] daniel98:
made brunch trebon-eng for my ace plus. in $OUT folder i got a bunch of files, no flashable .zips there, but some .imgs, .mks, .cpio and folders

how do i build it further to make flashable .zip?
[XDA-University] hakesak:
Nice

N2. Jedi X14. XDA Premium. Jelly?
[XDA-University] daniel98:
made "brunch trebon-eng" again. same thing. bunch of files, folders. no cm*.zip

nvm. i'm just an idiot -_- . forgot to exec "make -j4 otapackage"
[XDA-University] mrsmtt:
Hi guys, when I try to extract proprietary blobs it says that "./proprietary-files.sh" isn't a recognized command not even "./extract-files.sh" ... I'm on Ubuntu (x64) and everything went fine until i got stuck here! :confused:
[XDA-University] mithun46:
chmod +x proprietary-files.sh extract-files.sh
[XDA-University] daniel98:
finally created a flashable .zip. after flashing it, it got stuck at GT-S7500 logo. after a few minutes, it would reboot and do the same thing. after using a "port from device to other device" thread, i used a base rom for my phone to try and fix the bootloop by replacing several files with the files from the working rom. the only result is that the bootloops were shorter, almost instant after seeing the GT-S7500 logo. i can't logcat through adb in recovery. can anyone provide a tool that might be able to logcat from recovery?
[XDA-University] Hel10s:
:) Good guide!

i have a some problems:

when i run this scritp "./extract-files.sh", my computer cant find some files in adb, this its normally?

when i run the order "brunch i9300", the computer start to compile... but in /source/out/target7product/i9300 only have this files:

obj > folder

root > folder

system > folder

clean_steps.mk

previous_build_config.mk

I dont find any kernel folder and any flasheable zip :S
[XDA-University] just1nsama:
The extract-files script has for purpose to get the vendor files of your device, the CM device trees need it to compile a build for your phone. If you dont have those vendor files, you wont get a working a build or a complete compilation. If you re having issues extracting those vendor file, you can get it from github.

To do so ..

-In your cm10.1 source tree:

cd vendor

git clone https://github.com/TheMuppets/proprietary_vendor_samsung.git -b cm-10.1 samsung

Once it downloaded all of the vendor files:

make clean

. build/envsetup.sh

brunch i9300
[XDA-University] Hel10s:
After upgraded java (because in the terminal appeared a message that told me that java version was not correct) and ran these commands, I ran "brunch i9300" and got an error ... probably because they still can not find some files ...

But something happens when I run again "brunch i9300", every time I run this command, I get a different result, each execution takes a different time, and in the folder "out" I'm having more and more data ...

Now,is the fourth time I run the command, and the terminal is working for 10 minutes ago.

Any idea? Thanks for the help! :)

Edit:

Now terminal was finish, and i got this message:

target arm C++: libwebrtc_apm <= /home/manu/Source/out/target/product/i9300/obj/STATIC_LIBRARIES/libwebrtc_apm_intermediates/proto/external/webrtc/src/modules/audio_processing/debug.pb.cc
make: *** No rule to make target «vendor/samsung/i9300/proprietary/system/lib/hw/vendor-camera.exynos4.so», necesario para «/home/manu/Source/out/target/product/i9300/system/lib/hw/vendor-camera.exynos4.so». Stop.
make: *** It is expected to finish other tasks ....
target arm C++: libwebrtc_apm <= /home/manu/Source/out/target/product/i9300/obj/STATIC_LIBRARIES/libwebrtc_apm_intermediates/proto/external/webrtc/src/modules/audio_processing/test/unittest.pb.cc
[XDA-University] cj360:
Edit - never mind found an older commit that had my solution
[XDA-University] daggerxXxsin:
Sorry if this is a noob question but how would you compile just a specific branch? I want to compile cm10.1 RC 2 (if a branch is available for it).
[XDA-University] commencal661:
I think you need to have CM ROM installed.
[XDA-University] Hel10s:
I have installed the kernel with dualboot googy max, right now im downloading the latest Nightly to test.

Thanks! I will post here to say if it worked or no. :fingers-crossed:

Yeah, i installed cyanogenmod, when I run this script i doesnt have errors to get files ...

I had thought, but i didnt want to delete my rom and i didnt remember that googy max have dualboot, its a very foolish failure, but I'm noob!

Thanks for help me! I will continue the following steps!

Pd: Sorry if i have bad english
[XDA-University] Hel10s:
Ok guys, thats ok, i have just compile mi first rom of CM10.1 :)

Thanks for this tutorial and help :o
[XDA-University] aojk:
It's useful for me, thanks.
[XDA-University] ptothej:
Hi all

I'm trying to build CM10.1 for GT i9105P and got as far as breakfast ******* command what should i type in ******* place .

Offcourse gt i9105p is not being recognized.

Any help much appreciated
[XDA-University] The_Wolf91:
Hi, I want to compile a rom based on CM10.1 and adding some features from others rom. How can I do that?
[XDA-University] just1nsama:
I think your main problem is that i9105p doesnt seem to be supported by CM, i9105 is, i dont know the difference between those two, but what you could try is manually add the i9105 device tree from CM, with its kernel and vendor files. You can find the tree and kernel on CM's github (or just run "breakfast i9105") and the vendor files on themuppets github.

Like i said, i dont know the difference between those two devices, so i cant garantee it'll work, worth trying tho.

You have to incorporate other roms frameworks, app packages and vendor files (probably other cherry picking, just shooting a couple out of the blue), explaining it in a post could be quite difficult, you going to have to get used to github and try different things by yourself, self learning along with a base tutorial like this one is the best way IMO.

ROM exemples you can base yourself on looking at the manifests: PA, PAC, AOKP.
[XDA-University] ptothej:
Will try with the i9105 as its the same as i9105P the only difference is i9105p has NFC chip on it.

Thanks for the tip, haven't though of that ;)
[XDA-University] The_Wolf91:
So, after compiling CM10.1 rom with this guide, I have to use Github, register an account on it using this guide: http://xdaforums.com/showthread.php?t=1877040 and then try to add some features?
[XDA-University] just1nsama:
No you have to add those features to your existing source tree by replacing the existing ones with the new ones and then compile your custom build. In other words, you customize your own source tree by using CM10.1 as base, it is much more easier then starting a source tree from scratch ...
[XDA-University] maxrdlf95:
Question how I can compile the RC versions? which comand I need
[XDA-University] daggerxXxsin:
+1 on this. Had the same question a few posts back.
[XDA-University] Great_Geek:
Repo init with the rc branch that you need. (Or get the manifests for that build)

The rest will be the same..
[XDA-University] daggerxXxsin:
Thanks for the reply. Is there a way to do it without having to redownload the entire source?
[XDA-University] trevd:
Hi There,

As long as you haven't removed the .repo directory or more importantly the .repo/projects directory then any repo sync's after the initial download should be fairly quick. The first sync takes so long because you're getting every branch of more or less every project. That is assuming you didn't do "repo sync --current-branch" on your first sync which is the method If I was short on bandwidth ( or patience ) :D

See this XDA-U page for some useful info on working with repo and your sources
[XDA-University] Weekend Offender:
Hey guys,i have setup the build enviorment using this guide and i have downloaded the CM7 source code.Im building for Lg gt540 which doesnt have official CM support.So i start my build and i start soure ./build/envsetup.sh command and after that i select my device with choosecombo command.After that I tried to use make -j16 otapackage and after that i get error output something like "No rule to make otapackage"

Im sorry if i posted in wrong thread or something but im still pretty new to all of this and im really giving my best :p

Thanks anyways
[XDA-University] daggerxXxsin:
Thanks, will check it out :)
[XDA-University] paras357:
hey how much time repo take to be completed ???????????????????????????????????????????????
[XDA-University] sunny2303:
Congrats [MENTION=4922752]mithun46[/MENTION] on your Recognized Contributor tag... Way to go !!!!
[XDA-University] trevd:
[MENTION=5218973]paras357[/MENTION] : Hours, like maybe 2 or 3, Also you don't need to quote the full OP with pictures to ask a question like that ;)

[MENTION=4390246]smileydr0id[/MENTION] : Try just make -j16.. If you fancy delving into it you can look at the Main make file in build/core/Makefile to find out exactly what rules are available to you. make -j16 on it's own will build the images but won't create a flashable zip. They're are still easy to work with especially if you device has fastboot or something similar.

Although I've just had a look at a CM7 Makefile and otapackage is in the rules.. You can also try make -j16 bacon which is an alias for the otapackage rule
[XDA-University] Weekend Offender:
Well 1st time i tried to build it i used just make -j16 for the system.img file but i found that some users have struggle when it comes to flashing files with fastboot.So i thought that it would be much simpler to just make an flashable zip,ill try it and ill post my resoults.

Thank you :)
[XDA-University] trevd:
Ay,I know what you mean... I don't like to make things to easy for users because you don't learn anything then.

If you stil run into to problems then manually creating an update script which flashes the system image is easy... it's like 2 lines of "edify"
[XDA-University] mithun46:
Thanks a LOT!!

Would Not Be possible without you guys :D
[XDA-University] ptothej:
Hi all I managed to get all proprietary files etc, kernel and other stuff for i9105P.

Source folder is set up as follows

kernel is in folder /home/przemo/Source/kernel/samsung/i9105P

and device files from github are in the folder home/przemo/Source/kernel/samsung/i9105P.

Now when i do brunch from Source directory it gives me an error

No rule to make a target `/home/przemo/Source/out/target/product/i9105P/kernel', wymaganego przez `/home/przemo/Source/out/target/product/i9105P/boot.img'. Stop.

What i'm doing wrong ??

Any help appreciated
[XDA-University] uuzi:
build errors compiling p.a.c.

after a few hours of trial and error i finally got my first build of p.a.c. for m7ul running but now it stops after creating the recovery image

output is as follows:

----- Making recovery image ------
/home/uuzi/pac/out/target/product/m7ul/recovery.img maxsize=17029056 blocksize=135168 total=7591936 reserve=270336
Made recovery image: /home/uuzi/pac/out/target/product/m7ul/recovery.img
target R.java/Manifest.java: SettingsProvider (/home/uuzi/pac/out/target/common/obj/APPS/SettingsProvider_intermediates/src/R.stamp)
device/htc/m7-common/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml:21: error: Resource at def_force_overflow_button appears in overlay but not in the base package; use <add-resource> to add.
make: *** [/home/uuzi/pac/out/target/common/obj/APPS/SettingsProvider_intermediates/src/R.stamp] Error 1
uuzi@uuzi-VirtualBox:~/pac$

can anyone point me in the rough direction how to fix this, any help much apreciated.

thx

uuzi
[XDA-University] Great_Geek:
Chances are, you can't fix that unless you're okay with making changes to the source. If you know Java, go look around in the files mentioned in error..

The build environment seems to be working fine. So, this guide has fulfilled it's purpose. You'd have to talk to the developers/maintainers about this ;)
[XDA-University] ktempleton:
You need to go here

device/htc/m7-common/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml:21:

Open the XML go to that line copy it and put it here

frameworks/base/packages/SettingsProvider/res/values/defaults.xml
[XDA-University] Cuppeerr:
Ok so for the life of me I cant figure out how to install these... I feel stupid....
[XDA-University] Great_Geek:
sudo apt-get install (application)

eg : sudo apt-get install g++ , openjdk6

Hope it's clear enough :)
[XDA-University] Cuppeerr:
Ok yeah that makes total sense, thank you:)

I never use linux so i'm basically dumb when it comes to it lol
[XDA-University] loqi:
I have a newman newman n2 but has not released the kernel source code. Would it be possible to compile cyanogen without kernel sources? I mean do it with stock kernel.

Should I look some way to get a cyanogen rom? Ported or compiled??
[XDA-University] Red Devil:
It is possible to compile cm using stock kernel. But boot.img you will have to make yourself by accordingly adjusting the ramdisk of the bootimg.
[XDA-University] WildfireDEV:
Thanks a lot for this guide helped me make my first Rom.
[XDA-University] The_Wolf91:
Is there a way to not download all repository from Cyanogenmod and download only the device tree for I9000 (galaxysmtd)? If so, have I to modify the manifest.xml? And if yes, which strings should I keep?
[XDA-University] Great_Geek:
Device specific files that are not needed can be removed (provided you aren't relying on them at any point in compiling)

Also try getting only the current branch :)
[XDA-University] The_Wolf91:
How can i determine if they can be useful or not (strings from manifest.xml)? And what you mean with "getting only the current branch?"

Thanks in advance :)
[XDA-University] Great_Geek:
' repo sync --current-branch ' , I think...

From manifest.xml , not much really, cause you probably have all devices as one repo..

Actually, device files won't take up that much space/bandwidth..
[XDA-University] The_Wolf91:
I've repo synced all the things needed to start. How can I sync my github account with my local repository?
[XDA-University] Great_Geek:
Github has a whole guide on that... Come back if you still haven't understood that ;)
[XDA-University] mithun46:
Thanks for all help. I can't help as I don't have a PC now
[XDA-University] AndyFox2011:
Anyone tried compiling on Ubuntu 13.04?

I've just upgraded my PC so i'm gonna reinstall Ubuntu and start building again, should i stick with 12.04? (I think thats the recommended one but i can't remember)
[XDA-University] trevd:
:eek:Hi. 13.04 is fine for building on. I use lubuntu . I've got a script you can use to initialize the build environment feel free to use that.... I think I got everything covered in it.

wget -F https://raw.github.com/trevd/random_and_useful/master/init_android_dev.sh
chmd +x init_android_dev.sh
./init_android_dev.sh

Edit: wget "f" parameter is upper case and I copied the wrong URL , Fixed Now :o That's what I get for replying to posts while on the bus! LOL
[XDA-University] AndyFox2011:
Fab cheers dude :)

I thought better to ask first as if my memory serves me well 12.10 had some issues building kernels...
[XDA-University] Great_Geek:
I built so many ROMs with 12.10 , I don't think 13.04 should be a problem..

But , you never know till you try , right ?

We can help get it working, if you have problems :)
[XDA-University] AndyFox2011:
True, well I've installed it so now to set it up :P

Damn Ubuntu actually runs smoothly now! Makes me realise how bad my old PC was!

May have hit a slight hitch, Ubuntu lied to me about the partition windows 7 was on and made me delete that instead of my old XP partition :'( so I have to reinstall 7 now
[XDA-University] AndyFox2011:
Well I fixed up my PC so I have windows again :(

Used your guide again to setup 13.04, works like a charm, except for

g++-4.5-multilib

currently syncing BeerGang repo so hopefully I can get that to build :)
[XDA-University] Great_Geek:
Get a compatible source for g++-4.5-multilib.. Chances are, your build will fail without it..
[XDA-University] AndyFox2011:
Compatible source? :confused: