Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rdcoder33 opened this issue Jul 14, 2023 · 2 comments
Closed

Comments

@rdcoder33
Copy link

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
@RossComputerGuy
Copy link
Member

Already reported upstream ggerganov/llama.cpp#2210

@RossComputerGuy
Copy link
Member

Some progress was made via a patch which has been submitted upstream. Unfortunately, the CI has caught a new issue. android/ndk#1928

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants