-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
WIP: Api level 28, NDK 17c - Recipe Updates and Fixes #1381
Conversation
…lier devices) closes #866
…emplate for SDL2 if API >= 13
…ies. Add openssl includes to CFLAGS when compiling cryptography.
You need to install buildozer from master branch since the fix is not yet
released on PYPI. Sorry I'm on mobile phone.
Edit:
```
pip install --user --upgrade https://github.com/kivy/buildozer/archive/master.zip
```
El sáb., 20 oct. 2018 16:28, Petar-Luketina <notifications@github.com>
escribió:
… @inclement <https://github.com/inclement> , hmm. I upgraded buildozer,
and re-downloaded the p4a. That doesn't seem to fix the problem. How do I
make sure that buildozer re-downloads the proper version of p4a?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1381 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABhjf3T5a4oVk2V811VONPXy1qyFWNfks5umzMDgaJpZM4W4UpH>
.
|
@AndreMiras , I appreciate you letting me know that, especially from a mobile phone! I downloaded buildozer master branch from the website using |
Yep not easy from the phone 😛
|
Yes, @AndreMiras , that worked! Thank you so much @rnixx , @inclement , and @AndreMiras !!! |
@rnixx on a Galayx J5 (SM-J500M) with android 6.0.1 |
Look like numpy doesnt run ... |
This happen only on Samsung Galaxy J3 not on an Asus Zen Phone 3 Max |
|
@brvier can you tell me the android versions of this devices? numpy build probably somewhere has a switch to use cpowf if available. i guess it works on recent versions of android and fails on older ones and needs to be patched away |
@Blackth01 can you try again please with updated PR. disabling lfs seems to solve some problems |
@rnixx, I tried to build it with the updated PR and it worked pretty well, the app was installed and now runs without any error, I only had some problems with cryptography, 'cause it was not finding module enum or something like that, but adding enum in the requirements worked fine. Thank you very much! |
Sorry, answer by email havent been added. So still have problem with numpy and latest patch, only on android <= 7.0. |
@brvier Actually the underlying problem of all the "cannot locate symbol" errors is that p4a does not (or did not - there's WIP about it) define the NDK API from min Android API level. It compiles against target Android API level, which causes missing functionality on older devices due to the wrong bionic lib. Once the proper fix is merged into master, the whole problem should be gone, and the additional patches in this PR gets obsolete. |
Just to chime in, wouldn't it be good to somehow manage to keep large file support enabled (on supported API levels of course)? For dealing with large files and such |
@Jonast see above,
|
@AndreMiras @inclement @Blackth01 please I have a pending issue waiting for a reply. I need it fixed urgently! kivy/buildozer#772 |
Everyone here is doing stuff in their free time, you won't get any further with demanding anything. Quite opposite. If this patch works for you, you can clone p4a locally, apply it to the local clone and in |
@bunmalik I second what @KeyWeeUsr said. But it might be another way to speed things up. You can sponsor the project here https://opencollective.com/kivy or open a bug bounty directly for this issue. Sometime money can catalyse things... and sometimes not 😄 |
PR is obsolete. |
This PR contains changes necessary to build with API level 28 and python 2 and relates to #1219
It also contains changes from https://github.com/kivy/python-for-android/compare/set_app_platform_19, which should be generalized according to @tito and @inclement
The new patches contained in python2 recipe prevent the use of
ctermid
andsetpwent
, which are missing in bionic lib and causedSystem.err: dlopen failed: cannot locate symbol
. Nevertheless, controlling this viaHAVE_CTERMID
andHAVE_GETPWENT
inpyconfig.h
would be the cleaner solution. I just have no idea how to control this via autoconf/autoheader in python build.UPDATE Added another patch to disable large file support when compiling python 2. This is needed to prevent
ftello64
error on Android < 7.The following recipes have been added:
UPDATE:
asn1crypto
,attrs
,pyasn1_modules
andservice_identity
have been removed again. Need to be defined inrequirements
ofbuildozer.spec
if usingbuildozer
. Gets installed via pip if missing. tested and working!The following recipes have been updated:
The following recipes have been fixed:
enum34
andipaddress
are optional, since only needed in python2 (untested in python3)The following is missing:
How to test this PR
Following is defined in buildozer.spec:
UPDATE changes in buildozer.spec since opening this PR
android.api
changed from 27 to 28android.minapi
changed from 19 to 21android.sdk
changed from 23 to 24android.ndk
changed from 16b to 17cYou need to download NDK r17c manually, because the automatic download failes and define the NDK location in the spec file like so:
UPDATE NDK download is fixed with kivy/buildozer#747
Modify ~/.buildozer/android/platform/android-sdk-23/tools/ant/build.xml and set
java.source
andjava.target
to 1.7 if necessary.UPDATE Changing
java.source
andjava.target
inbuild.xml
seems not necessary any more in SDK 24Try to build your app. Good luck!