Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build apk #19

Open
batkins2 opened this issue Oct 31, 2020 · 1 comment
Open

How to build apk #19

batkins2 opened this issue Oct 31, 2020 · 1 comment
Labels

Comments

@batkins2
Copy link

The pydk-all.sh completes but there is no apk. Is there another step? Also, I'm trying to use the usrinaengine which has a dependency on Pillow which seems to be x86 only. Is there a way to get Pillow working?

@pmp-p
Copy link
Owner

pmp-p commented Nov 1, 2020

PyDK's goal is to be universal so building an apk or webapp is the same and use the same signed apk/zip.

That is maybe not what you want for your own use if you only target android right now.

PyDK early support is here https://github.com/pmp-p/projects and use that template https://github.com/pmp-p/pydk-android-gradle-template/tree/3.8p : PyDK does not use JNI / WebIDL but remote method interface instead with a strong focus on ffi signatures and remote instances boxing via reflexion in the host language. That method will allow later to seamlessly reuse wasm interpreters+modules instead of native libraries and unreliable toolchains. That can also used in webworkers or multihost system.

Python-for-android or Beeware have more specific init code and native bridges to re-use in your android studio project. p4a bridges are already compiled as pip samples, rubicon-android is not available atm on pip afaik.

About Pillow, fixing setup.py of pip modules for cross compilation is outside PyDK scope and Android/WASM are not officially supported platforms by C-Python®.

Best advice is fix their setup.py and offer PR to leave open, you cannot ask for maintenance burden, Though i think Pillow just makes false assumptions/guessing about build environnement and try to do the job of the C toolchain/autotools in locating library and includes files.

@pmp-p pmp-p added the question label Nov 1, 2020
@pmp-p pmp-p pinned this issue Nov 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants