Open
Description
📝 Subject: Issue Compiling Matplotlib for Android (Buildozer)
Hey everyone, I'm trying to package my Kivy/KivyMD app for Android using Buildozer,
but it's failing when trying to compile Matplotlib from source.
📌 Issue
Buildozer gets stuck at:
[INFO]: Building matplotlib for arm64-v8a
[INFO]: matplotlib apparently isn't already in site-packages
[INFO]: Building compiled components in matplotlib
[INFO]: -> directory context /mnt/c/Users/darto/Documents/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/matplotlib/arm64-v8a__ndk_target_21/matplotlib
[DEBUG]: -> running python3 setup.py build_ext -v
🛠 What I’ve Tried
1️⃣ Added matplotlib
to requirements
in buildozer.spec
.
2️⃣ Checked dependencies (e.g., numpy
, cycler
).
3️⃣ Looked for a precompiled Matplotlib .whl
but couldn’t find one.
❓ Questions
1️⃣ Is there a prebuilt Matplotlib wheel for Android that I can use instead of compiling?
2️⃣ If Matplotlib needs to be compiled, what dependencies do I need to include?
3️⃣ Any known workarounds to avoid this issue?
🙏 Any help would be greatly appreciated! Thanks in advance! 😊