我的架構如下
ABC/
Android.mk
src/main.cpp
lib/armeabi/a.so
inc/a.h
Android.mk的寫法如下
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := a
LOCAL_SRC_FILE := $(LOCAL_PATH)/armeabi/a.so
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
LOCAL_C_INCLUDES := $(LOCAL_PATH)/inc
LOCAL_SHARED_LIBRARY := a
LOCAL_SRC_FILES := src/main.cpp
LOCAL_MODULE := libtest
include $(BUILD_EXECUTE)
這時會發生undefined reference to a.so(or a.h)裡面的interface
但如果我把它build成static library
如include $(BUILD_STATIC_LIBRARY)就可以build過
不知道要build成exe檔該如何做
謝拉