Compiling android binary - Android Q&A, Help & Troubleshooting

Hello, i wanna compiling C code to android binary file, as deamon_virtuos_oc, but i havn't find some infromation for this, in my folder i had Android.mk and virtuos_oc.c and how make virtouos_oc file from it?
Sorry, i'm noob in this...

noonamer said:
Hello, i wanna compiling C code to android binary file, as deamon_virtuos_oc, but i havn't find some infromation for this, in my folder i had Android.mk and virtuos_oc.c and how make virtouos_oc file from it?
Sorry, i'm noob in this...
Click to expand...
Click to collapse
You need to compile against the android toolchain. Ill post more information when I get home.
Sent from my SGH-I777 using xda premium

lithid-cm said:
You need to compile against the android toolchain. Ill post more information when I get home.
Sent from my SGH-I777 using xda premium
Click to expand...
Click to collapse
i try "make virtuous_oc" and i have this error
Code:
virtuous_oc.c -o
virtuous_oc
virtuous_oc.c:25:28: error: cutils/sockets.h: not found

Thread Close: i try using Crystax NDK that's all

Related

Boot.img

Can someone post good guide for editing files in boot.img. I know how to unpackk, repack and compile, but don't know how to edit. In guides that I find they say "edit all you want" or something like that, but don't say HOW.
Sent from my Folio 100 using Tapatalk
?
Just open the files of the unpacked ramdisk (for example init.rc) with the editor you prefer and edit it...
Or replace the kernel file and repack it..
You don't understand me. How to make or edit files inside kernel?
You have to recompile it...
There is no other way i know...
Get the source from here
https://github.com/tsh/folio100
Install a cross-compiler (for example CodeSourcery)
start your folio with a kernel you like and get a working config (/proc/config.gz) and copy int into the kernel directory
gunzip it and then
make CROSS_COMPILE=arm-none-linux-eabi- ARCH=arm -j20
I dont know the name of the cross-compiler files.. Maybe they are a little bit different.
-j20 defines how many parallel compiling threads you like to have...
After that you'll have your compiled kernel @ /arch/arm/boot/zImage
And before compiling you are able to make some changes on the kernel..
But not on an compiled kernel..
Thank's!!!
Sent from my GT-I5700 using Tapatalk
Jon2555 said:
Can someone post good guide for editing files in boot.img. I know how to unpackk, repack and compile, but don't know how to edit. In guides that I find they say "edit all you want" or something like that, but don't say HOW.
Sent from my Folio 100 using Tapatalk
Click to expand...
Click to collapse
Here is my small Howto - unpack, edit, repack boot.img under Ubuntu with all scripts and compiled tools needed
http://forum.xda-developers.com/showthread.php?t=915808

[Error] Compiling cm7 from source?

I want to compiled cm from source
so I started with setting build environment and downloading sources
I also added vendor and device folder then
for building android I used these command
source build/envsetup.sh && brunch cyanogen_p500-eng
but after some seconds I got these error
http://pastebin.com/y27A551E
can anyone help me with solving these error
I really need help
aspee
bumping.
please I really started to feel helpless
aspee said:
bumping.
please I really started to feel helpless
Click to expand...
Click to collapse
Lol... sorry, but i cant help u here...
Ask arjen, lupohirp or adfad..
I asked bytecode he think that syncing is not correct so I deleted framework and sync again but still the same error
Sent from my LG-P500 using Tapatalk

[Q] how to compile only apk from source?

i want to compile only god mod.apk from omfgb source. But i don't know how to compile only apk from source. also i want to compile some other apps from source but i really don't know how. Plz someone help me plz plz
Look at the apps manifest.
Ex.
Settings.apk
make -j$(grep -c ^processor /proc/cpuinfo) Settings
Sent from my Nexus S 4G using xda premium
E.g.
If you wanna compile framework-res.apk
Code:
$ make framework-res
Herpderp Defy.
lithid-cm said:
Look at the apps manifest.
Ex.
Settings.apk
make -j$(grep -c ^processor /proc/cpuinfo) Settings
Sent from my Nexus S 4G using xda premium
Click to expand...
Click to collapse
thanks i have full omfgb source but wheni compile rom god mod never compile in zip so i asked. thnks
hesoyam27 said:
thanks i have full omfgb source but wheni compile rom god mod never compile in zip so i asked. thnks
Click to expand...
Click to collapse
i think now you need to add [solved] tag i'm not sure but i see on other posts

[Q] What after zimage??

Hi XDA members
I was just compiling kernel for My Xperia SOLA using this thread......
And it was successfully build....
i got some .ko modules and a zimage file in the output dir....
My question is how to combine this kernel with the boot.img image or how to create a boot.img from this file.......
I would be very happy if someone could help me out....
I am new to this developing world and want to learn.........
THANKS IN ADVACNE....
P.S : posted it in Android Q&A section but no replies so I thought of posting it here.... Sorry if its the wrong section......
@[email protected] said:
Hi XDA members
I was just compiling kernel for My Xperia SOLA using this thread......
And it was successfully build....
i got some .ko modules and a zimage file in the output dir....
My question is how to combine this kernel with the boot.img image or how to create a boot.img from this file.......
I would be very happy if someone could help me out....
I am new to this developing world and want to learn.........
THANKS IN ADVACNE....
P.S : posted it in Android Q&A section but no replies so I thought of posting it here.... Sorry if its the wrong section......
Click to expand...
Click to collapse
To compile a boot.img file that you can then flash to your device you will need to use the mkbootimg binary that is included as part of the AOSP source code. This will combine the ram disk that was produced, the kernel modules, and the zimage into a boot.img file. To learn more about this I would suggest taking a look at these two guides http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images and http://stackoverflow.com/questions/...how-to-load-kernel-image-in-mkbootimg-command.
Sent from my Nexus 10 using xda premium
shimp208 said:
To compile a boot.img file that you can then flash to your device you will need to use the mkbootimg binary that is included as part of the AOSP source code. This will combine the ram disk that was produced, the kernel modules, and the zimage into a boot.img file. To learn more about this I would suggest taking a look at these two guides http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images and http://stackoverflow.com/questions/...how-to-load-kernel-image-in-mkbootimg-command.
Sent from my Nexus 10 using xda premium
Click to expand...
Click to collapse
thanks buddy for your precious reply........

Android kernel build error

I get this error when I run make command while compiling Android kernel. Please help me.
kurtulus145 said:
I get this error when I run make command while compiling Android kernel. Please help me.
Click to expand...
Click to collapse
Send a text file containing the entire log right from command execution or .sh file execution. Also which phone and processor are u developing on?
KingRaheel said:
Send a text file containing the entire log right from command execution or .sh file execution. Also which phone and processor are u developing on?
Click to expand...
Click to collapse
I upload on attachments.
Device: Asus Memopad 7 ME176CX
Processor: Intel Atom Z3745
kurtulus145 said:
I upload on attachments.
Device: Asus Memopad 7 ME176CX
Processor: Intel Atom Z3745
Click to expand...
Click to collapse
Did u try compiling again using a fresh copy of source? What exact changes did u make? Did u use menuconfig command? Is your source code on github? You should tell all this when u need help else we may not be able to help u out efficiently.
KingRaheel said:
Did u try compiling again using a fresh copy of source? What exact changes did u make? Did u use menuconfig command? Is your source code on github? You should tell all this when u need help else we may not be able to help u out efficiently.
Click to expand...
Click to collapse
No other source file is available. I have not made any changes to the source code. I have edited some things with menuconfig command. No source code in Github. I downloaded it from Asus's site.
kurtulus145 said:
No other source file is available. I have not made any changes to the source code. I have edited some things with menuconfig command. No source code in Github. I downloaded it from Asus's site.
Click to expand...
Click to collapse
What i meant by fresh copy is the downloaded kernel files from asus website which has no alterations done by youto it. Try compiling it without doing any changes using menuconfig or any other command and see if u get the zImage. If u do then use menuconfig and apply one change at a time,compile and see if it causes issues. From your log its clear that some change has caused instability to most of the kernel modules. Kernel building is not easy.
If u want attention of other developers then upload your source code on github and post link here. Can't assure attention but it may help:good:
KingRaheel said:
What i meant by fresh copy is the downloaded kernel files from asus website which has no alterations done by youto it. Try compiling it without doing any changes using menuconfig or any other command and see if u get the zImage. If u do then use menuconfig and apply one change at a time,compile and see if it causes issues. From your log its clear that some change has caused instability to most of the kernel modules. Kernel building is not easy.
If u want attention of other developers then upload your source code on github and post link here. Can't assure attention but it may help:good:
Click to expand...
Click to collapse
I tried the make command without making any changes with the menuconfig command. I got the same error again. I upload source code on GitHub.
I uploaded github.
Link:https://github.com/kurtulus145/k013_kernel
Help!!!

Categories

Resources