python-for-android icon indicating copy to clipboard operation
python-for-android copied to clipboard

Build Error in "tflite-runtime" Recipe

Open nagoconso opened this issue 5 months ago • 0 comments

I'm using Buildozer to build a Python program using "tflite-runtime" and generate an APK file for installation on Android(SmartPhone). I set up the Buildozer environment and directory structure, and ran Buildozer using the "tflite-runtime" directory in the "python-for-android-release-2024.01.21" recipe, but I get the following error. I'm having trouble with this.

■Build Error (excerpt)

undefined symbol: tflite::ops::builtin::BuiltinOpResolver::BuiltinOpResolver()

■Environment ・Base OS: Ubuntu 22.04

■Python Virtual Environment: ・Python version: 3.10.12 ・Buildozer version: 1.5.0

■Directory Structure at Build Time ~/test_build/ ├── main.py ├── buildozer.spec └── recipes/ └── tflite-runtime/ ├── CMakeLists.patch ├── init.py └── build_with_cmake.patch ※ I created a local directory and copied the recipe from into it. I have not modified any files inside the directory. In , I’ve set .

■Build Steps

  1. Activated the Python virtual environment .
  2. Navigated to the directory.
  3. Ran the following command: "buildozer -v android debug 2>&1 | tee buildozer_build_$(date +%Y%m%d_%H%M%S).log"

I would greatly appreciate any guidance on how to resolve this error and successfully generate the APK file. Thank you in advance for your support!

Supplement: As a supplement, I am attaching the "buildozer.spec" I am currently using and the build log file.

buildozer_build_20250820_103330.log Buildozer_specFail.txt

nagoconso avatar Aug 20 '25 10:08 nagoconso