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

buildozer apk build problem #195

Closed
DevKrkita opened this issue Jan 17, 2014 · 14 comments
Closed

buildozer apk build problem #195

DevKrkita opened this issue Jan 17, 2014 · 14 comments

Comments

@DevKrkita
Copy link

i am trying to build .apk with buildozer, i get the error # Command failed: ./distribute.sh -m "kivy"

how can i fix it?

# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Install platform
# Apache ANT found at /home/devkirkita/.buildozer/android/platform/apache-ant-1.8.4
# Android SDK found at /home/devkirkita/.buildozer/android/platform/android-sdk-21
# Android NDK found at /home/devkirkita/.buildozer/android/platform/android-ndk-r9
# Android packages already installed.
# Check application requirements
# Compile platform
# Command failed: ./distribute.sh -m "kivy"
@tshirtman
Copy link
Member

Please set the log level to 2 in buildozer.spec and retry, you should get a more explicit error.

@DevKrkita
Copy link
Author

jnius/jnius_nativetypes.pxi:19:15: Expected an identifier or literal
/home/devkirkita/Desktop/.buildozer/android/platform/python-for-android/build/python-install/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'
  warnings.warn(msg)
running build_ext
building 'jnius' extension
arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/devkirkita/.buildozer/android/platform/android-ndk-r9/platforms/android-14/arch-arm -DNDEBUG -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/devkirkita/.buildozer/android/platform/android-ndk-r9/platforms/android-14/arch-arm -fPIC -I/home/devkirkita/Desktop/.buildozer/android/platform/python-for-android/build/python-install/include/python2.7 -c jnius/jnius.c -o build/temp.linux-i686-2.7/jnius/jnius.o
jnius/jnius.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
 #error Do not use this file, it is the result of a failed Cython compilation.
  ^
error: command 'arm-linux-androideabi-gcc' failed with exit status 1
# Command failed: ./distribute.sh -m "kivy"
devkirkita@kirkitaubuntu:~/Desktop$ 

@tito
Copy link
Member

tito commented Jan 17, 2014

Please send the whole log, don't cut in the middle of the error.

@DevKrkita
Copy link
Author

i decided to record video

http://www.youtube.com/watch?v=w2aQceFmr2A&feature=youtu.be

i am sorry for video quelyti

@brousch
Copy link
Contributor

brousch commented Feb 10, 2014

I think this is a bug I just ran into when using cython==0.20 (current version). Using cython==0.19 compiles correctly. Full log of this error can be found at http://pastebin.com/DMaDsxqN

@brousch
Copy link
Contributor

brousch commented Feb 11, 2014

I was able to resolve this issue by deleting my ~/.buildozer dir, which deletes some cached files. You might only have to delete ~/.buildozer/android/packages to resolve it.

@brousch
Copy link
Contributor

brousch commented Feb 25, 2014

@DevKrkita Can you try the solution I suggest above and see if it fixes this bug for you?

@critikaster
Copy link

In my case, with a similar error, it turned out I didn't have all required permissions in that (shared) folder. After moving my workfolder to my local home dir, I could compile without issue.

@Kajal1212
Copy link

hey DevKrkita...did you find the solution for ur problem??? if yes then pls tell me bcz i have same problem ri8 noww...

@critikaster
Copy link

@Kajal1212 : have you tried compiling in your local home folder? So permissions aren't the issue then?

@fccoelho
Copy link

I am having the same issue as @DevKrkita. I am running Kivy 1.9.0 dev and have checked the permissions on .buildozer. I have cython 0.21.2 installed

@kloro2006
Copy link

thanks buildozer folks for yr great work!

my question: how long shd the "Compile platform" segment take? it's been running for about 1.5 an hour. i'm on Lenovo t400 with dual core processor at, i think, ~2.5GHZ.

regards

@macmittereder
Copy link

I'm still getting the "Command failed: ./distribute.sh -m "kivy" -d "appname" " error, has anyone found a fix yet?

@inclement
Copy link
Member

This is a generic error that just means something went wrong. If you can't fix it then please post it on the kivy-users or python-for-android mailing lists, with the full verbose log.

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

10 participants