Code Monkey home page Code Monkey logo

flutter_llama's People

Contributors

rosscomputerguy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

flutter_llama's Issues

Not working on Android : flutter_llama:configureCMakeDebug[arm64-v8a]

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

How to run in an iOS device?

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 !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.