SO : Arch Linux
java -version
openjdk version "17.0.12" 2024-07-16
OpenJDK Runtime Environment (build 17.0.12+7)
OpenJDK 64-Bit Server VM (build 17.0.12+7, mixed mode, sharing)
How can I build for Android with these new changes?
git clone https://github.com/koreader/koreader.git
cd koreader && ./kodev fetch-thirdparty
Tried running the Android debug apk build command:
./kodev run android-arm64
Causes the error:
make ANDROID_ARCH=arm64 TARGET=android KODEBUG=1 VERBOSE= run
bash: line 1: aarch64-linux-android21-clang: command not found
bash: line 1: aarch64-linux-android21-clang: command not found
base/Makefile.defs:441: *** failed to retrieve target machine. Stop.
Tried instead the following command with success:
./kodev build android-arm64
▸100% | Installing 'koreader'
[*] Install update once marker
[*] Install C++ runtime...
[*] Install plugins
[*] Install resources
[*] Install data files
[*] Clean up, remove unused files for releases
make:
unlink: base/thirdparty/kpvcrlib/crengine/cr3gui/data/tessdata: Is a directory
make:
unlink: base/thirdparty/kpvcrlib/crengine/cr3gui/data/dict: Is a directory
Tried again
./kodev run android-arm64
It goes pretty well until near the end, but only the NDK is downloaded and it asks to accept the licenses. However, no SDK tools are downloaded to accept these licenses—only the NDK. How can I accept the licenses?
Files read from disk: 953
Archive size: 19898993 bytes (19 MiB)
Everything is Ok
Starting a Gradle Daemon (subsequent builds will be faster)
Configuration on demand is an incubating feature.
Calculating task graph as no cached configuration is available for tasks: app:assemblearm64RocksDebug
> Configure project :app
WARNING: The option setting 'android.defaults.buildfeatures.buildconfig=true' is deprecated.
The current default is 'false'.
It will be removed in version 9.0 of the Android Gradle plugin.
You can resolve this warning in Android Studio via `Refactor` > `Migrate BuildConfig to Gradle Build Files`
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> SDK location not found. Define a valid SDK location with an ANDROID_HOME environment variable or by setting the sdk.dir path in your project's local properties file at '/home/hugleo/Desktop/koreader/koreader/platform/android/luajit-launcher/local.properties'.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 36s
Configuration cache entry stored.
make: *** [make/android.mk:87: update] Error 1
/home/hugleo/Desktop/koreader/koreader/base/toolchain
$ ls
android-ndk-r23c Makefile
SO : Arch Linux
java -version
openjdk version "17.0.12" 2024-07-16
OpenJDK Runtime Environment (build 17.0.12+7)
OpenJDK 64-Bit Server VM (build 17.0.12+7, mixed mode, sharing)
How can I build for Android with these new changes?
git clone https://github.com/koreader/koreader.git
cd koreader && ./kodev fetch-thirdparty
Tried running the Android debug apk build command:
./kodev run android-arm64
Causes the error:
make ANDROID_ARCH=arm64 TARGET=android KODEBUG=1 VERBOSE= run
bash: line 1: aarch64-linux-android21-clang: command not found
bash: line 1: aarch64-linux-android21-clang: command not found
base/Makefile.defs:441: *** failed to retrieve target machine. Stop.
Tried instead the following command with success:
./kodev build android-arm64
Tried again
./kodev run android-arm64
It goes pretty well until near the end, but only the NDK is downloaded and it asks to accept the licenses. However, no SDK tools are downloaded to accept these licenses—only the NDK. How can I accept the licenses?
/home/hugleo/Desktop/koreader/koreader/base/toolchain
$ ls
android-ndk-r23c Makefile