Skip to content

Fix pyjnius linking with Qt bootstrap libmain#3308

Open
lazycat11 wants to merge 1 commit intokivy:developfrom
lazycat11:fix-pyjnius-qt-libmain
Open

Fix pyjnius linking with Qt bootstrap libmain#3308
lazycat11 wants to merge 1 commit intokivy:developfrom
lazycat11:fix-pyjnius-qt-libmain

Conversation

@lazycat11
Copy link
Copy Markdown

When using the Qt bootstrap, ndk-build generates the main library as libmain_.so, for example libmain_arm64-v8a.so. pyjnius links with -lmain, so the linker cannot find the ABI-suffixed library.

This change creates a libmain.so alias before building pyjnius and adds the bootstrap libs/ directory to LDFLAGS.

Tested with Buildozer / python-for-android on arm64-v8a.

@T-Dynamos
Copy link
Copy Markdown
Member

Wouldn't this increase app size? I think it would be better to patch pyjnius to use -lmain_ instead.

@lazycat11
Copy link
Copy Markdown
Author

lazycat11 commented Apr 28, 2026 via email

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