From b2efce826786be4910c7208d4b63afa3b33953bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 1 Dec 2024 16:08:16 +0100 Subject: [PATCH] Support 16 KB page sizes on Android 15 (fixes #71) --- tesseract4android/build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tesseract4android/build.gradle b/tesseract4android/build.gradle index 6707f52..5e940da 100644 --- a/tesseract4android/build.gradle +++ b/tesseract4android/build.gradle @@ -18,6 +18,10 @@ android { // Specifies which native libraries or executables to build and package. // TODO: Include eyes-two in some build flavor of the library? //targets "jpeg", "pngx", "leptonica", "tesseract" + + // Support 16 KB page sizes with NDK r27 + // This can be removed with NDK r28, which supports it by default. + arguments "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON" } } ndk { @@ -44,7 +48,7 @@ android { // This is for projects that has direct dependency on this library, // but doesn't really want its debug version, which is very slow. // Note that this only affects native code. - arguments "-DCMAKE_BUILD_TYPE=Release" + arguments += "-DCMAKE_BUILD_TYPE=Release" } } }