Skip to content

Build Error in "tflite-runtime" Recipe #3191

Open

Description

@nagoconso

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions