Skip to content

Claude/fix android build 011 c upaj tz kfdo em bsz ercg z#2

Merged
HarryBMa merged 2 commits intomainfrom
claude/fix-android-build-011CUpajTZKfdoEmBSZErcgZ
Jan 7, 2026
Merged

Claude/fix android build 011 c upaj tz kfdo em bsz ercg z#2
HarryBMa merged 2 commits intomainfrom
claude/fix-android-build-011CUpajTZKfdoEmBSZErcgZ

Conversation

@HarryBMa
Copy link
Copy Markdown
Owner

@HarryBMa HarryBMa commented Nov 5, 2025

No description provided.

This commit fixes several critical issues preventing the Android build from working:

1. Add missing whisper.cpp submodule at android/lib/whisper.cpp
   - The CMakeLists.txt expects whisper.cpp at this location
   - Updated .gitmodules to reflect correct path

2. Fix invalid Android Gradle Plugin version
   - Changed from 8.13.0 (non-existent) to 8.1.1 (stable)
   - Updated Kotlin version from 2.2.0 to 2.0.0 for compatibility

3. Fix invalid SDK versions
   - Reduced compileSdk from 36 to 34 (SDK 36 doesn't exist)
   - Reduced targetSdk from 36 to 34
   - Updated buildToolsVersion from 36.0.0 to 34.0.0

4. Make gradlew executable
   - Fixed permissions on android/gradlew script

The build should now work once dependencies can be downloaded from Maven repositories.
Fixed CMake errors by updating source file paths to match the current
whisper.cpp repository structure. The ggml library was recently refactored
and many files were renamed/moved.

Changes:
- Added missing ggml.cpp and ggml-opt.cpp
- Updated ggml-cpu file paths:
  * ggml-cpu-hbm.cpp → hbm.cpp
  * ggml-cpu-quants.c → quants.c
  * ggml-cpu-traits.cpp → traits.cpp
  * Removed non-existent ggml-cpu-aarch64.cpp
- Added new required files:
  * repack.cpp, vec.cpp, ops.cpp
- Added ARM architecture-specific files from arch/arm/ subdirectory
- Added include directory for ARM architecture files

This resolves CMake errors: "Cannot find source file" and "No SOURCES given"
@HarryBMa HarryBMa merged commit 1fdb10d into main Jan 7, 2026
0 of 3 checks passed
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.

2 participants