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

Python3(crystax ndk) builds broken #511

Closed
KeyWeeUsr opened this issue Jun 10, 2017 · 4 comments
Closed

Python3(crystax ndk) builds broken #511

KeyWeeUsr opened this issue Jun 10, 2017 · 4 comments

Comments

@KeyWeeUsr
Copy link
Contributor

In the recent past I was able to create py3 builds with p4a just fine, but when I tried now with buildozer (clean installation), the building is broken because it can't find prebuilt py3 for armeabi-v7a for some reason. I tried even with the quite recent change in p4a (buildozer downloads p4a master) and used:

  • python3crystax=3.6(resulted in py2 build when I just copied it from the PR)
  • python3crystax==3.6(same error like with 3.5):

sdk 20, crystax 10.3.2 linux x86 version(because 32bit arch)

log:

# Install platform
# Run 'pip install -q --user "appdirs" "colorama>=0.3.3" "sh>=1.10" "jinja2" "six"'
# Cwd None
# Apache ANT found at /home/x/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK is missing, downloading
# Downloading http://dl.google.com/android/android-sdk_r20-linux.tgz
# Unpacking Android SDK
# Run 'tar xzf android-sdk_r20-linux.tgz'
# Cwd /home/x/.buildozer/android/platform
# Rename /home/x/.buildozer/android/platform/android-sdk-linux to /home/x/.buildozer/android/platform/android-sdk-20
# Android SDK installation done.
# Android NDK found at /home/x/.buildozer/android/platform/crystax-ndk-10.3.2
# Run '/home/x/.buildozer/android/platform/android-sdk-20/tools/android list sdk -u -e'
# Cwd /home/x/.buildozer/android/platform
...
[INFO]:    Will compile for the following archs: armeabi-v7a
[INFO]:    Found Android API target in $ANDROIDAPI
[INFO]:    Available Android APIs are (17)
[INFO]:    Requested API target 17 is available, continuing.
[INFO]:    Found NDK dir in $ANDROIDNDK
[INFO]:    Got NDK version from $ANDROIDNDKVER
[INFO]:    Using Google NDK r10.3.2
[INFO]:    Found virtualenv at /home/x/.local/bin/virtualenv
[INFO]:    Found the following toolchain versions: ['4.9', '5', 'clang3.6', 'clang3.7']
[INFO]:    Picking the latest gcc toolchain, here 5
[INFO]:    No existing dists meet the given requirements!
[INFO]:    No dist exists that meets your requirements, so one will be built.
[INFO]:    Bootstrap requires recipes ['sdl2', ('python2', 'python3crystax')]
[INFO]:    Loaded recipe sdl2 (depends on [('python2', 'python3crystax'), 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf'], conflicts ['sdl', 'pygame', 'pygame_bootstrap_components'])
[INFO]:    Loaded recipe pyjnius (depends on ['six', ('sdl2', 'sdl', 'genericndkbuild'), ('python2', 'python3crystax')])
[INFO]:    Loaded recipe python3crystax (depends on ['hostpython3crystax'], conflicts ['python2', 'python3'])
[INFO]:    Loaded recipe kivy (depends on ['pyjnius', ('sdl2', 'pygame'), ('python2', 'python3crystax')])
[INFO]:    Loaded recipe sdl2_image (depends on [])
[INFO]:    Loaded recipe sdl2_mixer (depends on [])
[INFO]:    Loaded recipe sdl2_ttf (depends on [])
[INFO]:    Loaded recipe six (depends on [('python2', 'python3crystax')])
[INFO]:    Loaded recipe hostpython3crystax (depends on [], conflicts ['hostpython2'])
[INFO]:    Found a single valid recipe set (this is good)
[INFO]:    The selected bootstrap is sdl2
[INFO]:    # Creating dist with sdl2 bootstrap
[INFO]:    Dist will have name myappbuildozerpy3 and recipes (python3crystax, kivy, pyjnius)
[INFO]:    -> running cp -r /home/x/clones...(and 257 more)
[INFO]:    -> directory context /home/x/clones/python-for-android/testapps/testapp/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python3crystax
[INFO]:    <- directory context /home/x/clones/python-for-android/testapps/testapp/.buildozer/android/platform/python-for-android-master
[INFO]:    Recipe build order is ['hostpython3crystax', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'python3crystax', 'sdl2', 'six', u'pyjnius', u'kivy']
[INFO]:    # Downloading recipes 
[INFO]:    Downloading hostpython3crystax
[INFO]: Skipping hostpython3crystax download as no URL is set
# recipes ...
[INFO]:    Prebuilding python3crystax for armeabi-v7a
[INFO]:    python3crystax has no prebuilt_armeabi_v7a, skipping
[ERROR]:   The python3crystax recipe can only be built when using the CrystaX NDK. Exiting.
# Command failed: /usr/bin/python -m pythonforandroid.toolchain create --dist_name=myappbuildozerpy3 --bootstrap=sdl2 --requirements=python3crystax,kivy,pyjnius --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/x/clones/python-for-android/testapps/testapp/.buildozer/android/platform/build
# 
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2
x@x-1005HA ~/clones/python-for-android/testapps/testapp $ 

spec (default + changes):

requirements = python3crystax,kivy,pyjnius
android.permissions = VIBRATE
android.api = 17
android.minapi = 13
android.sdk = 20
android.ndk = 10.3.2 (both commented and uncommented)
android.ndk_path = <path to crystax ndk>
@KeyWeeUsr
Copy link
Contributor Author

NDK (x86) wasn't unpacked completely due to a glitch with Nemo/Nautilus on a slower machine (1,6GHz & 1GB RAM) so I ended up with ~3GB folder (of ~8GB), and the important stuff was missing. Non-GUI unpacking fixed it, the app works fine.

@gutioliveira
Copy link

@KeyWeeUsr Could you help me with the python3 build?

@KeyWeeUsr
Copy link
Contributor Author

@gutioliveira unless you're experiencing a bug in the program, for this kind of support are mailing list and IRC channels, you can find them here :)

@tg13
Copy link

tg13 commented Jun 25, 2018

Can you please post your buildozer.spec file? I am having trouble loading the crystax-ndk

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

No branches or pull requests

3 participants