llamacpp with flutter.
- Android is supported.
- install flutter and dart.
- install android sdk and ndk.
- install cmake.
- pull llamacpp
git submodule update --init
- set ** YOUR ** ndkVersion
- set ** YOUR ** CMAKE_C_FLAGS (my setting is -DCMAKE_C_FLAGS=-march=armv8.4a+dotprod)
- -DANDROID_PLATFORM must be upper than 23
build project with release mode, debug mode runs slowly.
flutter build apk
you can get apk file in build/app/outputs/flutter-apk/app-release.apk or
flutter run --release