Skip to content

Commit

Permalink
Android native libs for 16 KB page size, fix #1125 (#1162)
Browse files Browse the repository at this point in the history
  • Loading branch information
devemux86 authored Jan 20, 2025
1 parent c50a73c commit e96761b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions jni/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ LOCAL_C_INCLUDES := . libtess2/Include

LOCAL_CFLAGS := $(LOCAL_C_INCLUDES:%=-I%) -O2 -Wall -D__ANDROID__ -Wall -O2 -ffast-math -DNDEBUG
LOCAL_CPPFLAGS := $(LOCAL_C_INCLUDES:%=-I%) -O2 -Wall -D__ANDROID__ -Wall -O2 -ffast-math -DNDEBUG
LOCAL_LDLIBS := -lm -llog
LOCAL_LDLIBS := -lm -llog -Wl,-z,max-page-size=0x4000
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"
LOCAL_ARM_MODE := arm

APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true

LOCAL_SRC_FILES := libtess2/Source/dict.c\
libtess2/Source/tess.c\
libtess2/Source/geom.c\
Expand All @@ -18,5 +20,5 @@ LOCAL_SRC_FILES := libtess2/Source/dict.c\
libtess2/Source/priorityq.c\
gl/utils.c\
org_oscim_utils_TessJNI.cpp

include $(BUILD_SHARED_LIBRARY)
Binary file modified vtm-android/natives/arm64-v8a/lib/arm64-v8a/libvtm-jni.so
Binary file not shown.
Binary file modified vtm-android/natives/armeabi-v7a/lib/armeabi-v7a/libvtm-jni.so
Binary file not shown.
Binary file modified vtm-android/natives/x86/lib/x86/libvtm-jni.so
Binary file not shown.
Binary file modified vtm-android/natives/x86_64/lib/x86_64/libvtm-jni.so
Binary file not shown.

0 comments on commit e96761b

Please sign in to comment.