Wednesday, October 15, 2014

error: C compiler cannot create executables in buildozer

Run this command:
cp -r ~/.buildozer/android/platform/android-ndk-r9d/platforms/android-19 ~/.buildozer/android/platform/android-ndk-r9d/platforms/android-20

From here: https://groups.google.com/forum/#!msg/kivy-dev/iyPOwoN9wHY/dajh0kfUClcJ

Error message: 


Run prebuild
Call prebuild_hostpython
Call prebuild_python
Call prebuild_sdl
Call prebuild_zope
Call prebuild_pygame
Call prebuild_pyjnius
Call prebuild_twisted
missing header for unified diff at line 3 of patch
patching file twisted/python/compat.py
Call prebuild_android
Call prebuild_kivy
Run build
Skipped build_hostpython
Call build_python
Entering in ARM environment
Compiler found at /Users/fengwei/.buildozer/android/platform/android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-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... darwin
checking EXTRAPLATDIR... $(PLATMACDIRS)
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 /Users/fengwei/.buildozer/android/platform/android-ndk-r9d/platforms/android-20/arch-arm
checking whether the C compiler works... no
configure: error: in `/Users/fengwei/Documents/paper/icas/trunk/code/ICAS-AndroidNetclientTester/src/.buildozer/android/platform/python-for-android/build/python/Python-2.7.2':
configure: error: C compiler cannot create executables
See `config.log' for more details

# Command failed: ./distribute.sh -m "kivy twisted" -d "chordclient"

No comments: