View Single Post
Old 08-31-2011, 09:09 AM   #258
Hellmark
Wizard
Hellmark ought to be getting tired of karma fortunes by now.Hellmark ought to be getting tired of karma fortunes by now.Hellmark ought to be getting tired of karma fortunes by now.Hellmark ought to be getting tired of karma fortunes by now.Hellmark ought to be getting tired of karma fortunes by now.Hellmark ought to be getting tired of karma fortunes by now.Hellmark ought to be getting tired of karma fortunes by now.Hellmark ought to be getting tired of karma fortunes by now.Hellmark ought to be getting tired of karma fortunes by now.Hellmark ought to be getting tired of karma fortunes by now.Hellmark ought to be getting tired of karma fortunes by now.
 
Hellmark's Avatar
 
Posts: 2,592
Karma: 4290425
Join Date: Jun 2009
Location: Foristell, Missouri, USA
Device: Nokia N800, PRS-505, Nook STR Glowlight, Kindle 3, Kobo Libra 2
Quote:
Originally Posted by EatingPie View Post
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.
Hellmark is offline   Reply With Quote