yashsingh1/xdaforums huggingface dataset:
[Android] blazingwolf:
I've hit a couple of issues that have stumped me. The first error I got was linux/msm_ion.h was not found. No file or directory. I did some research and the fix was to rename the ion.h file to msm_ion.h. Cool got past that.

I'm now getting SHARED_LIBRARIES/libOmxVenc_intermediates/src/video_encoder_device.o] Error 1. The fix for this seems to be rename msm_ion.h to ion.h. Well, that just gives me the first issue again. :confused:

I've tried looking at other device trees for the HTC One S which has a kind of working build but I'm not seeing something that will fix this for me. Any one got any ideas?

Pastebin of the video_encoder error and a bunch of lines before it. http://pastebin.com/nxwxScjL

I'm trying to build this for the HTC Fireball/HTC Droid Incredible 4G LTE.

Thanks.
[Android] NineInchNails:
Um no. See this is dastin's thread and being his development partner Im pretty sure he doesnt care if I do. So from one contributor to another. Drop it. Thanks.
[Android] blazingwolf:
Make sure that your product name is correct in your device tree. It is looking for specifically named files in there and not finding them. Start by looking at cm.mk and then look at the other mk files in the tree.
[Android] soundemonchan:
For those getting a syntax error on

repo init

It's because of Python3 being listed as Python in /usr/bin.

A temporary workaround is to symlink python2 in place of python 3.

$ mkdir ~/bin
$ ln -s /usr/bin/python2 ~/bin/python
$ export PATH=~/bin:$PATH

Check to see if it worked

$ which python

And if it returns the binary in ~/bin/python it worked

The solution would either be to symlink python by default or rewrite repo in Python3.
[Android] onlychevys:
Thanks so much for your reply, next ? is: it is looking for cm_hercules correct?
[Android] blazingwolf:
As the product name yes. Then make sure that all of the mk files that cm.mk asks for actually exist. They all need to be named correctly for it to work right.
[Android] T-Macgnolia:
I have been tryinng to get a complete build for days now. I even deleted everything and started from scratch again. Anyway I am using CM 10 now and every body else over at the #JB-pyr IRC channel are able to get a complete build with CM10. Here are the steps I have done.

I followed the steps in the OP of this thread completely.

After I added my device I then synced with CM 10 with the following commands.

$ repo init -u git://github.com/CyanogenMod/android.git -b jellybean
$ repo sync

I then did the following, I went into vendor/cm/vendorsetup.s and un commented the line for pyramid.

I then did the following.

$ cd ./vendor/cm/ && ./get-prebuilts

Now the first time i tried to build I got a error about not having the libacdbloader.so in WORKING_DIRECTORY/vendor/htc/pyramid/proprietary/lib but my friend TheHamster hooked me up with the missing file so I could fix that.

Now on my second attempt a building I get a new error that I am not really sure what the exact error is. Here is a paste bin, any kind of help on this would be very welcome. I have been keeping up with this thread abd I have not seen this error mentioned in the thread at all.
[Android] lithid-cm:
What about extract-files.sh? Did you run that as well?
[Android] T-Macgnolia:
Yes I pulled the propietary files from my device, why I had the problem with libacdbloader.so I do not know, but like I said I said I have the file now and am past the error. I just do not really understand what the exact error is that i have now.
[Android] lithid-cm:
I have a feeling there is more to the error, mind pasting more of the output?
[Android] T-Macgnolia:
I will have to compile again to see if i get it again, I got the error last night and that was all i grabbed to put in past been. But all the lines above that looked ok. I will re compile and post the results back here shortly, probably 15 minutes or so.
[Android] onlychevys:
This is completely FREAKING stupid godforsakeing hard impossible!!!!!!! You people are rocket scientist guru, too smart for your own good SOB's!! I mean no disrespect at all to anyone here. You must have to start out as a 2 year old child and learn code before kindergarden to actually build anything from source! I just ain't smart enough to figure out the 3000 freaking errors. I would love to be able to compile cm10 nightly builds for my phone and help the dev's out with there time, but now I know why no one else is. IT'S TO GOD DAMN HARD!!!!!!!!!!!

Please forgive my last statement as far as language, but it was hard enough to keep from shooting my monitor with my pistol. Wife already hid the gun. It really sucks when everyone is so nice to help you but they talk so far above your head that you don't understand.
[Android] stormtroopercs:
Building from source is the easy part ;)
[Android] NineInchNails:
Keep at it man. What you should try to do is get setup to compile CM9 first for your device and learn from that. Not familiar with what you have atm but building JB probably isnt the best starting point in learning. What you need is a confidence booster. Compile a build that youve done even if its Gingerbread or CM7 and flash that. Thatll give you some confidence to keep at it and see some reward for what you have learned. Just an idea to throw at ya.
[Android] onlychevys:
Thanks! I will stay at it and she won't let me shoot the computer, but it sure gets to ya!
[Android] T-Macgnolia:
Well I tried to compile again and i did not get that error, I think it was just a fluke but I did learn some about what the error was. The input/output error is possibly something to do with the actual hard drive. It is a very rare error but can be bad as it might mean your hard drive is failing or has bad blocks. I was lucky and it was just a by chance accurance for me, as i said the other build I tried did not give the error. In fact it almost completed as it was in the process of making a complete system folder in the WORKING_DIRECTORY/out/target/product/pyramid/system, see the screen shot. But my dang laptop locked up before it could finish the build so I am doing another build right now.

Man I totally feel your pain brother, I have had my moments of pure frustration trying to do this too. And as others have said JB is probably really not the version people like you and I that do not have experience doing this should start. But also like others have said man just keep at it, don't give up. Also a little piece of advice I just got may help you also. After every failed attempt at compiling and fixing your current error do this. In terminal while in your WORKING_DIRECTORY type the following.

$ make clean

This will remove all of your old build files so you can start fresh with the new build, this may cut down on your errors.
[Android] mydailypedia:
Hmm i like this

great effort
[Android] NineInchNails:
Setting up pipes or ccache will help also but great advise about make clean cmd. For some of you new to this you need to make clean before another attempt at compiling as he mentions. This will save a few fist poundings to your desk or walls.

Not getting very far with my build either for the 3D but for me its a chance to learn more. Errors out all the time but instead of bypassing them Im trying to fix them.
[Android] 123shree:
HELP!!

Can somebody help me with this???

http://pastebin.com/VrjdXQCg

I Can't find the xmlwriter module in the src folder... :(
[Android] petbede:
AGE has Nothing to do with NUMBERS but with what MANNER one CHANGE the WORLD

Howdy dastin1015???

Great Effort and Time putting this together....THANKS

To build SKYSCRAPER one need to stand from the FOUNDATION....THANKS

This GUIDE + TUTORIAL is the FOUNDATION

And..... the JELLY BEANS and OTHERS are the SKYSCRAPERS....THANKS

With all RESPECT I'm saying Whole Heartily....THANK YOU

And...... with Greater RESPECT for TIME + EFFORT you put....THANKS SO MUCH

AGE has Nothing to do with NUMBERS but with what MANNER one CHANGE the WORLD.

I also clicked the THANKS BUTTON!!!

PEACE!!!
[Android] :
How much space should I partition my HD to fit all? [+ubuntu x64] I had open 12GB, but had no idea it would take too much. 93-95GB is fine?

Also, Intel Core2Duo E7500 2.93GHz + 4GB DDR3 Kingston fine? Not very good, but it can handle the job?
[Android] n1kolaa:
, im on windows 7 so are any way to complie on windows ?
[Android] :
No.

Not with Windows. But on Windows you can :P just create a virtual machine running ubuntu.
[Android] stormtroopercs:
can someone help me with this error?

build/core/product_config.mk:193: *** _nic.PRODUCTS.[[device/samsung/galaxys2/full_galaxys2.mk]]: "hardware/samsung/exynos4210.mk" does not exist. Stop.

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

** Do you have the right repo manifest?
[Android] dastin1015:
From inside the root of your working directory

$ cd hardware
$ git clone git://github.com/CyanogenMod/android_hardware_samsung.git -b ics samsung
[Android] stormtroopercs:
now i get this ;(

No private recovery resources for TARGET_DEVICE galaxys2

Import includes file: out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/import_includes

Header: out/target/product/galaxys2/obj/include/libsecmm/mfc_errno.h

Header: out/target/product/galaxys2/obj/include/libsecmm/mfc_interface.h

Header: out/target/product/galaxys2/obj/include/libsecmm/SsbSipMfcApi.h

Header: out/target/product/galaxys2/obj/include/libsecmm/color_space_convertor.h

Header: out/target/product/galaxys2/obj/include/libsecmm/csc_fimc.h

make: *** No rule to make target `out/target/product/galaxys2/kernel', needed by `out/target/product/galaxys2/boot.img'. Stop.

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

Import includes file: out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/import_includes
[Android] dastin1015:
You're missing your kernel. Do you have a prebuilt kernel?
[Android] stormtroopercs:
no.
[Android] dastin1015:
Well you need a prebuilt kernel in the directory the error is spitting out.
[Android] petbede:
Hi.

Is it possible that this will work with HTC HD2???

If YES!!!

Can I use my HD2 Info in the build part or is there anyone u know I can use?

Once again....THANKS.

PEACE!!!
[Android] dastin1015:
You will have to begin with an ICS device repo and edit it to work with JB source. You can use CM device repos.
[Android] petbede:
I am running ICS AOKPA_LEO_BUILD-40 ROM on my HD2.

Does that make any differs???

PEACE!!!
[Android] Trugglepunts:
This is all downloading nicely but I don't see any files in WORKING_DIRECTORY yet

where will they be?
[Android] dastin1015:
You need a device repo. That is different from a ROM.

You won't see files until it is done downloading.
[Android] dastin1015:
Delete the overlay folder in the device folder.
[Android] dastin1015:
Delete your trash

私のEVO 3Dから送信される。
[Android] thx84:
Does anyone have an issue with the aosp repo? I keep getting fatal errors when I try to sync.

Sent from my Xperia Neo on Ics
[Android] 123shree:
Again got the same thing :(

Should I restart after doing that??

EDIT : I restarted and it's still the same thing...

When i check the mentioned src folder there is neither the make file nor the module.. there is a folder org and if i dig deep into it, it'll lead to a XMLwriter.java source file :(
[Android] T-Macgnolia:
Just type "repo sync" into terminal when ever it does this abd it will pick back up on the repo where it stopped at. I was going mad until someone told me this cause my repo was doing the same thing.

The error message is telling you what to do. You need to add "LOCAL_MODULE_TAGS := optional" to the "Android.mk" for the "xmlwriter" module. It should be in .local/share/Trash/expunged/1195456016/tools/monkeyrunner/src. You may have to do ctrl+h to see .local in your WORKING_DIRECTORY or atleast I think that is wher it is, I am using Windows right now and can not check. Also it may help you to go to your to "cd" to your "WORKING_DIRECTORY" and then type in "make clean" and then try to compile again.
[Android] NineInchNails:
Another good note mentioned there worth pointing out again. Hidden files. Still gets me some days and I forget.
[Android] 123shree:
OK fixed like 7-8 errors.. but there's one more :(

http://pastebin.com/R3x3WkFK
[Android] NineInchNails:
Enter make clean before starting a new build but as dastin said.. empty the trash.

Basically it looks like your trying to fix a dirty build and that wont get you anywhere. Start fresh again.
[Android] T-Macgnolia:
Ok this error is telling you that MODULE.HOST.STATIC_LIBRARIES.libSDL is defined in two locations. I suggest you go to "build/core/base_rules.mk" and look at line 171 of the base_rules.mk file. You may have to comment out the lin, hint to comment just put "#" at the beginning of the line. But make not of this somewhere in case you have to un comment it and go to ".local/share/Trash/expunged/3094898634/linux-x86/sdl/lib" and and make your change there. The first error about" find: `../../../../external/xmlwriter/src': No such file or directory" means that the file "src" is not in that location so you may have to create the file there. Now like I said earlier I am on windows now so I am just going on the error so I may not be completely right.

Edit: Do as NineInchNails suggest you will probably do better to do that then what I mentioned above.
[Android] 123shree:
Actually your suggestion kinda worked.. bypassed those errors..
[Android] NineInchNails:
But your still compling a dirty build.
[Android] 123shree:
You mean i should delete all the files re-sync it again???

That would be a nightmare for me :(

Plus I have done make make clean, cleaned trash and synced the sources again (without deleting the files)
[Android] lithid-cm:
Naw, there is an easy way to fix your environment without needed to resync. If you delete all the repo folders but making sure to keep your hidden ".repo" folder you won't have to download anything. That repo folder holds all the data, it just creates those folders you see, so delete the folders, keep the .repo intact and resync and recompile. There will be no need to download everything.

for example:

Not showing hidden files:

lithid@UbuntuLinux:~/Documents/CM10$ ls
abi build device gdk Makefile prebuilt vendor
android cts docs hardware ndk prebuilts
bionic dalvik external libcore packages sdk
bootable development frameworks libnativehelper pdk system

Showing hidden files:

lithid@UbuntuLinux:~/Documents/CM10$ ls -a
. bionic dalvik external libcore packages .repo
.. bootable development frameworks libnativehelper pdk sdk
abi build device gdk Makefile prebuilt system
android cts docs hardware ndk prebuilts vendor

I just removed everything:

lithid@UbuntuLinux:~/Documents/CM10$ rm -r *
rm: remove write-protected regular file `Makefile'? y
lithid@UbuntuLinux:~/Documents/CM10$ ls
lithid@UbuntuLinux:~/Documents/CM10$

Repo is still there though with 6 gigs of data

lithid@UbuntuLinux:~/Documents/CM10$ ls -a
. .. .repo[
lithid@UbuntuLinux:~/Documents/CM10$ du -sh .repo
6.0G	.repo

Now time my resync for you. > http://paste.ubuntu.com/1104754/

lithid@UbuntuLinux:~/Documents/CM10$ time repo sync -j16
real	5m25.022s
user	1m28.462s
sys	0m27.026s

Everything is now cleaned, and back to a competely fresh working tree, took me about 5 mins shouldn't take anyone over 10-15 to rebase this.

lithid@UbuntuLinux:~/Documents/CM10$ ls
abi build device gdk Makefile prebuilt vendor
android cts docs hardware ndk prebuilts
bionic dalvik external libcore packages sdk
bootable development frameworks libnativehelper pdk system

Sorry for the winded response. Just thought a simple walkthrough might help out some people who don't understand quite everything linux/android yet. I really tried to numb it down lol. Take care.
[Android] ttibbetts83:
find: `src': No such file or directory

PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.

make: *** No rule to make target `otapackage'. Stop.

how can i fix this
[Android] NineInchNails:
Goldfish? Ok.. but to answer this it tells you its not finding apns-conf.xml. If you want you fix it use one that exists already from your device and put it in the directory mentioned in the error.
[Android] thx84:
I succeded to build without errors. Where can I find the end package ?

Sent from my Xperia Neo on Ics
[Android] lithid-cm:
It tells you when its done building

out/target/product/...
[Android] NineInchNails:
Whats your distro setup?
[Android] antiochasylum:
ubuntu 11.10 32bit
[Android] Reptilez_DK:
You need 64-bit.

These typos came from my i9023
[Android] :
i can agree with the guy above i had the same problem changing from x86>x64 made it work, sorry bud but you will have to ubgrade
[Android] antiochasylum:
Yea I just figured that out. Sir JBQ himself informed me. Backing up now. FML.

Thanks however guys. :highfive:
[Android] NineInchNails:
Ooo a celeb :) you should feel special
[Android] ttibbetts83:
I keep getting error after make -j3 otapackage error "no rule to make target 'otapackage' "
[Android] CallMeVentus:
What are you building ? Give us details or we can't help you .

"Friends forever." - Ventus
[Android] ttibbetts83:
Full engine for galaxy note gt-n7000 I can compile with make -j3 but unable to do fashable file
[Android] cmikeh2:
I can't find any documentation about how to fix these failures to make .so files. (libz, libbcinfo, libstlport, libgccdemangle). I'm also seeing a lot of undevined references to llvm functions. Please help because I'm completely lost.

http://pastebin.com/AWhfnzTw
[Android] lithid-cm:
You can flash those images faster then a zip. Use fastboot.
[Android] NineInchNails:
Try

make bacon -j3
[Android] CallMeVentus:
The Galaxy Note doesn't have a fastboot .

Maybe his BoardConfig.mk isn't properly configured to have an OTA assert

"Friends forever." - Ventus
[Android] thx84:
Well, I spoke too soon, I still have warnings that block the compiling, so that's why I couldn't find the end package... Back to fix the code :(
[Android] Lloir:
hey guys wondering if someone can help out with this

http://pastebin.com/fW3n1AXS

think i might end up having a long night tonight :p
[Android] cmikeh2:
If you figure it out can you post because my problems the same but in different locations.
[Android] x10forevers:
First of all excellent tutorial

Second I wanna ask about device, I want to build JB for SE XPERIA X10 but it don't have github repo of JB to my device specified.

So my question is - can I use ics repo from cm of my device to build repo? If no - than what I need to do to build it for my device???

In short can I use CYANOGEN MODE ICS repo to built JB?

Thanks in advance
[Android] dastin1015:
Yes. That is how you would normally begin. You would need to first change any references to frameworks/base to frameworks/native in any file within your device repo.
[Android] x10forevers:
So first I need to make ota package for JB? or I need to give reference before compiling the JB? ?
[Android] dastin1015:
Example: In my device repo located at 'device/htc/shooter' in my shooter.mk file I have this line changed from:

$(call inherit-product, frameworks/[B]base[/B]/build/phone-hdpi-512-dalvik-heap.mk)

To:

$(call inherit-product, frameworks/[B]native[/B]/build/phone-hdpi-512-dalvik-heap.mk)

That's just one of the lines needed to be changed.
[Android] cmikeh2:
JB won't compile unless you change those references.
[Android] x10forevers:
Got ya

So after defining the device and cloning with repo I need to go to device/x10/es209ra and change it in .mk file right?
[Android] dastin1015:
Exactly.
[Android] x10forevers:
Thanx....

One more question sorry for off topic

Can I use cm9 kernel? Or I need to compile it?

If u have link for compiling kernel for JB than it will be more good.

Thanx in advance
[Android] dastin1015:
You can. Not guarantee it'll boot though.

私のEVO 3Dから送信される。
[Android] Lloir:
i got around just by commenting it out for now...but i really need to fix it
[Android] bob8x:
Sorry guys, I'm going to compile JB for my Incredible S;

But since I have to reinstall ubuntu ( had a little issue with control fan, so I deleted it forced by rage xD) I would know if the repo from

github.com/CyanogenMod/android_device_htc_vivo are fine or I need to use repo from an AOKP rom's like

https://github.com/IceColdSandwich with some changes ( android_device_htc_vivo and proprietary_vendor_kaijura ) that are the "port" from DHD to my IncS.

Thank you.
[Android] LENINred:
i have successfully built the rom.. it is not booting and no boot animation also......

dastin say:

but how to do this?
[Android] dastin1015:
Please use Pastebin for errors. Also you're trying to build a plain build. Otapackage doesn't work because the BoardConfig.mk doesn't have rules for an otapackage

私のEVO 3Dから送信される。
[Android] x10forevers:
sorry, will use paste bin next time...

so first i need to make -j# first

than i need to make -j# otapackage ???
[Android] Jwtiyar:
what does that mean?

http://pastebin.com/PKjVsBXQ

thank u.
[Android] dastin1015:
Exactly as it says. The device/htc/msm8660-common directory does not exist.

https://github.com/CyanogenMod/android_device_htc_msm8660-common
[Android] Jwtiyar:
ok, but u didnt talk about it in instructions i just grabbd android_device_htc_pyramid , how i can get it? clone?
[Android] dastin1015:
Every device is different. Some require dependencies, some don't.

git clone it.

Edit the files like init.{device}.rc, uevent.{device}.rc, etc.
[Android] Jwtiyar:
now give this

http://pastebin.com/gvY8KUDf
[Android] CallMeVentus:
What in the world are you building.....

"Friends forever." - Ventus
[Android] dastin1015:
This line needs to be changed from:

frameworks/base/build/phone-xhdpi-1024-dalvik-heap.mk

To:

frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk

The line is in your device repo make file.
[Android] LENINred:
thanks, but what exactly should I change it?
[Android] x10forevers:
what i need to change ???

build/core/base_rules.mk:171: *** external/bluetooth/bluez/tools: MODULE.TARGET.EXECUTABLES.hciattach already defined by device/semc/es209ra/hciattach. Stop.
[Android] toxicthunder:
To check for updates, enter this in terminal

android

I get the message command not found.

Where am I going wrong?
[Android] x10forevers:
you didn't follow this one :

Android SDK:

Download the SDK here: http://developer.android.com/sdk/index.html

Extract the SDK and place it in your home directory.

I renamed my SDK to android-sdk to make it easier to navigate to.

Go to your home folder, press Ctrl+H to show hidden files, and open up your .bashrc file.

Add these lines at the bottom of the file:	Code:

# Android tools export PATH=${PATH}:~/android-sdk/tools export PATH=${PATH}:~/android-sdk/platform-tools export PATH=${PATH}:~/bin

Find your .profile file and add this at the bottom of the file:	Code:

PATH="$HOME/android-sdk/tools:$HOME/android-sdk/platform-tools:$PATH"

---------- Post added at 04:42 AM ---------- Previous post was at 03:45 AM ----------

here is pastebin : http://pastebin.com/fqjWCFC6

any idea on this?

thanx in advance
[Android] toxicthunder:
I followed that as well.

Two mistakes I was making -

1. I was in the wrong directory.

2. The command ./android worked instead of just android.

I don't know what it means for I am new to this setup - but would surely like to learn the difference.
[Android] CallMeVentus:
Delete the overlay folder in your device config

"Friends forever." - Ventus
[Android] rubervalrfl:
Personal excuse the silly question, but how do I build only the kernel without compiling the whole rom?
[Android] sxjthefirst:
Thanks guys I finally got my beans running. Special thanks to dastin1015 and the others who posted answers here for lurkers like me to read :)

Wrote about it here: _https://plus.google.com/u/0/110389224641133373805/posts/hhygJUG6XYe

If I had a second phone I would be flashing it, but for now my GS2 shall remain unmolested.
[Android] x10forevers:
I followed as you said

but now i got this problem

Here : http://pastebin.com/LJsNqA19 is the paste bin

anybody have any idea what i am doing wrong

it is stuck there at the docsdroiddoc.....

Now it is going in processing without error :o

i just want to know that is there any problem with that warnings in paste bin

thanks in advance....
[Android] rubervalrfl:
I solved this problem by doing a: sync-repo j1