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

# Command failed: ./distribute.sh -m "kivy" -d "stapp" #204

Closed
SantiagoEG opened this issue Jun 11, 2015 · 5 comments
Closed

# Command failed: ./distribute.sh -m "kivy" -d "stapp" #204

SantiagoEG opened this issue Jun 11, 2015 · 5 comments

Comments

@SantiagoEG
Copy link

Hi! I use Debian, and pycharm. I have coded an application with my own modules. Now I'm trying to build my apk with buildozer and I got the following errors:

This first error doesn't seem matter:

Check build dependencies for Debian
Packages missing: cython
It might break the compilation, except if you installed thoses packages manually.
Check environment

And this is the important error that stops the compilation:

Compiler found at /home/snt/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin//arm-linux-androideabi-gcc
/home/snt/.buildozer/android/platform/android-ndk-r9c/ndk-build: 158: /home/snt/.buildozer/android/platform/android-ndk-r9c/ndk-build: file: not found
/bin/sh: 1: file: not found

Android NDK: WARNING:/home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/jni/../jni/application/Android.mk:application: 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
Android NDK: WARNING:/home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/jni/../jni/png/Android.mk:png: LOCAL_LDLIBS is always ignored for static libraries

rm -f /home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/libs/armeabi/lib_.so /home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/libs/armeabi-v7a/lib_.so /home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/libs/mips/lib_.so /home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/libs/x86/lib_.so
rm -f /home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/libs/armeabi/gdbserver /home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/libs/armeabi-v7a/gdbserver /home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/libs/mips/gdbserver /home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/libs/x86/gdbserver
rm -f /home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/libs/armeabi/gdb.setup /home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/libs/armeabi-v7a/gdb.setup /home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/libs/mips/gdb.setup /home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/libs/x86/gdb.setup
[armeabi] Compile thumb : application <= start.c
ccache /home/snt/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc -MMD -MP -MF /home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/obj/local/armeabi/objs/application/src//start.o.d -fpic -ffunction-sections -funwind-tables -fstack-protector -no-canonical-prefixes -march=armv5te -mtune=xscale -msoft-float -mthumb -Os -g -DNDEBUG -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -I/home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/jni/../jni/application -DANDROID -I/home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/jni/../jni/application/src/ -I/home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/jni/../jni/application/../sdl/include -I/home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/jni/../jni/application/../sdl_mixer -I/home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/jni/../jni/application/../sdl_image -I/home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/jni/../jni/application/../sdl_ttf -I/home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/jni/../jni/application/../sdl_net -I/home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/jni/../jni/application/../sdl_blitpool -I/home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/jni/../jni/application/../sdl_gfx -I/home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/jni/../jni/application/../png -I/home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/jni/../jni/application/../jpeg -I/home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/jni/../jni/application/../intl -I/home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/jni/../jni/application/.. -I/home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/jni/../jni/application/../../../build/python-install/include/python2.7 -finline-functions -O2 -DSDL_JAVA_PACKAGE_PATH=org_renpy_android -Wa,--noexecstack -Wformat -Werror=format-security -I/home/snt/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm/usr/include -c /home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/jni/../jni/application/src//start.c -o /home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/obj/local/armeabi/objs/application/src//start.o
ccache: FATAL: /home/snt/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc: execv returned (No such file or directory)
/home/snt/.buildozer/android/platform/android-ndk-r9c/build/core/build-binary.mk:386: recipe for target '/home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/obj/local/armeabi/objs/application/src//start.o' failed
make: *** [/home/snt/PycharmProjects/ProyectoDocente/innApp_API/stApp/.buildozer/android/platform/python-for-android/src/obj/local/armeabi/objs/application/src//start.o] Error 1
#Command failed: ./distribute.sh -m "kivy" -d "stapp"
#
#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

Any idea about the problem?
Thanks!!!!

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@macmittereder
Copy link

I'm also having this problem

@dvenkatsagar
Copy link
Contributor

It usually means the wrong cython version is installed. Its a weird behaviour that has been there from a long time. For me cython==0.20.1worked. So try it with different versions cython.

@tito
Copy link
Member

tito commented Oct 4, 2015

Is anyone have been able to fix this issue?

@githubuser441
Copy link

same problem here and @dvenkatsagar solution doesn't work for me at least and i also get: `# Command failed: python -m pythonforandroid.toolchain --color=always --storage-dir=/home/lorenzo/Downloads/magister2googlecalendar/.buildozer/android/platform/build create --dist_name=magister2googlecalendar --bootstrap=sdl2 --requirements=kivy --arch armeabi-v7a --copy-libs

Buildozer failed to execute the last command

If the error is not obvious, please raise the log_level to 2

and retry the latest command.

In case of a bug report, please add a full log with log_level = 2

when I dobuildozer android_new update`

@AndreMiras
Copy link
Member

distribute.sh is the old toolchain, closing. Feel free to make a new up to date bug report if that's still an issue

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

6 participants