Skip to content

Unable to compile. #1710

Closed
Closed
@Watashis

Description

@Watashis

Versions

  • Python: 3.7.2 and 2.7.15
  • OS: Antergos 19.2
  • Kivy: 1.10.1
  • Cython: 0.29.5

Description

I can't get it to compile.

buildozer.spec

Command:

p4a apk --private /home/vladislav/coding/python/0 --package=org.example.myapp --name "My application" --version 0.1 --bootstrap=sdl2 --requirements=python2,sdl2

Spec file:

[app]

title = My Application

package.name = myapp

package.domain = org.test

source.dir = .
source.include_exts = py,png,jpg,kv,atlas
version = 0.1
requirements = python2,sdl2
orientation = portrait
osx.python_version = 3
osx.kivy_version = 1.9.1
fullscreen = 0
android.ndk_path = /home/vladislav/Android/android-ndk-r17c

android.sdk_path = /home/vladislav/Android/Sdk
android.arch = armeabi-v7a
ios.kivy_ios_url = https://github.com/kivy/kivy-ios
ios.kivy_ios_branch = master

ios.ios_deploy_url = https://github.com/phonegap/ios-deploy
ios.ios_deploy_branch = 1.7.0


[buildozer]
log_level = 2

warn_on_root = 1

p4a

Logs

[INFO]:    Will compile for the following archs: armeabi-v7a
[INFO]:    Android API target was not set manually, using the default of 27
[INFO]:    Available Android APIs are (21, 27, 28)
[INFO]:    Requested API target 27 is available, continuing.
[INFO]:    Found NDK dir in $ANDROIDNDK: /home/vladislav/Android/android-ndk-r17c
[INFO]:    Found NDK revision 17.2.4988734
[WARNING]: NDK API target was not set manually, using the default of 21 = min(android-api=27, default ndk-api=21)
[INFO]:    Found virtualenv at /usr/bin/virtualenv
[INFO]:    ccache is missing, the build will not be optimized in the future.
[INFO]:    Found the following toolchain versions: ['4.9']
[INFO]:    Picking the latest gcc toolchain, here 4.9
[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: ['hostpython2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'python2', 'sdl2', 'six', 'pyjnius', 'android']
[INFO]:    The selected bootstrap is sdl2
[INFO]:    # Creating dist with sdl2 bootstrap
[INFO]:    Dist will have name unnamed_dist_18 and requirements (python2, sdl2)
[INFO]:    Dist contains the following requirements as recipes: ['hostpython2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'python2', 'sdl2', 'six', 'pyjnius', 'android']
[INFO]:    Dist will also contain modules () installed from pip
[INFO]:    -> directory context /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2
[INFO]:    <- directory context /home/vladislav/coding/python/0
[INFO]:    Recipe build order is ['hostpython2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'python2', 'sdl2', 'six', 'pyjnius', 'android']
[INFO]:    # Downloading recipes 
[INFO]:    Downloading hostpython2
[INFO]:    -> running mkdir -p /home/vladislav/.local/share/python-for-android/packages/hostpython2
[INFO]:    -> directory context /home/vladislav/.local/share/python-for-android/packages/hostpython2
[INFO]:    -> running basename https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz
[INFO]:    hostpython2 download already cached, skipping                                                                                          
[INFO]:    <- directory context /home/vladislav/coding/python/0
[INFO]:    Downloading sdl2_image
[INFO]:    -> running mkdir -p /home/vladislav/.local/share/python-for-android/packages/sdl2_image
[INFO]:    -> directory context /home/vladislav/.local/share/python-for-android/packages/sdl2_image
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.4.tar.gz
[INFO]:    sdl2_image download already cached, skipping                                                                                           
[INFO]:    <- directory context /home/vladislav/coding/python/0
[INFO]:    Downloading sdl2_mixer
[INFO]:    -> running mkdir -p /home/vladislav/.local/share/python-for-android/packages/sdl2_mixer
[INFO]:    -> directory context /home/vladislav/.local/share/python-for-android/packages/sdl2_mixer
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.1.tar.gz
[INFO]:    sdl2_mixer download already cached, skipping                                                                                           
[INFO]:    <- directory context /home/vladislav/coding/python/0
[INFO]:    Downloading sdl2_ttf
[INFO]:    -> running mkdir -p /home/vladislav/.local/share/python-for-android/packages/sdl2_ttf
[INFO]:    -> directory context /home/vladislav/.local/share/python-for-android/packages/sdl2_ttf
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.tar.gz
[INFO]:    sdl2_ttf download already cached, skipping                                                                                             
[INFO]:    <- directory context /home/vladislav/coding/python/0
[INFO]:    Downloading python2
[INFO]:    -> running mkdir -p /home/vladislav/.local/share/python-for-android/packages/python2
[INFO]:    -> directory context /home/vladislav/.local/share/python-for-android/packages/python2
[INFO]:    -> running basename https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz
[INFO]:    python2 download already cached, skipping                                                                                              
[INFO]:    <- directory context /home/vladislav/coding/python/0
[INFO]:    Downloading sdl2
[INFO]:    -> running mkdir -p /home/vladislav/.local/share/python-for-android/packages/sdl2
[INFO]:    -> directory context /home/vladislav/.local/share/python-for-android/packages/sdl2
[INFO]:    -> running basename https://www.libsdl.org/release/SDL2-2.0.9.tar.gz
[INFO]:    sdl2 download already cached, skipping                                                                                                 
[INFO]:    <- directory context /home/vladislav/coding/python/0
[INFO]:    Downloading six
[INFO]:    -> running mkdir -p /home/vladislav/.local/share/python-for-android/packages/six
[INFO]:    -> directory context /home/vladislav/.local/share/python-for-android/packages/six
[INFO]:    -> running basename https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz
[INFO]:    six download already cached, skipping                                                                                                  
[INFO]:    <- directory context /home/vladislav/coding/python/0
[INFO]:    Downloading pyjnius
[INFO]:    -> running mkdir -p /home/vladislav/.local/share/python-for-android/packages/pyjnius
[INFO]:    -> directory context /home/vladislav/.local/share/python-for-android/packages/pyjnius
[INFO]:    -> running basename https://github.com/kivy/pyjnius/archive/1.1.3.zip
[INFO]:    pyjnius download already cached, skipping                                                                                              
[INFO]:    <- directory context /home/vladislav/coding/python/0
[INFO]:    Downloading android
[INFO]:    Skipping android download as no URL is set
[INFO]:    # Building all recipes for arch armeabi-v7a
[INFO]:    # Unpacking recipes
[INFO]:    Unpacking hostpython2 for armeabi-v7a
[INFO]:    -> running basename https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz
[INFO]:    -> directory context /home/vladislav/.local/share/python-for-android/build/other_builds/hostpython2/desktop                            
[INFO]:    hostpython2 is already unpacked, skipping
[INFO]:    <- directory context /home/vladislav/coding/python/0
[INFO]:    Unpacking sdl2_image for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.4.tar.gz
[INFO]:    -> directory context /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni                           
[INFO]:    sdl2_image is already unpacked, skipping
[INFO]:    <- directory context /home/vladislav/coding/python/0
[INFO]:    Unpacking sdl2_mixer for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.1.tar.gz
[INFO]:    -> directory context /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni                           
[INFO]:    sdl2_mixer is already unpacked, skipping
[INFO]:    <- directory context /home/vladislav/coding/python/0
[INFO]:    Unpacking sdl2_ttf for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.tar.gz
[INFO]:    -> directory context /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni                           
[INFO]:    sdl2_ttf is already unpacked, skipping
[INFO]:    <- directory context /home/vladislav/coding/python/0
[INFO]:    Unpacking python2 for armeabi-v7a
[INFO]:    -> running basename https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz
[INFO]:    -> directory context /home/vladislav/.local/share/python-for-android/build/other_builds/python2/armeabi-v7a__ndk_target_21             
[INFO]:    python2 is already unpacked, skipping
[INFO]:    <- directory context /home/vladislav/coding/python/0
[INFO]:    Unpacking sdl2 for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/release/SDL2-2.0.9.tar.gz
[INFO]:    -> directory context /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni                           
[INFO]:    sdl2 is already unpacked, skipping
[INFO]:    <- directory context /home/vladislav/coding/python/0
[INFO]:    Unpacking six for armeabi-v7a
[INFO]:    -> running basename https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz
[INFO]:    -> directory context /home/vladislav/.local/share/python-for-android/build/other_builds/six-python2/armeabi-v7a__ndk_target_21         
[INFO]:    six is already unpacked, skipping
[INFO]:    <- directory context /home/vladislav/coding/python/0
[INFO]:    Unpacking pyjnius for armeabi-v7a
[INFO]:    -> running basename https://github.com/kivy/pyjnius/archive/1.1.3.zip
[INFO]:    -> directory context /home/vladislav/.local/share/python-for-android/build/other_builds/pyjnius-python2-sdl2/armeabi-v7a__ndk_target_21
[INFO]:    pyjnius is already unpacked, skipping
[INFO]:    <- directory context /home/vladislav/coding/python/0
[INFO]:    -> running rm -rf /home/vladislav/.local/share/python-for-android/build/other_builds/android-python2-sdl2/ar...(and 32 more)
[INFO]:    -> running cp -a /home/vladislav/.local/lib/python3.7/site-packages/pythonforandroid/recipes/android/src /ho...(and 119 more)
[INFO]:    # Prebuilding recipes
[INFO]:    Prebuilding hostpython2 for armeabi-v7a
[INFO]:    hostpython2 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 python2 for armeabi-v7a
[INFO]:    python2 has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for python2[armeabi-v7a]
[INFO]:    python2 already patched, skipping
[INFO]:    Prebuilding sdl2 for armeabi-v7a
[INFO]:    sdl2 has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding six for armeabi-v7a
[INFO]:    six has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding pyjnius for armeabi-v7a
[INFO]:    pyjnius has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for pyjnius[armeabi-v7a]
[INFO]:    pyjnius already patched, skipping
[INFO]:    Prebuilding android for armeabi-v7a
[INFO]:    android has no prebuild_armeabi_v7a, skipping
[INFO]:    -> directory context /home/vladislav/.local/share/python-for-android/build/other_builds/android-python2-sdl2/armeabi-v7a__ndk_target_21/android
[INFO]:    <- directory context /home/vladislav/coding/python/0
[INFO]:    # Building recipes
[INFO]:    Building hostpython2 for armeabi-v7a
[INFO]:    Skipping hostpython2 (2.7.15) build, as it has already been completed
[INFO]:    Building sdl2_image for armeabi-v7a
[INFO]:    Building sdl2_mixer for armeabi-v7a
[INFO]:    Building sdl2_ttf for armeabi-v7a
[INFO]:    Building python2 for armeabi-v7a
[INFO]:    -> directory context /home/vladislav/.local/share/python-for-android/build/other_builds/python2/armeabi-v7a__ndk_target_21/python2/android-build
[WARNING]: Doing some hacky stuff to link properly
[INFO]:    -> running cp /home/vladislav/Android/android-ndk-r17c/platforms/android-21/arch-arm/usr/lib/crtbegin_so.o ./
[INFO]:    -> running cp /home/vladislav/Android/android-ndk-r17c/platforms/android-21/arch-arm/usr/lib/crtend_so.o ./
[INFO]:    <- directory context /home/vladislav/coding/python/0
[INFO]:    Building sdl2 for armeabi-v7a
[INFO]:    -> directory context /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni
[INFO]:    -> running ndk-build V=1
           working: make: *** [/home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/obj/local/arm...(and 39 more)  Exception in thread background thread for pid 13420:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/home/vladislav/.local/lib/python3.7/site-packages/sh.py", line 1540, in wrap
    fn(*args, **kwargs)
  File "/home/vladislav/.local/lib/python3.7/site-packages/sh.py", line 2459, in background_thread
    handle_exit_code(exit_code)
  File "/home/vladislav/.local/lib/python3.7/site-packages/sh.py", line 2157, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/home/vladislav/.local/lib/python3.7/site-packages/sh.py", line 815, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_2: 

  RAN: /home/vladislav/Android/android-ndk-r17c/ndk-build V=1

  STDOUT:
Android NDK: WARNING:/home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni/application/src/Android.mk:main: non-system libraries in linker flags: -lpython2.7    
Android NDK:     This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES    
Android NDK:     or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the    
Android NDK:     current module    
/home/vladislav/Android/android-ndk-r17c/build/core/build-binary.mk:688: Android NDK: Module main depends on undefined modules: python_shared    
rm -f /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/libs/arm64-v8a/* /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/libs/armeabi-v7a/* /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/libs/x86/* /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/libs/x86_64/*
rm -f /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/libs/arm64-v8a/gdbserver /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/libs/armeabi-v7a/gdbserver /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/libs/x86/gdbserver /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/libs/x86_64/gdbserver
rm -f /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/libs/arm64-v8a/gdb.setup /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/libs/armeabi-v7a/gdb.setup /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/libs/x86/gdb.setup /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/libs/x86_64/gdb.setup
[armeabi-v7a] Compile thumb  : SDL2 <= SDL.c
/home/vladislav/Android/android-ndk-r17c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -MMD -MP -MF /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/obj/local/armeabi-v7a/objs/SDL2/src/SDL.o.d -gcc-toolchain /home/vladislav/Android/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes -g -target armv7-none-linux-androideabi21 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -DNDEBUG  -I/home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni/SDL/include -I/home/vladislav/Android/android-ndk-r17c/sources/cxx-stl/system/include -I/home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni/SDL   -DANDROID -DGL_GLEXT_PROTOTYPES -D__ANDROID_API__=21 -Wa,--noexecstack -Wformat -Werror=format-security  --sysroot /home/vladislav/Android/android-ndk-r17c/sysroot -isystem /home/vladislav/Android/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -c  /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni/SDL/src/SDL.c -o /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/obj/local/armeabi-v7a/objs/SDL2/src/SDL.o
/home/vladislav/Android/android-ndk-r17c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
make: *** [/home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/obj/local/armeabi-v7a/objs/SDL2/src/SDL.o] Error 127


  STDERR:


Traceback (most recent call last):                                                                                                                
  File "/usr/bin/p4a", line 10, in <module>
    sys.exit(main())
  File "/home/vladislav/.local/lib/python3.7/site-packages/pythonforandroid/toolchain.py", line 1067, in main
    ToolchainCL()
  File "/home/vladislav/.local/lib/python3.7/site-packages/pythonforandroid/toolchain.py", line 576, in __init__
    getattr(self, args.subparser_name.replace('-', '_'))(args)
  File "/home/vladislav/.local/lib/python3.7/site-packages/pythonforandroid/toolchain.py", line 151, in wrapper_func
    build_dist_from_args(ctx, dist, args)
  File "/home/vladislav/.local/lib/python3.7/site-packages/pythonforandroid/toolchain.py", line 200, in build_dist_from_args
    build_recipes(build_order, python_modules, ctx)
  File "/home/vladislav/.local/lib/python3.7/site-packages/pythonforandroid/build.py", line 562, in build_recipes
    recipe.build_arch(arch)
  File "/home/vladislav/.local/lib/python3.7/site-packages/pythonforandroid/recipes/sdl2/__init__.py", line 26, in build_arch
    shprint(sh.ndk_build, "V=1", _env=env)
  File "/home/vladislav/.local/lib/python3.7/site-packages/pythonforandroid/logger.py", line 178, in shprint
    for line in output:
  File "/home/vladislav/.local/lib/python3.7/site-packages/sh.py", line 863, in next
    self.wait()
  File "/home/vladislav/.local/lib/python3.7/site-packages/sh.py", line 792, in wait
    self.handle_command_exit_code(exit_code)
  File "/home/vladislav/.local/lib/python3.7/site-packages/sh.py", line 815, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_2: 

  RAN: /home/vladislav/Android/android-ndk-r17c/ndk-build V=1

  STDOUT:
Android NDK: WARNING:/home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni/application/src/Android.mk:main: non-system libraries in linker flags: -lpython2.7    
Android NDK:     This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES    
Android NDK:     or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the    
Android NDK:     current module    
/home/vladislav/Android/android-ndk-r17c/build/core/build-binary.mk:688: Android NDK: Module main depends on undefined modules: python_shared    
rm -f /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/libs/arm64-v8a/* /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/libs/armeabi-v7a/* /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/libs/x86/* /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/libs/x86_64/*
rm -f /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/libs/arm64-v8a/gdbserver /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/libs/armeabi-v7a/gdbserver /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/libs/x86/gdbserver /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/libs/x86_64/gdbserver
rm -f /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/libs/arm64-v8a/gdb.setup /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/libs/armeabi-v7a/gdb.setup /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/libs/x86/gdb.setup /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/libs/x86_64/gdb.setup
[armeabi-v7a] Compile thumb  : SDL2 <= SDL.c
/home/vladislav/Android/android-ndk-r17c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -MMD -MP -MF /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/obj/local/armeabi-v7a/objs/SDL2/src/SDL.o.d -gcc-toolchain /home/vladislav/Android/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -fpic -ffunction-sections -funwind-tables -fstack-protector-strong -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes -g -target armv7-none-linux-androideabi21 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -Os -DNDEBUG  -I/home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni/SDL/include -I/home/vladislav/Android/android-ndk-r17c/sources/cxx-stl/system/include -I/home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni/SDL   -DANDROID -DGL_GLEXT_PROTOTYPES -D__ANDROID_API__=21 -Wa,--noexecstack -Wformat -Werror=format-security  --sysroot /home/vladislav/Android/android-ndk-r17c/sysroot -isystem /home/vladislav/Android/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -c  /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni/SDL/src/SDL.c -o /home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/obj/local/armeabi-v7a/objs/SDL2/src/SDL.o
/home/vladislav/Android/android-ndk-r17c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
make: *** [/home/vladislav/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/obj/local/armeabi-v7a/objs/SDL2/src/SDL.o] Error 127


  STDERR:

buildozer

Command:

buildozer android debug deploy run

Logs

# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Run 'dpkg --version'
# Cwd None
/bin/sh: dpkg: команда не найдена
# Search for Git (git)
#  -> found at /usr/bin/git
# Search for Cython (cython)
#  -> found at /usr/bin/cython
# Search for Java compiler (javac)
#  -> found at /usr/lib/jvm/java-10-openjdk/bin/javac
# Search for Java keytool (keytool)
#  -> found at /usr/lib/jvm/java-10-openjdk/bin/keytool
# Install platform
# Run '/usr/bin/python -m pip install -q --user \'appdirs\' \'colorama>=0.3.3\' \'jinja2\' \'six\' \'enum34; python_version<"3.4"\' \'sh>=1.10; sys_platform!="nt"\''
# Cwd None
# Apache ANT found at /home/vladislav/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/vladislav/Android/Sdk
# Android NDK found at /home/vladislav/Android/android-ndk-r17c
# Check application requirements
# Check garden requirements
# Compile platform
# Run '/usr/bin/python -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=python2,sdl2 --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/vladislav/coding/python/0/.buildozer/android/platform/build" --ndk-api=21'
# Cwd /home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android
/home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py:83: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
[INFO]:    Will compile for the following archs: armeabi-v7a
[INFO]:    Found Android API target in $ANDROIDAPI: 27
[INFO]:    Available Android APIs are (21, 27, 28)
[INFO]:    Requested API target 27 is available, continuing.
[INFO]:    Found NDK dir in $ANDROIDNDK: /home/vladislav/Android/android-ndk-r17c
[INFO]:    Found NDK revision 17.2.4988734
[INFO]:    Getting NDK API version (i.e. minimum supported API) from user argument
[INFO]:    Found virtualenv at /usr/bin/virtualenv
[INFO]:    ccache is missing, the build will not be optimized in the future.
[INFO]:    Found the following toolchain versions: ['4.9']
[INFO]:    Picking the latest gcc toolchain, here 4.9
[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: ['hostpython2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'python2', 'sdl2', 'six', 'pyjnius', 'android']
[INFO]:    The selected bootstrap is sdl2
[INFO]:    # Creating dist with sdl2 bootstrap
[INFO]:    Dist will have name myapp and requirements (python2, sdl2)
[INFO]:    Dist contains the following requirements as recipes: ['hostpython2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'python2', 'sdl2', 'six', 'pyjnius', 'android']
[INFO]:    Dist will also contain modules () installed from pip
[INFO]:    -> directory context /home/vladislav/coding/python/0/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python2
[INFO]:    <- directory context /home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android
[INFO]:    Recipe build order is ['hostpython2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'python2', 'sdl2', 'six', 'pyjnius', 'android']
[INFO]:    # Downloading recipes 
[INFO]:    Downloading hostpython2
[INFO]:    -> running mkdir -p /home/vladislav/coding/python/0/.buildozer/android/platform/build/packages/hostpython2
[INFO]:    -> directory context /home/vladislav/coding/python/0/.buildozer/android/platform/build/packages/hostpython2
[INFO]:    -> running basename https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz
[INFO]:    hostpython2 download already cached, skipping                                                                                          
[INFO]:    <- directory context /home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android
[INFO]:    Downloading sdl2_image
[INFO]:    -> running mkdir -p /home/vladislav/coding/python/0/.buildozer/android/platform/build/packages/sdl2_image
[INFO]:    -> directory context /home/vladislav/coding/python/0/.buildozer/android/platform/build/packages/sdl2_image
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.4.tar.gz
[INFO]:    sdl2_image download already cached, skipping                                                                                           
[INFO]:    <- directory context /home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android
[INFO]:    Downloading sdl2_mixer
[INFO]:    -> running mkdir -p /home/vladislav/coding/python/0/.buildozer/android/platform/build/packages/sdl2_mixer
[INFO]:    -> directory context /home/vladislav/coding/python/0/.buildozer/android/platform/build/packages/sdl2_mixer
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.1.tar.gz
[INFO]:    sdl2_mixer download already cached, skipping                                                                                           
[INFO]:    <- directory context /home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android
[INFO]:    Downloading sdl2_ttf
[INFO]:    -> running mkdir -p /home/vladislav/coding/python/0/.buildozer/android/platform/build/packages/sdl2_ttf
[INFO]:    -> directory context /home/vladislav/coding/python/0/.buildozer/android/platform/build/packages/sdl2_ttf
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.tar.gz
[INFO]:    sdl2_ttf download already cached, skipping                                                                                             
[INFO]:    <- directory context /home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android
[INFO]:    Downloading python2
[INFO]:    -> running mkdir -p /home/vladislav/coding/python/0/.buildozer/android/platform/build/packages/python2
[INFO]:    -> directory context /home/vladislav/coding/python/0/.buildozer/android/platform/build/packages/python2
[INFO]:    -> running basename https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz
[INFO]:    python2 download already cached, skipping                                                                                              
[INFO]:    <- directory context /home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android
[INFO]:    Downloading sdl2
[INFO]:    -> running mkdir -p /home/vladislav/coding/python/0/.buildozer/android/platform/build/packages/sdl2
[INFO]:    -> directory context /home/vladislav/coding/python/0/.buildozer/android/platform/build/packages/sdl2
[INFO]:    -> running basename https://www.libsdl.org/release/SDL2-2.0.9.tar.gz
[INFO]:    sdl2 download already cached, skipping                                                                                                 
[INFO]:    <- directory context /home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android
[INFO]:    Downloading six
[INFO]:    -> running mkdir -p /home/vladislav/coding/python/0/.buildozer/android/platform/build/packages/six
[INFO]:    -> directory context /home/vladislav/coding/python/0/.buildozer/android/platform/build/packages/six
[INFO]:    -> running basename https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz
[INFO]:    six download already cached, skipping                                                                                                  
[INFO]:    <- directory context /home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android
[INFO]:    Downloading pyjnius
[INFO]:    -> running mkdir -p /home/vladislav/coding/python/0/.buildozer/android/platform/build/packages/pyjnius
[INFO]:    -> directory context /home/vladislav/coding/python/0/.buildozer/android/platform/build/packages/pyjnius
[INFO]:    -> running basename https://github.com/kivy/pyjnius/archive/1.1.3.zip
[INFO]:    pyjnius download already cached, skipping                                                                                              
[INFO]:    <- directory context /home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android
[INFO]:    Downloading android
[INFO]:    Skipping android download as no URL is set
[INFO]:    # Building all recipes for arch armeabi-v7a
[INFO]:    # Unpacking recipes
[INFO]:    Unpacking hostpython2 for armeabi-v7a
[INFO]:    -> running basename https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz
[INFO]:    -> directory context /home/vladislav/coding/python/0/.buildozer/android/platform/build/build/other_builds/hostpython2/desktop          
[INFO]:    hostpython2 is already unpacked, skipping
[INFO]:    <- directory context /home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking sdl2_image for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.4.tar.gz
[INFO]:    -> directory context /home/vladislav/coding/python/0/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python2/jni         
[INFO]:    sdl2_image is already unpacked, skipping
[INFO]:    <- directory context /home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking sdl2_mixer for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.1.tar.gz
[INFO]:    -> directory context /home/vladislav/coding/python/0/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python2/jni         
[INFO]:    sdl2_mixer is already unpacked, skipping
[INFO]:    <- directory context /home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking sdl2_ttf for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.tar.gz
[INFO]:    -> directory context /home/vladislav/coding/python/0/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python2/jni         
[INFO]:    sdl2_ttf is already unpacked, skipping
[INFO]:    <- directory context /home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking python2 for armeabi-v7a
[INFO]:    -> running basename https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tgz
[INFO]:    -> directory context /home/vladislav/coding/python/0/.buildozer/android/platform/build/build/other_builds/python2/armeabi-v7a__ndk_target_21
[INFO]:    python2 is already unpacked, skipping
[INFO]:    <- directory context /home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking sdl2 for armeabi-v7a
[INFO]:    -> running basename https://www.libsdl.org/release/SDL2-2.0.9.tar.gz
[INFO]:    -> directory context /home/vladislav/coding/python/0/.buildozer/android/platform/build/build/bootstrap_builds/sdl2-python2/jni         
[INFO]:    sdl2 is already unpacked, skipping
[INFO]:    <- directory context /home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking six for armeabi-v7a
[INFO]:    -> running basename https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz
[INFO]:    -> directory context /home/vladislav/coding/python/0/.buildozer/android/platform/build/build/other_builds/six-python2/armeabi-v7a__ndk_target_21
[INFO]:    six is already unpacked, skipping
[INFO]:    <- directory context /home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android
[INFO]:    Unpacking pyjnius for armeabi-v7a
[INFO]:    -> running basename https://github.com/kivy/pyjnius/archive/1.1.3.zip
[INFO]:    -> directory context /home/vladislav/coding/python/0/.buildozer/android/platform/build/build/other_builds/pyjnius-python2-sdl2/armeabi-v7a__ndk_target_21
[INFO]:    pyjnius is already unpacked, skipping
[INFO]:    <- directory context /home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android
[INFO]:    -> running rm -rf /home/vladislav/coding/python/0/.buildozer/android/platform/build/build/other_builds/andro...(and 50 more)
[INFO]:    -> running cp -a /home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android/pythonforand...(and 165 more)
[INFO]:    # Prebuilding recipes
[INFO]:    Prebuilding hostpython2 for armeabi-v7a
[INFO]:    hostpython2 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 python2 for armeabi-v7a
[INFO]:    python2 has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for python2[armeabi-v7a]
[INFO]:    python2 already patched, skipping
[INFO]:    Prebuilding sdl2 for armeabi-v7a
[INFO]:    sdl2 has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding six for armeabi-v7a
[INFO]:    six has no prebuild_armeabi_v7a, skipping
[INFO]:    Prebuilding pyjnius for armeabi-v7a
[INFO]:    pyjnius has no prebuild_armeabi_v7a, skipping
[INFO]:    Applying patches for pyjnius[armeabi-v7a]
[INFO]:    pyjnius already patched, skipping
[INFO]:    Prebuilding android for armeabi-v7a
[INFO]:    android has no prebuild_armeabi_v7a, skipping
[INFO]:    -> directory context /home/vladislav/coding/python/0/.buildozer/android/platform/build/build/other_builds/android-python2-sdl2/armeabi-v7a__ndk_target_21/android
[INFO]:    <- directory context /home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android
[INFO]:    # Building recipes
[INFO]:    Building hostpython2 for armeabi-v7a
[INFO]:    Skipping hostpython2 (2.7.15) build, as it has already been completed
[INFO]:    Building sdl2_image for armeabi-v7a
[INFO]:    Building sdl2_mixer for armeabi-v7a
[INFO]:    Building sdl2_ttf for armeabi-v7a
[INFO]:    Building python2 for armeabi-v7a
[INFO]:    -> directory context /home/vladislav/coding/python/0/.buildozer/android/platform/build/build/other_builds/python2/armeabi-v7a__ndk_target_21/python2/android-build
[WARNING]: Doing some hacky stuff to link properly
[INFO]:    -> running cp /home/vladislav/Android/android-ndk-r17c/platforms/android-21/arch-arm/usr/lib/crtbegin_so.o ./
[INFO]:    -> running cp /home/vladislav/Android/android-ndk-r17c/platforms/android-21/arch-arm/usr/lib/crtend_so.o ./
[INFO]:    -> running configure --host=arm-linux-androideabi --build=x86_64-pc-linux-gnu --enable-shared --disable-ipv6...(and 214 more)
Exception in thread background thread for pid 25826:                                                                                              
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/home/vladislav/.local/lib/python3.7/site-packages/sh.py", line 1540, in wrap
    fn(*args, **kwargs)
  File "/home/vladislav/.local/lib/python3.7/site-packages/sh.py", line 2459, in background_thread
    handle_exit_code(exit_code)
  File "/home/vladislav/.local/lib/python3.7/site-packages/sh.py", line 2157, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/home/vladislav/.local/lib/python3.7/site-packages/sh.py", line 815, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_77: 

  RAN: /home/vladislav/coding/python/0/.buildozer/android/platform/build/build/other_builds/python2/armeabi-v7a__ndk_target_21/python2/configure --host=arm-linux-androideabi --build=x86_64-pc-linux-gnu --enable-shared --disable-ipv6 --disable-toolbox-glue --disable-framework ac_cv_file__dev_ptmx=yes ac_cv_file__dev_ptc=no --without-ensurepip ac_cv_little_endian_double=yes ac_cv_header_langinfo_h=no --prefix=/usr/local --exec-prefix=/usr/local

  STDOUT:
checking build system type... x86_64-pc-linux-gnu
checking host system type... arm-unknown-linux-androideabi
checking for python2.7... python2.7
checking for python interpreter for cross build... python2.7
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... linux2
checking EXTRAPLATDIR... 
checking for --without-gcc... no
checking for --with-icc... no
checking for arm-linux-androideabi-gcc... /home/vladislav/Android/android-ndk-r17c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target armv7a-none-linux-androideabi -gcc-toolchain /home/vladislav/Android/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64
checking whether the C compiler works... no
configure: error: in `/home/vladislav/coding/python/0/.buildozer/android/platform/build/build/other_builds/python2/armeabi-v7a__ndk_target_21/python2/android-build':
configure: error: C compiler cannot create executables
See `config.log' for more details


  STDERR:


Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1073, in <module>
    main()
  File "/home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1067, in main
    ToolchainCL()
  File "/home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 576, in __init__
    getattr(self, args.subparser_name.replace('-', '_'))(args)
  File "/home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 151, in wrapper_func
    build_dist_from_args(ctx, dist, args)
  File "/home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 200, in build_dist_from_args
    build_recipes(build_order, python_modules, ctx)
  File "/home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 562, in build_recipes
    recipe.build_arch(arch)
  File "/home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android/pythonforandroid/python.py", line 248, in build_arch
    _env=env)
  File "/home/vladislav/coding/python/0/.buildozer/android/platform/python-for-android/pythonforandroid/logger.py", line 178, in shprint
    for line in output:
  File "/home/vladislav/.local/lib/python3.7/site-packages/sh.py", line 863, in next
    self.wait()
  File "/home/vladislav/.local/lib/python3.7/site-packages/sh.py", line 792, in wait
    self.handle_command_exit_code(exit_code)
  File "/home/vladislav/.local/lib/python3.7/site-packages/sh.py", line 815, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_77: 

  RAN: /home/vladislav/coding/python/0/.buildozer/android/platform/build/build/other_builds/python2/armeabi-v7a__ndk_target_21/python2/configure --host=arm-linux-androideabi --build=x86_64-pc-linux-gnu --enable-shared --disable-ipv6 --disable-toolbox-glue --disable-framework ac_cv_file__dev_ptmx=yes ac_cv_file__dev_ptc=no --without-ensurepip ac_cv_little_endian_double=yes ac_cv_header_langinfo_h=no --prefix=/usr/local --exec-prefix=/usr/local

  STDOUT:
checking build system type... x86_64-pc-linux-gnu
checking host system type... arm-unknown-linux-androideabi
checking for python2.7... python2.7
checking for python interpreter for cross build... python2.7
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... linux2
checking EXTRAPLATDIR... 
checking for --without-gcc... no
checking for --with-icc... no
checking for arm-linux-androideabi-gcc... /home/vladislav/Android/android-ndk-r17c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target armv7a-none-linux-androideabi -gcc-toolchain /home/vladislav/Android/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64
checking whether the C compiler works... no
configure: error: in `/home/vladislav/coding/python/0/.buildozer/android/platform/build/build/other_builds/python2/armeabi-v7a__ndk_target_21/python2/android-build':
configure: error: C compiler cannot create executables
See `config.log' for more details


  STDERR:

# Command failed: /usr/bin/python -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=python2,sdl2 --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/vladislav/coding/python/0/.buildozer/android/platform/build" --ndk-api=21
# 
# 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




Immediately I apologize, I am bad in all this, so I do not quite understand everything.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions