How is a native executable built using Android NDK different from that built for Rasberry Pi using gcc-arm for Raspbian (pi-tools)

I recently built a simple Hello World program using NDK and tried it to run on my Rasberry Pi2 running Rasberry Linux distribution on a Arm processor. But, the OS could not recognize the executable and complained it not to be a valid executable.

I am wondering why this is the case? Why do we have a different build tool chain for Android and Raspberry even though both are Linux and ARM.

Source: gcc

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.