google / gemma.cpp

lightweight, standalone C++ inference engine for Google's Gemma models.
Apache License 2.0
5.91k stars 500 forks source link

macbook android studio compile error #365

Open isold23 opened 1 week ago

isold23 commented 1 week ago

C/C++: CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.

jan-wassenberg commented 1 week ago

Hi, please search for the error message. For example, https://stackoverflow.com/questions/38658014/ninja-not-found-by-cmake might help.

isold23 commented 1 week ago
image
jan-wassenberg commented 1 week ago

Unfortunately the way our code is structured, the per-layer weights are stored in std::array. This will not work on 32-bit x86 or armv7 targets, but we are seeing it work with recent compilers on aarch64. Are you able to update the NDK/Android Studio?

isold23 commented 4 days ago

Unfortunately the way our code is structured, the per-layer weights are stored in std::array. This will not work on 32-bit x86 or armv7 targets, but we are seeing it work with recent compilers on aarch64. Are you able to update the NDK/Android Studio?

Thanks!

image