Skip to content

bindings/c: Fix Android build#2163

Merged
penberg merged 1 commit intomainfrom
fix-android-build
Sep 23, 2025
Merged

bindings/c: Fix Android build#2163
penberg merged 1 commit intomainfrom
fix-android-build

Conversation

@penberg
Copy link
Copy Markdown
Collaborator

@penberg penberg commented Sep 23, 2025

Fixes the following build failure:

  -- Configuring incomplete, errors occurred!

  --- stderr
  [libsql-ffi/build.rs:462:9] format!("{BUNDLED_DIR}/SQLite3MultipleCiphers") = "bundled/SQLite3MultipleCiphers"
  CMake Error at /opt/homebrew/share/cmake/Modules/Platform/Android-Determine.cmake:217 (message):
    Android: Neither the NDK or a standalone toolchain was found.
  Call Stack (most recent call first):
    /opt/homebrew/share/cmake/Modules/CMakeDetermineSystem.cmake:191 (include)
    CMakeLists.txt:2 (project)

  CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.

  thread 'main' panicked at /Users/penberg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cmake-0.1.54/src/lib.rs:1119:5:

  command did not execute successfully, got: exit status: 1

  build script failed, must exit now
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Fixes the following build failure:

```
  -- Configuring incomplete, errors occurred!

  --- stderr
  [libsql-ffi/build.rs:462:9] format!("{BUNDLED_DIR}/SQLite3MultipleCiphers") = "bundled/SQLite3MultipleCiphers"
  CMake Error at /opt/homebrew/share/cmake/Modules/Platform/Android-Determine.cmake:217 (message):
    Android: Neither the NDK or a standalone toolchain was found.
  Call Stack (most recent call first):
    /opt/homebrew/share/cmake/Modules/CMakeDetermineSystem.cmake:191 (include)
    CMakeLists.txt:2 (project)

  CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.

  thread 'main' panicked at /Users/penberg/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cmake-0.1.54/src/lib.rs:1119:5:

  command did not execute successfully, got: exit status: 1

  build script failed, must exit now
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```
@penberg penberg added this pull request to the merge queue Sep 23, 2025
Merged via the queue into main with commit 5843ee5 Sep 23, 2025
19 checks passed
@penberg penberg deleted the fix-android-build branch September 23, 2025 08:11
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

Successfully merging this pull request may close these issues.

1 participant