Commit f18571120367077b25100f8e3c9ddb9e36cefb94

Sylvain 2022-02-08T16:18:01

Fixed bug #5310: Android, Undefined reference to AAssetManager_fromJava

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/android-project/app/jni/src/Android.mk b/android-project/app/jni/src/Android.mk
index 1adcb6e..04e006a 100644
--- a/android-project/app/jni/src/Android.mk
+++ b/android-project/app/jni/src/Android.mk
@@ -13,6 +13,6 @@ LOCAL_SRC_FILES := YourSourceHere.c
 
 LOCAL_SHARED_LIBRARIES := SDL2
 
-LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -llog
+LOCAL_LDLIBS := -lGLESv1_CM -lGLESv2 -lOpenSLES -llog -landroid
 
 include $(BUILD_SHARED_LIBRARY)