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

C compiler cannot create executables #152

Closed
med-phisiker opened this issue Oct 23, 2014 · 5 comments
Closed

C compiler cannot create executables #152

med-phisiker opened this issue Oct 23, 2014 · 5 comments

Comments

@med-phisiker
Copy link

Hello, I try to compile APK from hello_world kivy aplication.
main.py is
from kivy.app import App
from kivy.uix.button import Button

class TestApp(App):
def build(self):
return Button(text='Hello World')

TestApp().run()

My system is Ubuntu 14.04 LTS
I install buildozer, then make buildozer.spec, via command
buildozer init
then run buildozer -v android debug
and then I see this error

"""
Run build
Skipped build_hostpython
Call build_python
Entering in ARM environment
Compiler found at /home/med-phisiker-linux/.buildozer/android/platform/android-ndk-r9c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin//arm-linux-androideabi-gcc
configure: WARNING: if you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used
checking for --enable-universalsdk... no
checking for --with-universal-archs... 32-bit
checking MACHDEP... linux3
checking EXTRAPLATDIR...
checking machine type as reported by uname -m... x86_64
checking for --without-gcc... no
checking for arm-eabi-gcc... arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/med-phisiker-linux/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm
checking whether the C compiler works... no
configure: error: in /home/med-phisiker-linux/kivy_experiments/.buildozer/android/platform/python-for-android/build/python/Python-2.7.2': configure: error: C compiler cannot create executables Seeconfig.log' for more details
Command failed: ./distribute.sh -m "kivy" -d "Hello_world"
"""
please help me...

@med-phisiker
Copy link
Author

it's also prints

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

but if I print in terminal cython -v
it print Cython version 0.17.1

if i print pip 2.7 freeze
i see
cython 0.17.1 in the list !
whats wrong ?

@inclement
Copy link
Member

This cython version may well be too old, try upgrading to cython 0.20, or 0.21 if you use kivy master.

It would also be better to post this on the kivy-users mailing list (see http://kivy.org/docs/contact.html), we don't really use github issues for user problems so you will be more likely to get help there.

@med-phisiker
Copy link
Author

when I use 0.20 i was the same !

@inclement
Copy link
Member

Then the problem is something else, but you should still upgrade cython first. Please do so, then delete any .buildozer file in your app dir, run the command again, and paste the full result on the mailing list.

@monojk
Copy link

monojk commented Jan 3, 2019

Did you get the problem solved? And how? I seem to have the same problem, looked also in stackoverflow where similar problems were posted w/o answers.

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

3 participants