google-ai-edge / mediapipe

Cross-platform, customizable ML solutions for live and streaming media.
https://ai.google.dev/edge/mediapipe
Apache License 2.0
27.14k stars 5.12k forks source link

Mediapipe LLM build fails for Android X86_64 #5517

Closed vraghavulu closed 3 months ago

vraghavulu commented 3 months ago

OS Platform and Distribution

Ubuntu 22.04, Android 14

Compiler version

GCC 9

Programming Language and version

C++, Java, Python 3.10

Installed using virtualenv? pip? Conda?(if python)

No response

MediaPipe version

0.10.15

Bazel version

7.1 & 6.5.0

XCode and Tulsi versions (if iOS)

No response

Android SDK and NDK versions (if android)

Build failure with NDK=22, SDK=30

Android AAR (if android)

None

OpenCV version (if running on desktop)

No response

Describe the problem

LLM inference build for Android X86_64 fails with toolchain error

Complete Logs

I started to build MediaPipe FW, sample applications for LLM& non-LLM use-cases for Android x86_64 platforms. The build fails due to not using latest GCC/Clang tool chains. Did few modifications with which build succeeds & run on x86 Android platforms(Android studio emulator, WSA). I am highlighting those changes that were did for the build. 
I want inputs in formalizing these changes and commit these changes to MediaPipe.
google-ml-butler[bot] commented 3 months ago

Are you satisfied with the resolution of your issue? Yes No