thp / pyotherside

Python Bindings for Qt 5 and Qt 6. Allows you to access a CPython 3 interpreter directly from your Qt QML user interface code.
https://thp.io/2011/pyotherside/
Other
364 stars 49 forks source link

Building for Android #112

Open vitoller opened 4 years ago

vitoller commented 4 years ago

Hello, I am trying to compile a pyotherside project for Android.

My steps:

Is the guide correct? Is there another guide / method for building Android Apps?

Thanks

thp commented 4 years ago

You have to use a newer Python 3 for Android build, these days it should be possible to just use normal CPython sources without any patches.

vitoller notifications@github.com schrieb am Sa., 15. Feb. 2020, 08:04:

Hello, I am trying to compile a pyotherside project for Android.

My steps:

Is the guide correct? Is there another guide / method for building Android Apps?

Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/thp/pyotherside/issues/112?email_source=notifications&email_token=AABBASIHGEVHALNGR2T5VZDRC6HWRA5CNFSM4KVV3ZI2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4INYA73A, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABBASKGVXSTHK52KSLMXHDRC6HWRANCNFSM4KVV3ZIQ .

ssspeq commented 4 years ago

I am having difficulties making pyotherside for android work. I also followed the instructions "building for android" using this: https://github.com.cnpmjs.org/yan12125/python3-android

I can not understand why this is happening:

E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: library "libpython3.9.so.1.0" not found E AndroidRuntime: at java.lang.Runtime.load0(Runtime.java:938) E AndroidRuntime: at java.lang.System.load(System.java:1631) E AndroidRuntime: at org.qtproject.qt5.android.QtNative$4.run(QtNative.java:275) E AndroidRuntime: at org.qtproject.qt5.android.QtThread$2.run(QtThread.java:87) E AndroidRuntime: at org.qtproject.qt5.android.QtThread$1.run(QtThread.java:61) E AndroidRuntime: at java.lang.Thread.run(Thread.java:919)

I would very much appreciate any hits or help on how to solve this. I have been trying to figure it out for a while to the best of my abilities.

edips commented 4 years ago

I got the same error as libpython3.9.so.1.0 . I renamed libpython3.9.so to libpython3.9.so.1.0, the result was the same. I tried symlink, it didn't work. I don't know how to manage binary files. Any idea? I think PyOtherSide doesn't clash on Andrpid. I still use gpodder for Android , it works very stable.

vitoller commented 4 years ago

If you figure out how to build an app, I would appreciate it if you could write a recipe on how to build it.

Ideal would be a project similar to python-for-android which builds a pyotherside app