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

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

Closed
mperezfr opened this issue Aug 27, 2015 · 1 comment

Comments

@mperezfr
Copy link

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

@mperezfr
Copy link
Author

Previously to the above error I get this other error

...
Entering in ARM environment
Compiler found at /home/mperez/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin//arm-linux-androideabi-gcc
Could not find platform independent libraries
Consider setting $PYTHONHOME to [:<exec_prefix>]
ImportError: No module named site

I have solved it defining the variable PYTHONHOME as follow

export PYTHONHOME=/usr

I have commented this just in case the previous error is related with this

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

2 participants