Skip to content

Fix android recipe linking with Qt bootstrap#3312

Merged
kuzeyron merged 2 commits into
kivy:developfrom
lazycat11:fix-android-qt-libmain
May 28, 2026
Merged

Fix android recipe linking with Qt bootstrap#3312
kuzeyron merged 2 commits into
kivy:developfrom
lazycat11:fix-android-qt-libmain

Conversation

@lazycat11

Copy link
Copy Markdown
Contributor

Summary

  • link the android recipe extension against the Qt bootstrap's arch-specific main library name
  • keep the existing main fallback for non-SDL, non-Qt bootstraps
  • include the bootstrap libs directory in ANDROID_LIBS_DIR for Qt bootstrap outputs

Root cause

The Qt bootstrap builds its native entry library as libmain_.so, while the android recipe's setup.py defaulted to linking non-SDL bootstraps with -lmain. This can fail when building the android recipe with the Qt bootstrap because libmain.so is not produced there.

Validation

  • python -m flake8 pythonforandroid/recipes/android/init.py pythonforandroid/recipes/android/src/setup.py
  • python -m py_compile pythonforandroid/recipes/android/init.py pythonforandroid/recipes/android/src/setup.py
  • python -m pytest tests/test_recipe.py -q
  • Fork CI run 25206705650: Flake8, Java Spotless, Build test APP [ubuntu-latest | qt], and all Test updated recipes jobs passed

Note: the fork CI documentation job failed twice due to linkcheck timing out on https://pastebin.ubuntu.com/, which is unrelated to this change.

@kuzeyron kuzeyron merged commit 7c6e6f3 into kivy:develop May 28, 2026
39 checks passed
@lazycat11

lazycat11 commented May 28, 2026 via email

Copy link
Copy Markdown
Contributor Author

@kuzeyron

Copy link
Copy Markdown
Contributor

LGTM! Thank you 🙂

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