Try specifying the architecture/cpu. It sounds like the compiler is creating code with a higher architecture version than the emulator can handle.
This might work:
arm-linux-gnueabi-gcc -static -march=armv5 hi.c -o hi
More Related Contents:
- Want to compile native Android binary I can run in terminal on the phone
- How to build an executable for Android shell
- define LOCAL_SRC_FILES in ndk{} DSL
- ffmpeg for a android (using tutorial: “ffmpeg and Android.mk”)
- Eclipse compiles successfully but still gives semantic errors
- Android NDK: getting the backtrace
- How does native android code written for ARM run on x86?
- How to link a prebuilt shared Library to an Android NDK project?
- Why use armeabi-v7a code over armeabi code?
- How to compile C into an executable binary file and run it in Android from Android Shell?
- Any simple way to log in Android NDK code?
- Android ndk std::to_string support
- What is the Log API to call from an Android JNI program?
- Android Fatal signal 11 (SIGSEGV) at 0x636f7d89 (code=1). How can it be tracked down?
- NDK Resolution Outcome: Project settings: Gradle model version=5.4.1, NDK version is UNKNOWN error
- Can’t run a Java Android program with Valgrind
- libjpeg-turbo for android
- replacing glReadPixels with EGL_KHR_image_base for faster pixel copy
- Debug native code in Android Library
- CLI on DalvikVM fails on JNI lib
- Can not set debuggable flag in AndroidManifest.xml
- How can I add .so files to an android library project using gradle 0.7+
- Using Android Studio with Vuforia [closed]
- Gstreamer examples in Android Studio
- Why do some Android phones cause our app to throw an java.lang.UnsatisfiedLinkError?
- Is Android POSIX-compatible?
- Eclipse Juno ADT plugin NDK path removed?
- Android emulator system images and AMD processor
- Javah Error android.app.Activity not found
- Error adding prebuilt apk with shared libraries to AOSP