Android NDK code (jni interface)

456 views Asked by At

I am trying to compile a jni code and generate shared library file. But when I am compiling my code using ndk following error is displayed.

[armeabi] Compile thumb  : packtHAL <= jni_wrapper.c
[armeabi] Compile thumb  : packtHAL <= gpio.c
[armeabi] Compile thumb  : packtHAL <= fram.c
[armeabi] Compile thumb  : packtHAL <= bmp183.c
[armeabi] SharedLibrary  : libpacktHAL.so
[armeabi] Install        : libpacktHAL.so => libs/armeabi/libpacktHAL.so
install: cannot stat ‘/home/ankur/Dev/gsoc/demoapps-bbbandroid/app01-gpio/obj/local/armeabi/libpacktHAL.so’: No such file or directory

make: *** [/home/ankur/Dev/gsoc/demoapps-bbbandroid/app01-gpio/libs/armeabi/libpacktHAL.so] Error 1

I am using following Android.mk

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_LDLIBS := -llog
LOCAL_MODULE := packtHAL
LOCAL_SRC_FILES := jni_wrapper.c gpio.c fram.c bmp183.c
include $(BUILD_SHARED_LIBRARY)
0

There are 0 answers