diff --git a/samples/android/native-activity/jni/Android.mk b/samples/android/native-activity/jni/Android.mk index 720d38b40d..fd4fd2bfbb 100644 --- a/samples/android/native-activity/jni/Android.mk +++ b/samples/android/native-activity/jni/Android.mk @@ -6,7 +6,7 @@ include ../../sdk/native/jni/OpenCV.mk LOCAL_MODULE := native_activity LOCAL_SRC_FILES := native.cpp -LOCAL_LDLIBS := -lm -llog -landroid +LOCAL_LDLIBS += -lm -llog -landroid LOCAL_STATIC_LIBRARIES := android_native_app_glue include $(BUILD_SHARED_LIBRARY) diff --git a/samples/android/native-activity/jni/Application.mk b/samples/android/native-activity/jni/Application.mk index a89e12df19..e9392cfed2 100644 --- a/samples/android/native-activity/jni/Application.mk +++ b/samples/android/native-activity/jni/Application.mk @@ -1,2 +1,4 @@ APP_ABI := armeabi-v7a +APP_STL := gnustl_static +APP_CPPFLAGS := -frtti -fexceptions APP_PLATFORM := android-9