Skip to content

Error when trying to create an apk package with buildozer or with distribute.sh #435

@mperezfr

Description

@mperezfr

I have a problem trying to create an apk package. I get the same error when I execute
./distribute.sh -m "kivy"
or
buildozer android debug

I am using a debian jessie distrbution and I have installed all the prerequisites commented in http://kivy.org/docs/guide/packaging-android.html and http://python-for-android.readthedocs.org/en/latest/prerequisites/

I have tried a lot of things found in Internet to fix this error, but nothing solve it.

This is the error (I have cut the previous output)
...
running build_ext
building 'pygame.imageext' extension
ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/mk/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/mk/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm -I/home/mk/kivy-test/.buildozer/android/platform/python-for-android/src/jni/png -I/home/mk/kivy-test/.buildozer/android/platform/python-for-android/src/jni/jpeg -I/home/mk/kivy-test/.buildozer/android/platform/python-for-android/src/jni/sdl/include -I/home/mk/kivy-test/.buildozer/android/platform/python-for-android/src/jni/sdl_mixer -I/home/mk/kivy-test/.buildozer/android/platform/python-for-android/src/jni/sdl_ttf -I/home/mk/kivy-test/.buildozer/android/platform/python-for-android/src/jni/sdl_image -fPIC -D_REENTRANT -I/usr/include/python2.7 -c src/imageext.c -o build/temp.linux-x86_64-2.7/src/imageext.o
In file included from /usr/include/python2.7/Python.h:8:0,
from src/pygame.h:75,
from src/imageext.c:47:
/usr/include/python2.7/pyconfig.h:15:52: fatal error: arm-linux-gnueabi/python2.7/pyconfig.h: No such file or directory

include <arm-linux-gnueabi/python2.7/pyconfig.h>

                                                ^

compilation terminated.
error: command 'ccache' failed with exit status 1
# Command failed: ./distribute.sh -m "kivy" -d "mpfapp"
#
# 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions