1. Download our Official Android App: Forums for Android!

android ndk sample using prebuilt libraries

Discussion in 'Android Apps & Games' started by aashishvijayvi, Jun 1, 2011.

  1. aashishvijayvi

    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    May 31, 2011

    May 31, 2011
    2
    0
    5
    new to android.
    working on android jni(ndk).done some sample projects based on prebuilt library, having same problems
    my androi.mk is

    LOCAL_PATH := $(call my-dir)
    include $(CLEAR_VARS)
    LOCAL_MODULE :=hello-jni
    LOCAL_SRC_FILE:=hello-jni.c
    LOCAL_SHARED_LIBRARY := ndk
    include $(BUILD_SHARED_LIBRARY)

    include $(CLEAR_VARS)
    LOCAL_MODULE := ndk
    NDK_MODULE_PATH := $(LOCAL_PATH)
    LOCAL_SRC_FILES := libndk.so
    include $(PREBUILT_SHARED_LIBRARY)

    hello-jni.c calls functions from libndk.so(ARM lib.)

    this project run successfully several times but when i restarted the eclipse and again run the project from eclipse.
    emulator load the project. but having the problem calling funtions from shared library. it stopped unexpectedly. when i debug in logcat view it show unsatisfied linker error.
    please help me out this problem.
    attached the project also

    my email address is ashish_vijayvirgiya@yahoo.com
    if you want some additional information then you tell me.

    thanks.
     

    Attached Files:


    Advertisement

Share This Page

Loading...