On Sep 17, 1:55 am, Smruti Pragyan Misra <[email protected]> wrote: > Hi, > I have compiled a C application with ELDK4.1 for ARM.However when I > push it to Android and tried to run it on the shell,it fail.Please help me > with this.
That is not the right toolchain to be using for Android, as while Android has a linux kernel it does not have a usual linux userspace or libraries. If you can statically link the executable and it's in the right format it might work, but Android is primarily intended for pseudo-java programming within it's provided SDK. If you really want to write (or port) C programs, download the android NDK and re purpose its toolchain to build executables dynamically linked against Android's unique runtime libraries. That toolchain is actually intended for building jni libraries, not stand alone executables, but if you search for an unofficial setup called "android-ndk-wrappers" you will be able to set it up for somewhat normal compiler usage. Also your executable will have to be stored somewhere that is not mounted noexec, and have its exec bit set. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

