-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
I am using p4a, and the compile failed when building pyjnius.
I am compiling the helloworld main.py script.
from kivy.app import App
from kivy.uix.button import Button
class Hello(App):
def build(self):
btn = Button(text='hello world!')
return btn
if __name__ == '__main__':
Hello().run()The compile is done on system with:
- ubuntu 14.04
- ubuntu installed python (2.7)
- ubuntu installed cython ( 0.20.1)
- pip installed cython (0.20.2)
- pip installed python-for-android(0.4)
The error log is shown below, how to solve this problem?
the full log is provied in this gist link
partial log is shown below:
$ p4a apk --private ../ --package=org.example.helloworld --name "Hello" --version 1.0 --bootstrap=sdl2 --requirements=python2,kivy,pyjnius
[INFO]: Will compile for the following archs: armeabi
[INFO]: Found Android API target in $ANDROIDAPI
[INFO]: Available Android APIs are (19)
[INFO]: Requested API target 19 is available, continuing.
[INFO]: Found NDK dir in $ANDROIDNDK
[INFO]: Got NDK version from $ANDROIDNDKVER
[INFO]: Using Google NDK r9c
[INFO]: Found virtualenv at /home/shixudongleo/.pyenv/shims/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
[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 python2 (depends on ['hostpython2'], conflicts ['python3crystax', '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 hostpython2 (depends on [], conflicts ['hostpython3'])
[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 unnamed_dist_1 and recipes (python2, kivy, pyjnius)
[INFO]: -> running cp -r /usr/local/lib/python2.7/dist-packages/pythonforandroid/bootstraps/sdl2...(and 93 more)
[INFO]: -> directory context /home/shixudongleo/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2
[INFO]: <- directory context /home/shixudongleo/Downloads/KivyTut/helloworld/build
[INFO]: Recipe build order is ['hostpython2', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'python2', 'sdl2', 'six', u'pyjnius', u'kivy']
[INFO]: # Downloading recipes
[INFO]: Downloading hostpython2
[INFO]: -> running mkdir -p /home/shixudongleo/.local/share/python-for-android/packages/hostpython2
[INFO]: -> directory context /home/shixudongleo/.local/share/python-for-android/packages/hostpython2
[INFO]: -> running basename http://python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2
[INFO]: hostpython2 download already cached, skipping
[INFO]: <- directory context /home/shixudongleo/Downloads/KivyTut/helloworld/build
[INFO]: Downloading sdl2_image
[INFO]: -> running mkdir -p /home/shixudongleo/.local/share/python-for-android/packages/sdl2_image
[INFO]: -> directory context /home/shixudongleo/.local/share/python-for-android/packages/sdl2_image
[INFO]: -> running basename https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.1.tar.gz
[INFO]: sdl2_image download already cached, skipping
[INFO]: <- directory context /home/shixudongleo/Downloads/KivyTut/helloworld/build
[INFO]: Downloading sdl2_mixer
[INFO]: -> running mkdir -p /home/shixudongleo/.local/share/python-for-android/packages/sdl2_mixer
[INFO]: -> directory context /home/shixudongleo/.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/shixudongleo/Downloads/KivyTut/helloworld/build
[INFO]: Downloading sdl2_ttf
[INFO]: -> running mkdir -p /home/shixudongleo/.local/share/python-for-android/packages/sdl2_ttf
[INFO]: -> directory context /home/shixudongleo/.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/shixudongleo/Downloads/KivyTut/helloworld/build
[INFO]: Downloading python2
[INFO]: -> running mkdir -p /home/shixudongleo/.local/share/python-for-android/packages/python2
[INFO]: -> directory context /home/shixudongleo/.local/share/python-for-android/packages/python2
[INFO]: -> running basename http://python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2
[INFO]: python2 download already cached, skipping
[INFO]: <- directory context /home/shixudongleo/Downloads/KivyTut/helloworld/build
[INFO]: Downloading sdl2
[INFO]: -> running mkdir -p /home/shixudongleo/.local/share/python-for-android/packages/sdl2
[INFO]: -> directory context /home/shixudongleo/.local/share/python-for-android/packages/sdl2
[INFO]: -> running basename https://www.libsdl.org/release/SDL2-2.0.4.tar.gz
[INFO]: <- directory context /home/shixudongleo/Downloads/KivyTut/helloworld/build
[INFO]: Downloading six
[INFO]: -> running mkdir -p /home/shixudongleo/.local/share/python-for-android/packages/six
[INFO]: -> directory context /home/shixudongleo/.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/shixudongleo/Downloads/KivyTut/helloworld/build
[INFO]: Downloading pyjnius
[INFO]: -> running mkdir -p /home/shixudongleo/.local/share/python-for-android/packages/pyjnius
[INFO]: -> directory context /home/shixudongleo/.local/share/python-for-android/packages/pyjnius
[INFO]: -> running basename https://github.com/kivy/pyjnius/archive/master.zip
[INFO]: pyjnius download already cached, skipping
[INFO]: <- directory context /home/shixudongleo/Downloads/KivyTut/helloworld/build
[INFO]: Downloading kivy
[INFO]: -> running mkdir -p /home/shixudongleo/.local/share/python-for-android/packages/kivy
[INFO]: -> directory context /home/shixudongleo/.local/share/python-for-android/packages/kivy
[INFO]: -> running basename https://github.com/kivy/kivy/archive/master.zip
[INFO]: kivy download already cached, skipping
[INFO]: <- directory context /home/shixudongleo/Downloads/KivyTut/helloworld/build
[INFO]: # Building all recipes for arch armeabi
[INFO]: # Unpacking recipes
[INFO]: Unpacking hostpython2 for armeabi
[INFO]: -> running basename http://python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2
[INFO]: -> directory context /home/shixudongleo/.local/share/python-for-android/build/other_builds/hostpython2/desktop
[INFO]: -> running tar tf /home/shixudongleo/.local/share/python-for-android/packages/hostpython...(and 22 more)
[INFO]: -> running mv Python-2.7.2 /home/shixudongleo/.local/share/python-for-android/build/othe...(and 40 more)
[INFO]: <- directory context /home/shixudongleo/Downloads/KivyTut/helloworld/build
[INFO]: Unpacking sdl2_image for armeabi
[INFO]: -> running basename https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.1.tar.gz
[INFO]: -> directory context /home/shixudongleo/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni
[INFO]: -> running tar tf /home/shixudongleo/.local/share/python-for-android/packages/sdl2_image...(and 24 more)
[INFO]: -> running mv SDL2_image-2.0.1 /home/shixudongleo/.local/share/python-for-android/build/...(and 44 more)
[INFO]: <- directory context /home/shixudongleo/Downloads/KivyTut/helloworld/build
[INFO]: Unpacking sdl2_mixer for armeabi
[INFO]: -> running basename https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.1.tar.gz
[INFO]: -> directory context /home/shixudongleo/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni
[INFO]: -> running tar tf /home/shixudongleo/.local/share/python-for-android/packages/sdl2_mixer...(and 24 more)
[INFO]: -> running mv SDL2_mixer-2.0.1 /home/shixudongleo/.local/share/python-for-android/build/...(and 44 more)
[INFO]: <- directory context /home/shixudongleo/Downloads/KivyTut/helloworld/build
[INFO]: Unpacking sdl2_ttf for armeabi
[INFO]: -> running basename https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.tar.gz
[INFO]: -> directory context /home/shixudongleo/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni
[INFO]: -> running tar tf /home/shixudongleo/.local/share/python-for-android/packages/sdl2_ttf/S...(and 21 more)
[INFO]: -> running mv SDL2_ttf-2.0.14 /home/shixudongleo/.local/share/python-for-android/build/b...(and 41 more)
[INFO]: <- directory context /home/shixudongleo/Downloads/KivyTut/helloworld/build
[INFO]: Unpacking python2 for armeabi
[INFO]: -> running basename http://python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2
[INFO]: -> directory context /home/shixudongleo/.local/share/python-for-android/build/other_builds/python2/armeabi
[INFO]: -> running tar tf /home/shixudongleo/.local/share/python-for-android/packages/python2/Python-2.7.2.tar.bz2
[INFO]: -> running mv Python-2.7.2 /home/shixudongleo/.local/share/python-for-android/build/othe...(and 32 more)
[INFO]: <- directory context /home/shixudongleo/Downloads/KivyTut/helloworld/build
[INFO]: Unpacking sdl2 for armeabi
[INFO]: -> running basename https://www.libsdl.org/release/SDL2-2.0.4.tar.gz
[INFO]: -> directory context /home/shixudongleo/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni
[INFO]: -> running tar tf /home/shixudongleo/.local/share/python-for-android/packages/sdl2/SDL2-2.0.4.tar.gz
[INFO]: -> running mv SDL2-2.0.4 /home/shixudongleo/.local/share/python-for-android/build/bootst...(and 31 more)
[INFO]: <- directory context /home/shixudongleo/Downloads/KivyTut/helloworld/build
[INFO]: Unpacking six for armeabi
[INFO]: -> running basename https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz
[INFO]: -> directory context /home/shixudongleo/.local/share/python-for-android/build/other_builds/six-python2/armeabi
[INFO]: -> running tar tf /home/shixudongleo/.local/share/python-for-android/packages/six/six-1.9.0.tar.gz
[INFO]: -> running mv six-1.9.0 /home/shixudongleo/.local/share/python-for-android/build/other_b...(and 29 more)
[INFO]: <- directory context /home/shixudongleo/Downloads/KivyTut/helloworld/build
[INFO]: Unpacking pyjnius for armeabi
[INFO]: -> running basename https://github.com/kivy/pyjnius/archive/master.zip
[INFO]: -> directory context /home/shixudongleo/.local/share/python-for-android/build/other_builds/pyjnius-python2-sdl2/armeabi
[INFO]: -> running mv pyjnius-master /home/shixudongleo/.local/share/python-for-android/build/ot...(and 47 more)
[INFO]: <- directory context /home/shixudongleo/Downloads/KivyTut/helloworld/build
[INFO]: Unpacking kivy for armeabi
[INFO]: -> running basename https://github.com/kivy/kivy/archive/master.zip
[INFO]: -> directory context /home/shixudongleo/.local/share/python-for-android/build/other_builds/kivy-python2-sdl2/armeabi
[INFO]: -> running mv kivy-master /home/shixudongleo/.local/share/python-for-android/build/other...(and 38 more)
[INFO]: <- directory context /home/shixudongleo/Downloads/KivyTut/helloworld/build
[INFO]: # Prebuilding recipes
[INFO]: Prebuilding hostpython2 for armeabi
[INFO]: -> running cp /usr/local/lib/python2.7/dist-packages/pythonforandroid/recipes/hostpython...(and 123 more)
[INFO]: Prebuilding sdl2_image for armeabi
[INFO]: sdl2_image has no prebuild_armeabi, skipping
[INFO]: Applying patches for sdl2_image[armeabi]
[INFO]: Applying patch toggle_jpg_png_webp.patch
[INFO]: -> running patch -t -d /home/shixudongleo/.local/share/python-for-android/build/bootstra...(and 144 more)
[INFO]: Applying patch extra_cflags.patch
[INFO]: -> running patch -t -d /home/shixudongleo/.local/share/python-for-android/build/bootstra...(and 137 more)
[INFO]: -> running touch /home/shixudongleo/.local/share/python-for-android/build/bootstrap_buil...(and 39 more)
[INFO]: Prebuilding sdl2_mixer for armeabi
[INFO]: sdl2_mixer has no prebuild_armeabi, skipping
[INFO]: Applying patches for sdl2_mixer[armeabi]
[INFO]: Applying patch toggle_modplug_mikmod_smpeg_ogg.patch
[INFO]: -> running patch -t -d /home/shixudongleo/.local/share/python-for-android/build/bootstra...(and 156 more)
[INFO]: -> running touch /home/shixudongleo/.local/share/python-for-android/build/bootstrap_buil...(and 39 more)
[INFO]: Prebuilding sdl2_ttf for armeabi
[INFO]: sdl2_ttf has no prebuild_armeabi, skipping
[INFO]: Prebuilding python2 for armeabi
[INFO]: python2 has no prebuild_armeabi, skipping
[INFO]: Applying patches for python2[armeabi]
[INFO]: Applying patch patches/Python-2.7.2-xcompile.patch
[INFO]: -> running patch -t -d /home/shixudongleo/.local/share/python-for-android/build/other_bu...(and 143 more)
[INFO]: Applying patch patches/Python-2.7.2-ctypes-disable-wchar.patch
[INFO]: -> running patch -t -d /home/shixudongleo/.local/share/python-for-android/build/other_bu...(and 155 more)
[INFO]: Applying patch patches/disable-modules.patch
[INFO]: -> running patch -t -d /home/shixudongleo/.local/share/python-for-android/build/other_bu...(and 137 more)
[INFO]: Applying patch patches/fix-locale.patch
[INFO]: -> running patch -t -d /home/shixudongleo/.local/share/python-for-android/build/other_bu...(and 132 more)
[INFO]: Applying patch patches/fix-gethostbyaddr.patch
[INFO]: -> running patch -t -d /home/shixudongleo/.local/share/python-for-android/build/other_bu...(and 139 more)
[INFO]: Applying patch patches/fix-setup-flags.patch
[INFO]: -> running patch -t -d /home/shixudongleo/.local/share/python-for-android/build/other_bu...(and 137 more)
[INFO]: Applying patch patches/fix-filesystemdefaultencoding.patch
[INFO]: -> running patch -t -d /home/shixudongleo/.local/share/python-for-android/build/other_bu...(and 151 more)
[INFO]: Applying patch patches/fix-termios.patch
[INFO]: -> running patch -t -d /home/shixudongleo/.local/share/python-for-android/build/other_bu...(and 133 more)
[INFO]: Applying patch patches/custom-loader.patch
[INFO]: -> running patch -t -d /home/shixudongleo/.local/share/python-for-android/build/other_bu...(and 135 more)
[INFO]: Applying patch patches/verbose-compilation.patch
[INFO]: -> running patch -t -d /home/shixudongleo/.local/share/python-for-android/build/other_bu...(and 141 more)
[INFO]: Applying patch patches/fix-remove-corefoundation.patch
[INFO]: -> running patch -t -d /home/shixudongleo/.local/share/python-for-android/build/other_bu...(and 147 more)
[INFO]: Applying patch patches/fix-dynamic-lookup.patch
[INFO]: -> running patch -t -d /home/shixudongleo/.local/share/python-for-android/build/other_bu...(and 140 more)
[INFO]: Applying patch patches/fix-dlfcn.patch
[INFO]: -> running patch -t -d /home/shixudongleo/.local/share/python-for-android/build/other_bu...(and 131 more)
[INFO]: Applying patch patches/parsetuple.patch
[INFO]: -> running patch -t -d /home/shixudongleo/.local/share/python-for-android/build/other_bu...(and 132 more)
[INFO]: Applying patch patches/ctypes-find-library-updated.patch
[INFO]: -> running patch -t -d /home/shixudongleo/.local/share/python-for-android/build/other_bu...(and 149 more)
[INFO]: -> running touch /home/shixudongleo/.local/share/python-for-android/build/other_builds/p...(and 31 more)
[INFO]: Prebuilding sdl2 for armeabi
[INFO]: sdl2 has no prebuild_armeabi, skipping
[INFO]: Applying patches for sdl2[armeabi]
[INFO]: Applying patch add_nativeSetEnv.patch
[INFO]: -> running patch -t -d /home/shixudongleo/.local/share/python-for-android/build/bootstra...(and 128 more)
[INFO]: -> running touch /home/shixudongleo/.local/share/python-for-android/build/bootstrap_buil...(and 32 more)
[INFO]: Prebuilding six for armeabi
[INFO]: six has no prebuild_armeabi, skipping
[INFO]: Prebuilding pyjnius for armeabi
[INFO]: pyjnius has no prebuild_armeabi, skipping
[INFO]: Applying patches for pyjnius[armeabi]
[INFO]: Applying patch sdl2_jnienv_getter.patch
[INFO]: -> running patch -t -d /home/shixudongleo/.local/share/python-for-android/build/other_bu...(and 145 more)
[INFO]: -> running touch /home/shixudongleo/.local/share/python-for-android/build/other_builds/p...(and 44 more)
[INFO]: Prebuilding kivy for armeabi
[INFO]: kivy has no prebuild_armeabi, skipping
[INFO]: # Building recipes
[INFO]: Building hostpython2 for armeabi
[INFO]: -> directory context /home/shixudongleo/.local/share/python-for-android/build/other_builds/hostpython2/desktop/hostpython2
[INFO]: -> running configure
[INFO]: -> running make -j5
[INFO]: -> running mv Parser/pgen hostpgen
[INFO]: -> running mv python hostpython
[INFO]: <- directory context /home/shixudongleo/Downloads/KivyTut/helloworld/build
[INFO]: Building sdl2_image for armeabi
[INFO]: Building sdl2_mixer for armeabi
[INFO]: Building sdl2_ttf for armeabi
[INFO]: Building python2 for armeabi
[INFO]: -> running cp /home/shixudongleo/.local/share/python-for-android/build/other_builds/host...(and 132 more)
[INFO]: -> running cp /home/shixudongleo/.local/share/python-for-android/build/other_builds/host...(and 130 more)
[INFO]: -> directory context /home/shixudongleo/.local/share/python-for-android/build/other_builds/python2/armeabi/python2
[INFO]: -> running cp /usr/local/lib/python2.7/dist-packages/pythonforandroid/recipes/hostpython2/Setup Modules
[INFO]: -> running gcc -dumpmachine
[INFO]: -> running configure --host=arm-eabi --build=x86_64-linux-gnu --prefix=/home/shixudongle...(and 150 more)
First install (expected to fail...
[INFO]: -> running make -j5 install HOSTPYTHON=/home/shixudongleo/.local/share/python-for-androi...(and 221 more)
Second install (expected to work)
[INFO]: -> running touch python.exe python
[INFO]: -> running make -j5 install HOSTPYTHON=/home/shixudongleo/.local/share/python-for-androi...(and 221 more)
[INFO]: -> running rm -rf python-install/lib/python2.7/test
[INFO]: -> running rm -rf python-install/lib/python2.7/json/tests
[INFO]: -> running rm -rf python-install/lib/python2.7/lib-tk
[INFO]: -> running rm -rf python-install/lib/python2.7/sqlite3/test
[INFO]: -> running rm -rf python-install/lib/python2.7/unittest, test
[INFO]: -> running rm -rf python-install/lib/python2.7/lib2to3/tests
[INFO]: -> running rm -rf python-install/lib/python2.7/bsddb/tests
[INFO]: -> running rm -rf python-install/lib/python2.7/distutils/tests
[INFO]: -> running rm -rf python-install/lib/python2.7/email/test
[INFO]: -> running rm -rf python-install/lib/python2.7/curses
[INFO]: <- directory context /home/shixudongleo/Downloads/KivyTut/helloworld/build
[INFO]: -> running cp -a /home/shixudongleo/.local/share/python-for-android/build/other_builds/p...(and 125 more)
[INFO]: Copying hostpython binary to targetpython folder
[INFO]: -> running cp /home/shixudongleo/.local/share/python-for-android/build/other_builds/host...(and 142 more)
[INFO]: -> running cp /home/shixudongleo/.local/share/python-for-android/build/other_builds/pyth...(and 132 more)
[INFO]: Building sdl2 for armeabi
[INFO]: -> directory context /home/shixudongleo/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni
[INFO]: -> running ndk-build V=1
[INFO]: <- directory context /home/shixudongleo/Downloads/KivyTut/helloworld/build
[INFO]: Building six for armeabi
[INFO]: six apparently isn't already in site-packages
[INFO]: Installing six into site-packages
[INFO]: -> directory context /home/shixudongleo/.local/share/python-for-android/build/other_builds/six-python2/armeabi/six
[INFO]: -> running python.host setup.py install -O2
[INFO]: <- directory context /home/shixudongleo/Downloads/KivyTut/helloworld/build
[INFO]: Building pyjnius for armeabi
[INFO]: jnius apparently isn't already in site-packages
[INFO]: Cythonizing anything necessary in pyjnius
[INFO]: -> directory context /home/shixudongleo/.local/share/python-for-android/build/other_builds/pyjnius-python2-sdl2/armeabi/pyjnius
[INFO]: -> running python.host -c import sys; print(sys.path)
('cwd is', '/home/shixudongleo/.local/share/python-for-android/build/other_builds/pyjnius-python2-sdl2/armeabi/pyjnius')
[INFO]: Trying first build of pyjnius to get cython files: this is expected to fail
[INFO]: -> running python.host setup.py build_ext -v
working: error: command '/usr/bin/ccache' failed with exit status 1 Exception in thread background thread for pid 700:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 1401, in wrap
fn(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 2294, in background_thread
handle_exit_code(exit_code)
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 1993, in fn
return self.command.handle_command_exit_code(exit_code)
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 677, in handle_command_exit_code
raise exc
ErrorReturnCode_1:
RAN: /home/shixudongleo/.local/share/python-for-android/build/python-installs/unnamed_dist_1/bin/python.host setup.py build_ext -v
STDOUT:
/home/shixudongleo/.local/share/python-for-android/build/python-installs/unnamed_dist_1/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
running build_ext
building 'jnius' extension
creating build
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/jnius
/usr/bin/ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/shixudongleo/.buildozer/android/platform/android-ndk-r9c/platforms/android-19/arch-arm -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/shixudongleo/.buildozer/android/platform/android-ndk-r9c/platforms/android-19/arch-arm -fPIC -I/home/shixudongleo/.local/share/python-for-android/build/python-installs/unnamed_dist_1/include/python2.7 -c jnius/jnius.c -o build/temp.linux-x86_64-2.7/jnius/jnius.o
arm-linux-androideabi-gcc: error: jnius/jnius.c: No such file or directory
arm-linux-androideabi-gcc: fatal error: no input files
compilation terminated.
error: command '/usr/bin/ccache' failed with exit status 1
STDERR:
()
[INFO]: pyjnius first build failed (as expected)
[INFO]: Running cython where appropriate
[INFO]: Cythonize jnius/jnius.pyx
[INFO]: -> running cython ./jnius/jnius.pyx
[INFO]: -> running python.host setup.py build_ext -v
[INFO]: Stripping object files
[INFO]: -> running find ./build/lib.linux-x86_64-2.7 -name *.o -exec arm-linux-androideabi-strip...(and 22 more)
[INFO]: <- directory context /home/shixudongleo/Downloads/KivyTut/helloworld/build
[INFO]: Installing pyjnius into site-packages
[INFO]: -> directory context /home/shixudongleo/.local/share/python-for-android/build/other_builds/pyjnius-python2-sdl2/armeabi/pyjnius
[INFO]: -> running python.host setup.py install -O2
[INFO]: <- directory context /home/shixudongleo/Downloads/KivyTut/helloworld/build
[INFO]: Building kivy for armeabi
[INFO]: kivy apparently isn't already in site-packages
[INFO]: Cythonizing anything necessary in kivy
[INFO]: -> directory context /home/shixudongleo/.local/share/python-for-android/build/other_builds/kivy-python2-sdl2/armeabi/kivy
[INFO]: -> running python.host -c import sys; print(sys.path)
('cwd is', '/home/shixudongleo/.local/share/python-for-android/build/other_builds/kivy-python2-sdl2/armeabi/kivy')
[INFO]: Trying first build of kivy to get cython files: this is expected to fail
[INFO]: -> running python.host setup.py build_ext -v
working: error: command '/usr/bin/ccache' failed with exit status 1 Exception in thread background thread for pid 796:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 1401, in wrap
fn(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 2294, in background_thread
handle_exit_code(exit_code)
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 1993, in fn
return self.command.handle_command_exit_code(exit_code)
File "/usr/local/lib/python2.7/dist-packages/sh.py", line 677, in handle_command_exit_code
raise exc
ErrorReturnCode_1:
RAN: /home/shixudongleo/.local/share/python-for-android/build/python-installs/unnamed_dist_1/bin/python.host setup.py build_ext -v
STDOUT:
Using distutils
Environ change use_sdl2 -> True
Cython check avoided.
Using this graphics system: OpenGL ES 2
WARNING: A problem occurred while running pkg-config --libs --cflags sdl2 SDL2_ttf SDL2_image SDL2_mixer (code 1)
Package sdl2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `sdl2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sdl2' found
Package SDL2_ttf was not found in the pkg-config search path.
Perhaps you should add the directory containing `SDL2_ttf.pc'
to the PKG_CONFIG_PATH environment variable
No package 'SDL2_ttf' found
Package SDL2_image was not found in the pkg-config search path.
Perhaps you should add the directory containing `SDL2_image.pc'
to the PKG_CONFIG_PATH environment variable
No package 'SDL2_image' found
Package SDL2_mixer was not found in the pkg-config search path.
Perhaps you should add the directory containing `SDL2_mixer.pc'
to the PKG_CONFIG_PATH environment variable
No package 'SDL2_mixer' found
SDL2: found SDL header at /home/shixudongleo/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni/SDL/include/SDL.h
SDL2: found SDL_mixer header at /home/shixudongleo/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni/SDL2_mixer/SDL_mixer.h
SDL2: found SDL_ttf header at /home/shixudongleo/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni/SDL2_ttf/SDL_ttf.h
SDL2: found SDL_image header at /home/shixudongleo/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni/SDL2_image/SDL_image.h
fatal: Not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
/home/shixudongleo/.local/share/python-for-android/build/python-installs/unnamed_dist_1/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'setup_requires'
warnings.warn(msg)
/home/shixudongleo/.local/share/python-for-android/build/python-installs/unnamed_dist_1/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'dependency_links'
warnings.warn(msg)
/home/shixudongleo/.local/share/python-for-android/build/python-installs/unnamed_dist_1/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
running build_ext
Build configuration is:
* use_rpi = 0
* use_mali = 0
* use_egl = 0
* use_opengl_es2 = 1
* use_opengl_mock = 0
* use_sdl2 = 1
* use_ios = 0
* use_mesagl = 0
* use_x11 = 0
* use_gstreamer = 0
* use_avfoundation = 0
* use_osx_frameworks = 0
* debug_gl = 0
* debug = False
Updated kivy/include/config.h
Updated kivy/include/config.pxi
Updated kivy/setupconfig.py
Detected compiler is unix
building 'kivy.core.text._text_sdl2' extension
creating build
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/kivy
creating build/temp.linux-x86_64-2.7/kivy/core
creating build/temp.linux-x86_64-2.7/kivy/core/text
/usr/bin/ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/shixudongleo/.buildozer/android/platform/android-ndk-r9c/platforms/android-19/arch-arm -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/shixudongleo/.buildozer/android/platform/android-ndk-r9c/platforms/android-19/arch-arm -fPIC -Ikivy/include -I/home/shixudongleo/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni/SDL/include -I/home/shixudongleo/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni/SDL2_image -I/home/shixudongleo/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni/SDL2_mixer -I/home/shixudongleo/.local/share/python-for-android/build/bootstrap_builds/sdl2-python2/jni/SDL2_ttf -I/home/shixudongleo/.local/share/python-for-android/build/python-installs/unnamed_dist_1/include/python2.7 -c kivy/core/text/_text_sdl2.c -o build/temp.linux-x86_64-2.7/kivy/core/text/_text_sdl2.o
arm-linux-androideabi-gcc: error: kivy/core/text/_text_sdl2.c: No such file or directory
arm-linux-androideabi-gcc: fatal error: no input files
compilation terminated.
error: command '/usr/bin/ccache' failed with exit status 1
STDERR:
()
[INFO]: kivy first build failed (as expected)
[INFO]: Running cython where appropriate
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels