yashsingh1/xdaforums huggingface dataset:
[Galaxy S Plus I9001 Android Development] Stefano187:
Excuse me Kris,

which branch do I need to choose? jb-4.2 or jb-4.2_3D?

And, by the way, I have the vendor folder, I've extracted the files using the .sh command from ADCT git
[Galaxy S Plus I9001 Android Development] davidteri91:
use this it's the same

https://github.com/Davidteri/android_vendor_samsung_ariesve

download as zip

extract the zip and rename like ariesve

copy ariesve folder into YOUR WORKING CM10.1 DIR/vendor/samsung
[Galaxy S Plus I9001 Android Development] Stefano187:
Ok guys,

another wonderfull episode of an exciting series: "Noob vs Compiling" -.-'

Thanks to [MENTION=4764217]davidteri91[/MENTION] and [MENTION=5004004]krislibaeer[/MENTION], the error that I exposed some days ago now is gone...

(I don't understand why with the extract-file.sh command it didn't work but it's ok...)

Now I have this problem:

target thumb C++: camera.msm7x30 <= device/samsung/ariesve/camerahal/cameraHAL.cpp
device/samsung/ariesve/camerahal/cameraHAL.cpp:39:31: fatal error: ui/legacy/Overlay.h: No such file or directory
compilation terminated.
make: *** [/home/stefano/WORKING_DIRECTORY/out/target/product/ariesve/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/cameraHAL.o] Errore 1
make: *** Attesa dei processi non terminati....

If my memories are not too bad, I had a similar problem with CM10 and i solved thanks to hanjo and Xistance doing this:

Now this is what I've done: I've created a file calle overlay.h like the one linked me by Xistance and I put it inside WORKING_DIRECTORY/frameworks/native/include/ui/ because in that folder there isn't a legacy folder but the error is always there...

So... My question is: where am I wrong? Maybe the file need to be called Overlay.h and not overlay.h? Is the folder correct? And... Is the file that I've created right? I mean... I've compiled CM10 on january, is that file changed?

If you guys want to kill me for my questions I know that you have all the reasons....

Thank you for your patience

Regards

Stefano
[Galaxy S Plus I9001 Android Development] krislibaeer:
ok you have to put the file in WORKING_DIRECTORY/frameworks/native/include/ui/

legacy

or just cherry pick this commit

https://github.com/krislibaeer/android_frameworks_native/commit/241f648dea3ad3e183bb4d1c177a784b93fed9e7

or just use the frameworks_av and frameworks_native from Team-Kang-Droid both with the branch cm-10.1 https://github.com/Team-Kang-Droid/
[Galaxy S Plus I9001 Android Development] davidteri91:
Go to my github and download cm script for sync the repo before start compile ;)
[Galaxy S Plus I9001 Android Development] Stefano187:
Thank you guys, you are very patient... For now I've restarted the compiling copying the file in framework/native/include/ui/legacy.... Obviously I've created the legacy folder at first...

If I'll encounter other problems (and I really hope not) before disturbing again I'll use the [MENTION=4764217]davidteri91[/MENTION]'s script... Thank you for your patience.

Regards

Stefano
[Galaxy S Plus I9001 Android Development] davidteri91:
That its not the problem you need make another changes for GB compatibility anyway if you use my script every time before start compile that is OK ;)

Regards
[Galaxy S Plus I9001 Android Development] Xistance:
Thanks for helping out you guys while I was gone for a pretty long time. I see that some people have problems with CM10.1. I can update this guide if you guys want.
[Galaxy S Plus I9001 Android Development] Stefano187:
Hi Xistance,

even if I suppose that I'm the only one with problems an update would be great... Only if you have the time to update it and if you and the other devs here think that it shuold be usefull obviously...

Thanks for your answer and it's good to see you back again and congrats for your HTC One ;)
[Galaxy S Plus I9001 Android Development] Stefano187:
I'm ashamed of myself... I suppose that this is the consequence of not using your script... after almost 4 hours of compiling this came out

target SharedLib: camera.msm7x30 (/home/stefano/WORKING_DIRECTORY/out/target/product/ariesve/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/LINKED/camera.msm7x30.so)
/home/stefano/WORKING_DIRECTORY/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/stefano/WORKING_DIRECTORY/out/target/product/ariesve/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/cameraHAL.o: in function camera_set_preview_window(camera_device*, preview_stream_ops*):device/samsung/ariesve/camerahal/cameraHAL.cpp:564: error: undefined reference to 'android::eek:verlay::eek:verlay(void (*)(void*, int), void (*)(void*, unsigned int, unsigned int, unsigned int, unsigned int), void (*)(void*, void*), void*)'
collect2: ld returned 1 exit status
make: *** [/home/stefano/WORKING_DIRECTORY/out/target/product/ariesve/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/LINKED/camera.msm7x30.so] Errore 1

What is it now.... and one more thing... when an error came out, do I have to restart compiling from the beginning or is there a way to restart from that point?

Sorry guys I really hoped that my previous post was the lates one... :'-(
[Galaxy S Plus I9001 Android Development] Stefano187:
I'm ashamed of myself... I suppose that this is the consequence of not using your script... after almost 4 hours of compiling this came out

target SharedLib: camera.msm7x30 (/home/stefano/WORKING_DIRECTORY/out/target/product/ariesve/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/LINKED/camera.msm7x30.so)
/home/stefano/WORKING_DIRECTORY/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/stefano/WORKING_DIRECTORY/out/target/product/ariesve/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/cameraHAL.o: in function camera_set_preview_window(camera_device*, preview_stream_ops*):device/samsung/ariesve/camerahal/cameraHAL.cpp:564: error: undefined reference to 'android::eek:verlay::eek:verlay(void (*)(void*, int), void (*)(void*, unsigned int, unsigned int, unsigned int, unsigned int), void (*)(void*, void*), void*)'
collect2: ld returned 1 exit status
make: *** [/home/stefano/WORKING_DIRECTORY/out/target/product/ariesve/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/LINKED/camera.msm7x30.so] Errore 1

What is it now.... and one more thing... when an error came out, do I have to restart compiling from the beginning or is there a way to restart from that point?

Sorry guys I really hoped that my previous post was the lates one... :'-(

Edit: Just found out that one or two pages before educk explained how to solve this error.... Argh... the Search button!!!!!!!

Edit2: Finally I got it... Special thanks to [MENTION=4764217]davidteri91[/MENTION] [MENTION=5004004]krislibaeer[/MENTION] [MENTION=4922835]educk[/MENTION] [MENTION=4393569]Xistance[/MENTION].

Next step will be figure out what GCC uses this method to compile ROMS because, as I can see from krislibaeer and davidteri91 it's possible to compile rom also with Linaro and a modified version of GCC 4.9...

Thank you very much guys for your huge patience...

In Italy it's 1:18am so I can only say you... Goodnight :o
[Galaxy S Plus I9001 Android Development] Xistance:
Yeah, that is just an overlay error. You just haven't included the files yet.

I'll update this guide tomorrow.
[Galaxy S Plus I9001 Android Development] Stefano187:
Thanks Xistance,

after long hours I finally got it. If you could update this guide it will be a great thing!!!

And just one or two suggestions (only if possible)...

Maybe you should update this guide also for those who use like me Ubuntu 13.04 and maybe specify with which GCC this method compiles ROMs.

Obviously it's only a suggestion.

Thank you again

Regards

Stefano
[Galaxy S Plus I9001 Android Development] Stefano187:
OK guys,

I know that after my 1000000 questions I'm the last person that should do something like this, but after my experience, I've edited the guide that [MENTION=4393569]Xistance[/MENTION] wrote for CM10 with all the steps that I made to compile CM10.1...

So I hope that [MENTION=4393569]Xistance[/MENTION] could have a look to it and adjust it because I suppose that some steps could be easyer...

Goodnight everybody

HOW-TO-CM10.1

Edit: I've found one error and a couple of .git that need to be added but I think it's something easy to correct... Sorry, I was really tired last night....

Edit2: Modified on pastebin

HOW-TO
[Galaxy S Plus I9001 Android Development] Xistance:
Haha, great job! I'm happy to see you have compiled it. Nice job on the tut :). I updated this one just now. I used your method of getting the changes as it is easier than just cherrypicking the changes which might confuse the user.
[Galaxy S Plus I9001 Android Development] davidteri91:
great job xistance

Regards ;)
[Galaxy S Plus I9001 Android Development] Stefano187:
Ok, another unusefull post...

Can someone explain me why copilation goes fine but when I try to install the rom it stucks on a black screen after the boot logo?

It happens also with recovery: I tried to compile CWM recovery, it goes well but when I install it what I can see is only a black screen...

Now that the compilation errors are gone, what am I doing wrong? Can the problem be virtualbox?

Sorry again guys...

Regards

Stefano

EDIT:

In this tut there is one code part that is wrong (for ubuntu 13.04)

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

it should be in this way

# Android tools
export PATH=$PATH:~/android-sdk/tools
export PATH=$PATH:~/android-sdk/platform-tools
export PATH=$PATH:~/bin
[Galaxy S Plus I9001 Android Development] Xistance:
Looks to be a ramdisk error. Flash another kernel.
[Galaxy S Plus I9001 Android Development] Stefano187:
I've tryed also with another kernel, i've put the boot.img of K^Kernel inside the zip file of my compiled rom but it's the same...
[Galaxy S Plus I9001 Android Development] educk:
I don't know why your ROM doesn't boot.

But, you'll have to use prebuilt 3.0 kernel for recovery not 3.4.

If you use 3.4 for recovery it will result in a black screen...
[Galaxy S Plus I9001 Android Development] alireza7991:
Black screen problem is cause by an uncompatable kernel framebuffor with cwm graphics hals . you have to rewrite graphics.c to fit on 3.4 kernel.

Another thing : Can sb upload Graphics.c from his GCC compiler ? Mine is missed :crying:
[Galaxy S Plus I9001 Android Development] dnkncht:
Another help needed :(

I'm trying to compile SlimBean & got everything, vendor & devices files andjusted for slimroms by krislibaeer & costum native & av frameworks for 4.2. After lunching for ariesve it takes some seconds, then it stops. I used same 12.04 dependencies as for cm. Are others needed?
[Galaxy S Plus I9001 Android Development] krislibaeer:
you did not start the compiling process :D start it with make bacon and -j# with the cores (#) you have

you have to

. build/envsetup.sh

lunch slim_ariesve-userdebug

make bacon

ps: look new version is available 7.8
[Galaxy S Plus I9001 Android Development] dnkncht:
haha hell yes its compiling! :D

thank you :)
[Galaxy S Plus I9001 Android Development] muhammadnajmi96:
I know this about off topic. I can't log in my Ubuntu. I got this error. Can anyone help me? :)
[Galaxy S Plus I9001 Android Development] davidteri91:
I think you make a mistake into bash file are you edit correctly like says the guide
[Galaxy S Plus I9001 Android Development] muhammadnajmi96:
I think so , cause this is a first time I'm using Ubuntu :) , any solution David? :confused:
[Galaxy S Plus I9001 Android Development] davidteri91:
You need edit the files at the end of text not betwen or in head and Sorry I cant help you now I m at school
[Galaxy S Plus I9001 Android Development] muhammadnajmi96:
Okay , i'll waitin' :)
[Galaxy S Plus I9001 Android Development] krislibaeer:
you can use nano or vi to change the files

just type

sudo nano ~/.bashrc

and then can you post it to see what you have done wrong
[Galaxy S Plus I9001 Android Development] educk:
Ok, so I think I know what might be the problem.

You pasted this:

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

in the .profile file after fi. You must put that line between if and fi...

So, open up recovery mode, in Ubuntu you need to press the Shift Key after the BIOS initialization until the GRUB menu pops up.

Than you can enter into the terminal shell. Now, as Kris said, execute:

nano ~/.profile

This will allow you to edit the file from the shell, so you just need to delete that line. Do the same for .bashrc if necessary.

After that do a reboot and it should work. :)
[Galaxy S Plus I9001 Android Development] muhammadnajmi96:
Huh I have enter the GRUB menu , what should I do next? :confused:
[Galaxy S Plus I9001 Android Development] educk:
Select the second one, the one with recovery mode ;)
[Galaxy S Plus I9001 Android Development] muhammadnajmi96:
Okay , I have enter the recovery menu. What I suppose to pick ? :silly:
[Galaxy S Plus I9001 Android Development] educk:
I said Linux Shell... this is goind OFF-Topic so next time send me a PM.

Pick Drop to root shell prompt than follow the instructions from here
[Galaxy S Plus I9001 Android Development] muhammadnajmi96:
Okay , thanks :) , I will try and send you Pm after this
[Galaxy S Plus I9001 Android Development] czobor:
You can build Ubuntu Touch on a 32bit computer, too. Why? Ubuntu is based on cm-10.1, so why can't we build that on 32bit?
[Galaxy S Plus I9001 Android Development] Xistance:
I have no answer to that other than Google told us so. Android builds fine on 32-bit environments with just a few makefiles fixes. Why does it matter anyway?
[Galaxy S Plus I9001 Android Development] buptwugh:
fatal error: QCMediaDefs.h: No such file or directory

I get this error when I compile cm-10.2

git clone https://github.com/camcory/android_frameworks_av.git -b cm-10.1 av

I can not clone android_frameworks_av from camcory's repos, he has deleted this repo.

So I have to get another android_frameworks_av, any advices
[Galaxy S Plus I9001 Android Development] davidteri91:
You can get the cherry-pick from arco's gerrit review for cameras lib patchs and use the frameworks_av from cm repo without need use other repo

Inviato dal mio GT-I9505 usando Tapatalk 4
[Galaxy S Plus I9001 Android Development] Batur97:
Hi :)

İ build cm-10.1 from source without problem.

And i installed the phone (with full wipe) but rom cant boot.

Aftet cyanogenmod logo comes black screen.

(before cyanogenmod bootanimation)

Thanks :)
[Galaxy S Plus I9001 Android Development] buptwugh:
Thank you davidteri91.

I am new to compile cm rom, I don't know how you solution to execute?

Can I just clone arco's android_frameworks_av, Then compile for my cm 10.2 rom ?

I'm sorry about my bad english.
[Galaxy S Plus I9001 Android Development] rboy28:
Hey guys,

while compile CM11.0 I get the fatal error "no such file or directory".

The response refers to android/device/samsung/ariesve/camerahal/cameraHAL.cpp (--> click) lines 38:31 (#include <ui/legacy/Overlay.h>).

Any help?
[Galaxy S Plus I9001 Android Development] davidteri91:
What sources are you using? I think you need a frameworks/native from adc or mine

Inviato dal mio GT-I9001 utilizzando Tapatalk
[Galaxy S Plus I9001 Android Development] Xistance:
Got 4.1.2 working with this tutorial so no need for me to update OP. Hopefully I can see someone other than me that gets it to compile fine :S
[Galaxy S Plus I9001 Android Development] hypnos17:
I'm trying to compile jb. time is not so much, and I'm not still a dev, I'm 15 (tomorrow :D) and I don't want spend my time only for coocks. so, it's as a game, ivendor and arco are working on cm10. we have to wait their work, but can't test on my i9001, so I'll post my results here.

best regards
[Galaxy S Plus I9001 Android Development] Xistance:
Haha, I am 15 on the 31st so no worries there. Being young doesn't necessarily mean you can't help. I am going to try to compile 3.0.x kernel for JB tomorrow. Good luck to you :)
[Galaxy S Plus I9001 Android Development] spdrfx:
missunderstanding
[Galaxy S Plus I9001 Android Development] eBug:
Why is 64-bit arch mandatory?
[Galaxy S Plus I9001 Android Development] Xistance:
I am not sure why but it is a requirement by google. You are free to try 32-bit if you want.
[Galaxy S Plus I9001 Android Development] Xistance:
Added Doomday94's device files to OP for those who want to start from his files. Doomsday94's vendor(proprietary files) are here : https://docs.google.com/file/d/0B-NPErilnJ2VeGRGU2duTjdnMGc/edit

I might not be able to go on that much as I kinda broke my leg. I thought I should warn you guys if I don't answer immediately.
[Galaxy S Plus I9001 Android Development] broodplank1337:
Nice tutorial :)

Btw you have any idea why the old KQB signature is still used?? not that it differs from KQI probably, but still, I wonder why.
[Galaxy S Plus I9001 Android Development] Xistance:
Thanks :3

Sorry but I'm not sure if I understood your question correctly or not. Not sure how this is relevant to this thread but I'm guessing you are asking why KQB is still used instead of the newer KQI? I haven't used GB in a while but both of these versions had their advantages whether it is wifi, performance, launcher issues etc... I do not remember which was better and what the pro's and con's of these two were but I guess it is up to personal preference.

Really sorry if I understood your question wrong.

Edit: Remembered that a make file in device dir was using a KQB signature. Not on my PC so I don't know which one though. If that is what you are talking about then I don't know why.
[Galaxy S Plus I9001 Android Development] broodplank1337:
The file im talking about is build.prop :) and i was just curious since thats the only thing that wasnt updated in the meanwhile. Anyway its not related to you in any way. I just had this wild idea of asking the question at this thread ;)
[Galaxy S Plus I9001 Android Development] tribual:
Which one should be used? Everything works fine so far till this point.

When i use "6. full_ariesve-eng" i get the following:

build/core/base_rules.mk:171: *** device/samsung/ariesve/AriesParts: MODULE.TARGET.APPS.AriesParts already defined by ariesve/AriesParts.

Is this needed?

When i'm right, Ivendor has the files here:

https://github.com/ivendor/android_vendor_samsung_ariesve/tree/jellybean

How can they be used?

Greetz and THX

tribual
[Galaxy S Plus I9001 Android Development] Xistance:
I always recommend using userdebug which is 7.

Do you have a folder named ariesve in your working-directory? If you do delete that folder. The only ariesve folder should be in device.

You can git clone ivendors or use doomsday94's vendor files which I put the link of above or in his thread.
[Galaxy S Plus I9001 Android Development] tribual:
Hi!

Thx at first! Yes, there was an ariesve folder direct in working-directory. Don't know why. :eek:

Yes, want to clone ivendors git for vendor files, but don't know how, I'm just new in this and would to learn.

Can you tell me how i integrate the vendor files from ivendor into the buildprocess?

Greetz and THX

tribual
[Galaxy S Plus I9001 Android Development] Xistance:
Well, if you want to clone ivendors vendor files(make the folder if it doesn't exist) :

cd WORKING_DIRECTORY/vendor/samsung
git clone git://github.com/ivendor/android_vendor_samsung_ariesve.git -b jellybean ariesve

If you want to use Doomsday94's proprietary files :

Download his files then make a folder inside vendor called samsung and another inside samsung called ariesve and just paste his files there.
[Galaxy S Plus I9001 Android Development] tribual:
Hi!

Ok, so long I've understand everything.

Now i become this error:

target thumb C++: camera.msm7x30 <= device/samsung/ariesve/camerahal/cameraHAL.cpp
device/samsung/ariesve/camerahal/cameraHAL.cpp:34:27: fatal error: ui/OverlayHtc.h: No such file or directory
compilation terminated.
make: *** [/home/tribual/WD/out/target/product/ariesve/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/cameraHAL.o] Fehler 1
make: *** Warte auf noch nicht beendete Prozesse...

THX and Greetz
[Galaxy S Plus I9001 Android Development] Xistance:
That is pretty self-explanatory. I would really like it if you tried to fix it yourself after this as there really isn't much point to me doing everything for you. You have to remove camera from your build until it gets fixed or you fix it. Please try to learn how to remove camera from your build but if you still have a hard time you are free to ask again.
[Galaxy S Plus I9001 Android Development] hypnos17:
so...if I have not the device is impossible to compile?
[Galaxy S Plus I9001 Android Development] Xistance:
No i9001? You can still build. Just need to git clone the proprietary files from someone else's github and use those. Testing is a totally different problem.

Edit: You can also download them. How to do that has been answered above.
[Galaxy S Plus I9001 Android Development] Xistance:
Added pic to OP :)
[Galaxy S Plus I9001 Android Development] hypnos17:
I had a java error. so I verified what version I run on my pc...here's the result.

java version "1.6.0_24"

OpenJDK Runtime Environment (IcedTea6 1.11.5) (6b24-1.11.5-0ubuntu1~12.04.1)

OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

is here the problem? how to fix that?
[Galaxy S Plus I9001 Android Development] rboy28:
I forked from ADC-Team and I added the repos (in moment only device, kernel and vendor but I try it with the other repos then (native, qcoms).

I added the paths in the end of the android/default.xml: https://github.com/vkay-94/android/blob/cm-11.0/default.xml (a little bit easier than git clone command I think)

Do you think I'm missing something? I let it run and hopefully it's only because of the native ^^
[Galaxy S Plus I9001 Android Development] haky 86:
For Samsung Ancora

Hello mates

I try to build one for samsung galaxy w by following this guide, but it wont boot, any idea?

thanks :) :)
[Galaxy S Plus I9001 Android Development] davidteri91:
Any logcat????
[Galaxy S Plus I9001 Android Development] haky 86:
I am new in experience porting however where can i take the log? I re sync repo again because i getting only 30percent of checking out!!
[Galaxy S Plus I9001 Android Development] blackmambazzz:
it says you have the jdk

but i think you need the java sdk

if i remember correctly the version with icetea is a browser plugin which i have uninstalled :)
[Galaxy S Plus I9001 Android Development] Xistance:
Java error? If it was about wrong version did you do the fix I wrote in the fixes section?
[Galaxy S Plus I9001 Android Development] hypnos17:
compiled. where can I find flashable zip? I builted with the command brunch ariesve
[Galaxy S Plus I9001 Android Development] Xistance:
You can find it in out/target/product/ariesve
[Galaxy S Plus I9001 Android Development] hypnos17:
i've already search before posting..nothing
[Galaxy S Plus I9001 Android Development] Xistance:
Are there any .img files? If there aren't then it didn't compile properly. If there are, could you write which ones there are or just use the ls command and copy paste the output here?
[Galaxy S Plus I9001 Android Development] alaanto:
Hi bro :), does it work on Ubuntu x32?? I haven't one great pc now :(

Inviato dal mio GT-I9001 con Tapatalk 2
[Galaxy S Plus I9001 Android Development] Xistance:
I am not sure. Google says that it is x64 only. You are free to try and let us know if it works though :/
[Galaxy S Plus I9001 Android Development] hypnos17:
it doesn't work bro :( u must have x64
[Galaxy S Plus I9001 Android Development] hypnos17:
hey xistance maybe I found where the error is: can't find 'src'..I think that it is related to phone connect..can u pm me them?