On May 3, 2011 12:21 PM, "Mark" <[email protected]> wrote: > > Hi, > Can anyone tell me how to compile+build a program, written in C on > Android? There's no Java code and I don't want a shared lib to use > with JNI. The NDK does not seem to help here. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en
The only way I'm aware of is to download the android source tree, create your project somewhere (like $top/external/myproject). As long as there's an Android.mk in there the build system will compile it. This probably isn't what you wanted though as the device would most likely have to be rooted to install the executable. I'm not really sure what methods developers use to build 100% C/C++ apps for android. I've seen that some games are this way but haven't found any good docs about this. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

