Quote:
Originally Posted by EatingPie
Well, actually...
Linux is supposed to be binary compatible on the same platform. That means that if I compile for, say Ubuntu, on my Reader, I should be able to use that executable in Android on my Reader without recompiling. That assumes major version of the core linux, and as you point out, the required shared libraries already in existence.
That said, I have not personally tried this on any platform. Theory rocks, but application is rocky. 
|
Binary compatible, kinda, sorta, not really. Compile something for ubuntu on your PC, and it will not run on your android phone. Different CPU architectures squash the binary compatibility right off the bat. Say that isn't a problem, you still have the dependency issues. Your average app for Linux requires a X server, libc6, then probably the GTK or QT libraries. Android doesn't have any of that. If you're talking about a command line app that is written with no dependencies (which is pretty much just simple stuff like "Hello World"), well, how would you view that since typically you aren't allowed to see a terminal? That squashes the idea of an interactive command line app. Plus Android has some security protocols in place to limit what can be done on a nonrooted device, which would include running apps outside of the Android java framework.