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

The python3crystax recipe can only be built when using the CrystaX NDK. #1225

Closed
kirill-kostenetskyi opened this issue Jan 30, 2018 · 4 comments

Comments

@kirill-kostenetskyi
Copy link

kirill-kostenetskyi commented Jan 30, 2018

Hi there,
I am trying to build some project, here is one of the build commands which provide an error:
sudo /usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=Electrum --bootstrap=sdl2 --requirements=python3crystax,android,openssl,plyer,kivy==master --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/kirill/Projects/SI-Crypto/Electrum/.buildozer/android/platform/build

Here is an error:
The python3crystax recipe can only be built when using the CrystaX NDK.
Here how I export variables:

export ANDROIDSDK="/home/kirill/.buildozer/android/platform/android-sdk-20"
export ANDROIDNDK="/home/kirill/.buildozer/crystax-ndk-10.3.2-darwin-x86_64/crystax-ndk-10.3.2"
export ANDROIDNDKVER=r9с
export NDK="/home/kirill/.buildozer/crystax-ndk-10.3.2-darwin-x86_64/crystax-ndk-10.3.2"
export ANDROIDAPI=14

As you can see in the full output below, p4a still trying to use android-ndk instead of CrystaX NDK. Why that's happening ?
Could anyone help me with any advice ? Thanks
Here is a full output:

kirill@kirill-System-Product-Name:~/Projects/SI-Crypto/Electrum/gui/kivy$ sudo /usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=Electrum --bootstrap=sdl2 --requirements=python3crystax,android,openssl,plyer,kivy==master --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/kirill/Projects/SI-Crypto/Electrum/.buildozer/android/platform/build
[INFO]:    Recipe kivy: version "master" requested
[INFO]:    Will compile for the following archs: armeabi-v7a
[INFO]:    Found possible SDK dirs in buildozer dir: android-sdk-20
[INFO]:    Will attempt to use SDK at /home/kirill/.buildozer/android/platform/android-sdk-20
[WARNING]: This SDK lookup is intended for debug only, if you use python-for-android much you should probably maintain your own SDK download.
[INFO]:    Android API target was not set manually, using the default of 15
[INFO]:    Available Android APIs are (8, 14, 15, 19, 20)
[INFO]:    Requested API target 15 is available, continuing.
[INFO]:    Found possible NDK dirs in buildozer dir: android-ndk-r9c
[INFO]:    Will attempt to use NDK at /home/kirill/.buildozer/android/platform/android-ndk-r9c
[WARNING]: This NDK lookup is intended for debug only, if you use python-for-android much you should probably maintain your own NDK download.
[INFO]:    Got NDK version from $ANDROIDNDKVER
[INFO]:    Got Android NDK version from the NDK dir: it is r9c
[INFO]:    Using Google NDK r9c
[INFO]:    Found virtualenv at /usr/local/bin/virtualenv
[INFO]:    Found the following toolchain versions: ['4.6', '4.8', 'clang3.3']
[INFO]:    Picking the latest gcc toolchain, here 4.8
[WARNING]: Missing executable: autoconf is not installed
[WARNING]: Missing executable: automake is not installed
[WARNING]: Missing executable: libtoolize is not installed
[INFO]:    No existing dists meet the given requirements!
[INFO]:    No dist exists that meets your requirements, so one will be built.
[INFO]:    Found a single valid recipe set: ['hostpython3crystax', 'openssl', 'plyer', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'python3crystax', 'sdl2', 'six', 'android', 'pyjnius', 'kivy']
[INFO]:    The selected bootstrap is sdl2_gradle
[INFO]:    # Creating dist with sdl2_gradle bootstrap
[INFO]:    Dist will have name Electrum and recipes (python3crystax, android, openssl, plyer, kivy)
[INFO]:    Dist will also contain modules (plyer) installed from pip
[INFO]:    -> running cp -r /home/kirill/.local/lib/python3.6/site-p...(and 171 more)
[INFO]:    -> directory context /home/kirill/Projects/SI-Crypto/Electrum/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python3crystax
[INFO]:    <- directory context /home/kirill/Projects/SI-Crypto/Electrum/gui/kivy
[INFO]:    Recipe build order is ['hostpython3crystax', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'python3crystax', 'sdl2', 'six', 'android', 'pyjnius', 'kivy']
[INFO]:    The requirements (plyer) were not found as recipes, they will be installed with pip.
[INFO]:    # Downloading recipes 
[INFO]:    Downloading hostpython3crystax
[INFO]:    Skipping hostpython3crystax download as no URL is set
[INFO]:    Downloading openssl
[INFO]:    -> running mkdir -p /home/kirill/Projects/SI-Crypto/Elect...(and 54 more)
[INFO]:    -> directory context /home/kirill/Projects/SI-Crypto/Electrum/.buildozer/android/platform/build/packages/openssl
[INFO]:    -> running basename https://www.openssl.org/source/openssl-1.0.2h.tar.gz
[INFO]:    openssl download already cached, skipping                                           
[INFO]:    <- directory context /home/kirill/Projects/SI-Crypto/Electrum/gui/kivy
[INFO]:    Downloading sdl2_image
[INFO]:    -> running mkdir -p /home/kirill/Projects/SI-Crypto/Elect...(and 57 more)
[INFO]:    -> directory context /home/kirill/Projects/SI-Crypto/Electrum/.buildozer/android/platform/build/packages/sdl2_image
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_i...(and 36 more)
[INFO]:    sdl2_image download already cached, skipping                                        
[INFO]:    <- directory context /home/kirill/Projects/SI-Crypto/Electrum/gui/kivy
[INFO]:    Downloading sdl2_mixer
[INFO]:    -> running mkdir -p /home/kirill/Projects/SI-Crypto/Elect...(and 57 more)
[INFO]:    -> directory context /home/kirill/Projects/SI-Crypto/Electrum/.buildozer/android/platform/build/packages/sdl2_mixer
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_m...(and 36 more)
[INFO]:    sdl2_mixer download already cached, skipping                                        
[INFO]:    <- directory context /home/kirill/Projects/SI-Crypto/Electrum/gui/kivy
[INFO]:    Downloading sdl2_ttf
[INFO]:    -> running mkdir -p /home/kirill/Projects/SI-Crypto/Elect...(and 55 more)
[INFO]:    -> directory context /home/kirill/Projects/SI-Crypto/Electrum/.buildozer/android/platform/build/packages/sdl2_ttf
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_tt...(and 32 more)
[INFO]:    sdl2_ttf download already cached, skipping                                          
[INFO]:    <- directory context /home/kirill/Projects/SI-Crypto/Electrum/gui/kivy
[INFO]:    Downloading python3crystax
[INFO]:    -> running mkdir -p /home/kirill/Projects/SI-Crypto/Elect...(and 61 more)
[INFO]:    -> directory context /home/kirill/Projects/SI-Crypto/Electrum/.buildozer/android/platform/build/packages/python3crystax
[INFO]:    -> running basename 
[INFO]:    -> running rm -f .mark-
[INFO]:    -> running touch .mark-
[INFO]:    <- directory context /home/kirill/Projects/SI-Crypto/Electrum/gui/kivy
[INFO]:    Downloading sdl2
[INFO]:    -> running mkdir -p /home/kirill/Projects/SI-Crypto/Elect...(and 51 more)
[INFO]:    -> directory context /home/kirill/Projects/SI-Crypto/Electrum/.buildozer/android/platform/build/packages/sdl2
[INFO]:    -> running basename https://www.libsdl.org/release/SDL2-2.0.4.tar.gz
[INFO]:    sdl2 download already cached, skipping                                              
[INFO]:    <- directory context /home/kirill/Projects/SI-Crypto/Electrum/gui/kivy
[INFO]:    Downloading six
[INFO]:    -> running mkdir -p /home/kirill/Projects/SI-Crypto/Elect...(and 50 more)
[INFO]:    -> directory context /home/kirill/Projects/SI-Crypto/Electrum/.buildozer/android/platform/build/packages/six
[INFO]:    -> running basename https://pypi.python.org/packages/sourc...(and 24 more)
[INFO]:    six download already cached, skipping                                               
[INFO]:    <- directory context /home/kirill/Projects/SI-Crypto/Electrum/gui/kivy
[INFO]:    Downloading android
[INFO]:    Skipping android download as no URL is set
[INFO]:    Downloading pyjnius
[INFO]:    -> running mkdir -p /home/kirill/Projects/SI-Crypto/Elect...(and 54 more)
[INFO]:    -> directory context /home/kirill/Projects/SI-Crypto/Electrum/.buildozer/android/platform/build/packages/pyjnius
[INFO]:    -> running basename https://github.com/kivy/pyjnius/archive/master.zip
[INFO]:    pyjnius download already cached, skipping                                           
[INFO]:    <- directory context /home/kirill/Projects/SI-Crypto/Electrum/gui/kivy
[INFO]:    Downloading kivy
[INFO]:    -> running mkdir -p /home/kirill/Projects/SI-Crypto/Elect...(and 51 more)
[INFO]:    -> directory context /home/kirill/Projects/SI-Crypto/Electrum/.buildozer/android/platform/build/packages/kivy
[INFO]:    -> running basename https://github.com/kivy/kivy/archive/master.zip
[INFO]:    kivy download already cached, skipping                                              
[INFO]:    <- directory context /home/kirill/Projects/SI-Crypto/Electrum/gui/kivy
[INFO]:    # Building all recipes for arch armeabi-v7a
[INFO]:    # Unpacking recipes
[INFO]:    Unpacking hostpython3crystax for armeabi-v7a
[INFO]:    Skipping hostpython3crystax unpack as no URL is set
[INFO]:    Unpacking openssl for armeabi-v7a
[INFO]:    -> running basename https://www.openssl.org/source/openssl-1.0.2h.tar.gz
[INFO]:    -> directory context /home/kirill/Projects/SI-Crypto/Electrum/.buildozer/android/platform/build/build/other_builds/openssl/armeabi-v7a
[INFO]:    openssl is already unpacked, skipping
[INFO]:    <- directory context /home/kirill/Projects/SI-Crypto/Electrum/gui/kivy
[INFO]:    Unpacking sdl2_image for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_i...(and 36 more)
[INFO]:    -> directory context /home/kirill/Projects/SI-Crypto/Electrum/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python3crystax/jni
[INFO]:    sdl2_image is already unpacked, skipping
[INFO]:    <- directory context /home/kirill/Projects/SI-Crypto/Electrum/gui/kivy
[INFO]:    Unpacking sdl2_mixer for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_m...(and 36 more)
[INFO]:    -> directory context /home/kirill/Projects/SI-Crypto/Electrum/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python3crystax/jni
[INFO]:    sdl2_mixer is already unpacked, skipping
[INFO]:    <- directory context /home/kirill/Projects/SI-Crypto/Electrum/gui/kivy
[INFO]:    Unpacking sdl2_ttf for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_tt...(and 32 more)
[INFO]:    -> directory context /home/kirill/Projects/SI-Crypto/Electrum/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python3crystax/jni
[INFO]:    sdl2_ttf is already unpacked, skipping
[INFO]:    <- directory context /home/kirill/Projects/SI-Crypto/Electrum/gui/kivy
[INFO]:    Unpacking python3crystax for armeabi-v7a
[INFO]:    -> running basename 
[INFO]:    -> directory context /home/kirill/Projects/SI-Crypto/Electrum/.buildozer/android/platform/build/build/other_builds/python3crystax-version3.5/armeabi-v7a
[INFO]:    python3crystax is already unpacked, skipping
[INFO]:    <- directory context /home/kirill/Projects/SI-Crypto/Electrum/gui/kivy
[INFO]:    Unpacking sdl2 for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/release/SDL2-2.0.4.tar.gz
[INFO]:    -> directory context /home/kirill/Projects/SI-Crypto/Electrum/.buildozer/android/platform/build/build/bootstrap_builds/sdl2_gradle-python3crystax/jni
[INFO]:    sdl2 is already unpacked, skipping
[INFO]:    <- directory context /home/kirill/Projects/SI-Crypto/Electrum/gui/kivy
[INFO]:    Unpacking six for armeabi-v7a
[INFO]:    -> running basename https://pypi.python.org/packages/sourc...(and 24 more)
[INFO]:    -> directory context /home/kirill/Projects/SI-Crypto/Electrum/.buildozer/android/platform/build/build/other_builds/six-python3crystax/armeabi-v7a
[INFO]:    six is already unpacked, skipping
[INFO]:    <- directory context /home/kirill/Projects/SI-Crypto/Electrum/gui/kivy
[INFO]:    -> running rm -rf /home/kirill/Projects/SI-Crypto/Electru...(and 102 more)
[INFO]:    -> running cp -a /home/kirill/.local/lib/python3.6/site-p...(and 186 more)
[INFO]:    Unpacking pyjnius for armeabi-v7a
[INFO]:    -> running basename https://github.com/kivy/pyjnius/archive/master.zip
[INFO]:    -> directory context /home/kirill/Projects/SI-Crypto/Electrum/.buildozer/android/platform/build/build/other_builds/pyjnius-python3crystax-sdl2/armeabi-v7a
[INFO]:    pyjnius is already unpacked, skipping
[INFO]:    <- directory context /home/kirill/Projects/SI-Crypto/Electrum/gui/kivy
[INFO]:    Unpacking kivy for armeabi-v7a
[INFO]:    -> running basename https://github.com/kivy/kivy/archive/master.zip
[INFO]:    -> directory context /home/kirill/Projects/SI-Crypto/Electrum/.buildozer/android/platform/build/build/other_builds/kivy-python3crystax-sdl2/armeabi-v7a
[INFO]:    kivy is already unpacked, skipping
[INFO]:    <- directory context /home/kirill/Projects/SI-Crypto/Electrum/gui/kivy
[INFO]:    # Prebuilding recipes
[INFO]:    Prebuilding hostpython3crystax for armeabi-v7a
[INFO]:    hostpython3crystax has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding openssl for armeabi-v7a
[INFO]:    openssl has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding sdl2_image for armeabi-v7a
[INFO]:    sdl2_image has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for sdl2_image[armeabi-v7a]
[INFO]:    sdl2_image already patched, skipping
[INFO]:    Prebuilding sdl2_mixer for armeabi-v7a
[INFO]:    sdl2_mixer has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for sdl2_mixer[armeabi-v7a]
[INFO]:    sdl2_mixer already patched, skipping
[INFO]:    Prebuilding sdl2_ttf for armeabi-v7a
[INFO]:    sdl2_ttf has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding python3crystax for armeabi-v7a
[INFO]:    python3crystax has no prebuild_armeabi_v7a, skipping
[ERROR]:   The python3crystax recipe can only be built when using the CrystaX NDK. Exiting.

@KaboomFox
Copy link

I am having this problem as well. Please advise!

@kirill-kostenetskyi
Copy link
Author

I've tried from the beginning on another PC and faced the same error...

@inclement
Copy link
Member

Does it work if you pass the NDK directory using the --ndk-dir=/path/to/ndk command line argument instead?

@kirill-kostenetskyi
Copy link
Author

@inclement thanks, yes, it works, but then I faced with this
[WARNING]: Couldn't find executable for CC. This indicates a problem locating the {} executable in the Android NDK, not that you don't have a normal compiler installed. Exiting.

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