midstallsoftware / flutter_llama Goto Github PK
View Code? Open in Web Editor NEWllama.cpp bindings for Flutter
License: GNU General Public License v3.0
llama.cpp bindings for Flutter
License: GNU General Public License v3.0
I am trying to run the Example Project for an Real Android Device.
Error:
Launching lib/main.dart on RMX3360 in debug mode...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':flutter_llama:configureCMakeDebug[arm64-v8a]'.
> [CXX1405] error when building with cmake using /Users/winkltechnologies/Desktop/ml-tests/flutter_llama/src/CMakeLists.txt: -- Configuring incomplete, errors occurred!
See also "/Users/winkltechnologies/Desktop/ml-tests/flutter_llama/android/.cxx/Debug/5gq12v5o/arm64-v8a/CMakeFiles/CMakeOutput.log".
C++ build system [configure] failed while executing:
/Users/winkltechnologies/Library/Android/sdk/cmake/3.18.1/bin/cmake \
-H/Users/winkltechnologies/Desktop/ml-tests/flutter_llama/src \
-DCMAKE_SYSTEM_NAME=Android \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DCMAKE_SYSTEM_VERSION=16 \
-DANDROID_PLATFORM=android-16 \
-DANDROID_ABI=arm64-v8a \
-DCMAKE_ANDROID_ARCH_ABI=arm64-v8a \
-DANDROID_NDK=/Users/winkltechnologies/Library/Android/sdk/ndk/23.1.7779620 \
-DCMAKE_ANDROID_NDK=/Users/winkltechnologies/Library/Android/sdk/ndk/23.1.7779620 \
-DCMAKE_TOOLCHAIN_FILE=/Users/winkltechnologies/Library/Android/sdk/ndk/23.1.7779620/build/cmake/android.toolchain.cmake \
-DCMAKE_MAKE_PROGRAM=/Users/winkltechnologies/Library/Android/sdk/cmake/3.18.1/bin/ninja \
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/winkltechnologies/Desktop/ml-tests/flutter_llama/example/build/flutter_llama/intermediates/cxx/Debug/5gq12v5o/obj/arm64-v8a \
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/Users/winkltechnologies/Desktop/ml-tests/flutter_llama/example/build/flutter_llama/intermediates/cxx/Debug/5gq12v5o/obj/arm64-v8a \
-DCMAKE_BUILD_TYPE=Debug \
-B/Users/winkltechnologies/Desktop/ml-tests/flutter_llama/android/.cxx/Debug/5gq12v5o/arm64-v8a \
-GNinja
from /Users/winkltechnologies/Desktop/ml-tests/flutter_llama/android
CMake Warning at /Users/winkltechnologies/Library/Android/sdk/ndk/23.1.7779620/build/cmake/android-legacy.toolchain.cmake:416 (message):
An old version of CMake is being used that cannot automatically detect
compiler attributes. Compiler identification is being bypassed. Some
values may be wrong or missing. Update to CMake 3.19 or newer to use
CMake's built-in compiler identification.
Call Stack (most recent call first):
/Users/winkltechnologies/Library/Android/sdk/ndk/23.1.7779620/build/cmake/android.toolchain.cmake:55 (include)
/Users/winkltechnologies/Desktop/ml-tests/flutter_llama/android/.cxx/Debug/5gq12v5o/arm64-v8a/CMakeFiles/3.18.1-g262b901/CMakeSystem.cmake:6 (include)
CMakeLists.txt:3 (project)
CMake Error at CMakeLists.txt:6 (add_subdirectory):
The source directory
/Users/winkltechnologies/Desktop/ml-tests/flutter_llama/src/llama.cpp
does not contain a CMakeLists.txt file.
CMake Error at CMakeLists.txt:7 (add_library):
add_library cannot create ALIAS target "flutter_llama" because target
"llama" does not already exist.
CMake Error at CMakeLists.txt:8 (set_target_properties):
set_target_properties Can not find target to add properties to: llama
* 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 13s
Exception: Gradle task assembleDebug failed with exit code 1
Exited
hi , it is good example to call llama.cpp in a flutter project, and I met a problem when I run it with my iPhone ,it seems like there is not a file called "flutter_llama.framework", could you help to show how to make it? Thanks !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.