- Libomp library not found
library "libomp.so" not foundFix: Use -DGGML_OPENMP=OFF when building to avoid OpenMP dependency.
- Missing C++ bindings
cannot locate symbol "_ZTVNSt6__ndk117bad_function_callE"Fix: Ensure NDK is recent (r26b or newer). This error often relates to broken libc++ or stdc++ bindings.
- Missing shared libraries
adb: error: cannot stat ...Fix: Verify that the output binary or .so file exists in the expected path. Use ls build-android/bin/ or ls build-android/lib/ to confirm.
CANNOT LINK EXECUTABLE: ...Fix:
Ensure all required .so dependencies are pushed. Set LD_LIBRARY_PATH=. to point to the local directory. Use chmod +x on the binary after pushing.
- Aarch64 tools not on path
zsh: command not found (for aarch64 tools)Fix: Ensure NDK toolchain is in your path e.g:
export NDK_ROOT=/path/to/android-ndk-r26b export PATH=$NDK_ROOT/toolchains/llvm/prebuilt/darwin-x86_64/bin:$PATHCheck with:
aarch64-linux-android-clang --version