littleK
littleK

Reputation: 20163

Running Unix Binaries in Android NDK

is it (theoretically) possible to run any Unix binary from the Android NDK? I have the following binaries available:

.rpm, Redhat / CentOS 5.8 i386 RPM
.rpm, Redhat / CentOS 5.8 x86_64 RPM
.tar.gz, Solaris Sparc 2.10
.tar.gz, Cygwin
.tar.gz, MinGW

There is also a .tar.gz available that can be installed from Unix Source. The application has command line tools available that I hope to exploit with the NDK. For example:

convert image.jpg image.png

While I am just starting to run through NDK examples and tutorials, I wanted to see if what I am trying to achieve is possible.

I'm not sure if the above information is enough to tell but, please let me know if there is any more information that I can provide.

Upvotes: 0

Views: 321

Answers (1)

aschepler
aschepler

Reputation: 72473

Android is its very own architecture, so the files targeted for architectures like i386, x86_64, Solaris, etc. won't work there. It should be possible to use the NDK to convert a Unix Source bundle into binaries which will work on Android devices. But how easy or difficult that would be depends on what other libraries or possibly OS features the source itself depends on.

Upvotes: 2

Related Questions