undefined reference to `...'
在Android.mk中添加如下語句:
LOCAL_CFLAGS
+= -DOPENCV_OLDER_VISION
#(if still get errors, disable OPENCV_OLDER_VISION )
LOCAL_MODULE := xx
LOCAL_SRC_FILES := so/$(TARGET_ARCH_ABI)/libxx.so #must be included
include $(BUILD_SHARED_LIBRARY)