-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Crash on start python on android #71
Comments
Today I repeated the steps from the documentation, including use API 14. I used to miss this point, so they had to fix PIE. But at API 14, the application crashes when calling python. Please tell me, what am I doing wrong. |
Have you figured out how to use PyOtherSide on Android? Adding PIE doesn't work, it tries to link the app against pthread which isn't available under Android. |
I got error |
You can usually just create a symlink or rename the library. |
I renamed the library before and I got the same error :/ |
Hi. Please help me build python for android.
I tried to run this example on your phone: https://github.com/ldanzinger/PyOtherSideForArcGIS/tree/master/01_HelloWorld
but after launch, the app closes with error.
If in
https://github.com/ldanzinger/PyOtherSideForArcGIS/blob/master/01_HelloWorld/main.qml
to delete 29-35 and 45-52 lines, the application starts successfully.
similarly, when you run the example from this repository (pyotherside/examples/qrc). The log error I attached.
log.txt
I assumed that the error in the Python and copied binary file python3m on the phone and it turned out that at startup it outputs:
Error: only position independent executables (PIE) are supported.
I fixed that Python was compiled with PIE support and run on the phone, but ready apk still app crashes.
Since https://github.com/thp/python3-android is not available, I used this repositories: https://github.com/GRRedWings/python3-android (v3.5) or https://github.com/rave-engine/python3-android (v3.4).
My workflow:
-Xlinker -export-dynamic
on
-Xlinker -export-dynamic -fPIE -Wl,-pie
and exit in terminal for close bash.
If you run as is, on android, the program will fail with an error indicating that not enough python3.5m.so. Fix it:
I'm use:
linux debian amd64
android ndk r12b
sdk 25.1.7
Qt5.7.0
and android 5.1.1
The text was updated successfully, but these errors were encountered: