Skip to content

Commit 123bffa

Browse files
committed
Fixes to be compatible with android-ndk-18.
1 parent 443a9f3 commit 123bffa

3 files changed

Lines changed: 4 additions & 11 deletions

File tree

android/app/build.gradle

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ android {
1313
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1414
externalNativeBuild {
1515
cmake {
16-
arguments "-DANDROID_TOOLCHAIN=clang"
1716
arguments "-DANDROID_STL=c++_static"
1817
cppFlags ""
1918
}
@@ -61,13 +60,7 @@ android {
6160
}
6261
}
6362
packagingOptions{
64-
doNotStrip "*/armeabi/*.so"
65-
doNotStrip "*/armeabi-v7a/*.so"
66-
doNotStrip "*/arm64-v8a/*.so"
67-
doNotStrip "*/x86/*.so"
68-
doNotStrip "*/x86_64/*.so"
69-
doNotStrip "*/mips/*.so"
70-
doNotStrip "*/mips64/*.so"
63+
doNotStrip "*/*/*.so"
7164
}
7265
}
7366
}

android/jni/Application.mk

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,4 @@ APP_ABI := arm64-v8a
2121
APP_PLATFORM := android-8
2222
#APP_PLATFORM := android-3
2323

24-
NDK_TOOLCHAIN_VERSION := 4.9
25-
2624
APP_STL := c++_static

thirdparty/libpng/pnglibconf.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,9 @@
208208
#define PNG_USER_HEIGHT_MAX 1000000
209209
#define PNG_USER_WIDTH_MAX 1000000
210210
#define PNG_ZBUF_SIZE 8192
211-
#define PNG_ZLIB_VERNUM 0x1230
211+
// Replaced autodetected PNG_ZLIB_VERNUM 0x1230 (libpng configured with ndk-16b API14)
212+
// to '0' to suppress errors in ndk-18 with newer zlib.
213+
#define PNG_ZLIB_VERNUM 0
212214
#define PNG_Z_DEFAULT_COMPRESSION (-1)
213215
#define PNG_Z_DEFAULT_NOFILTER_STRATEGY 0
214216
#define PNG_Z_DEFAULT_STRATEGY 1

0 commit comments

Comments
 (0)