LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Building Android NDK examples for Linux (https://www.linuxquestions.org/questions/programming-9/building-android-ndk-examples-for-linux-4175586049/)

teapottwo 08-01-2016 06:49 PM

Building Android NDK examples for Linux
 
Hi,

To start with I've been compiling Android NDK examples and pushing them onto an Android device, basically following this tutorial:
https://www.packtpub.com/books/conte...ts-android-ndk

All that works fine, then when going through the examples I saw that the "san-angeles" project has files for a Linux build (amongst others). I eventually found this article:
http://stackoverflow.com/questions/9...run-on-android

I've tried playing with the "hello-jni" example as described but my builds won't run, with following error:
Quote:

bash: ./hello: /system/bin/linker64: bad ELF interpreter: No such file or directory

What am I missing, or do I actually need to run this through GDB?

I'm after building a standalone Linux application!



My "Android.mk" file looks like this:
Code:

include $(CLEAR_VARS)

LOCAL_MODULE := hello
LOCAL_SRC_FILES := main.c

include $(BUILD_EXECUTABLE)



Thanks


All times are GMT -5. The time now is 07:34 AM.