Skip to content

configure: error: C compiler cannot create executables #145

Closed

Description

@sifter23

Hi,

Great Project! I am working through the tutorial all the way to deployment on my android phone. I have been following the read me to a t. However, I can not build the build file. Upon running ./distribute.sh -m "kivy" I receive the error message "configure: error: C compiler cannot create executable". The last part of the log is below. If you need me to provide the complete file mentioned I will. Is there anything I am missing? I downloaded the SDK and NDK from the links in the read me and also the newer 64 bit versions. I have tried them all but receive the same message. The only thing I did different was it seems the environment path for NDK had to be set directly to the compiler.

export ANDROIDNDK="home/james/android/android-ndk-r9/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86/bin"

I am using Kubuntu 64 bit.
3.8.0-27-generic #40-Ubuntu SMP Tue Jul 9 00:17:05 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Thank you for the great work and support!

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... ccache arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/james/android/android-ndk-r8c/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/platforms/android-14/arch-arm
checking whether the C compiler works... no
configure: error: in /home/james/python/kivy/python-for-android/build/python/Python-2.7.2': configure: error: C compiler cannot create executables Seeconfig.log' for more details

Activity

  1. sifter23 commented on Aug 11, 2013

    @sifter23
    Author

    Ok,it is working now. The problem was in the environmental path and should be as stated in the readme. Not sure what I was doing wrong initially. Also I was able to get this working with the latest SDK and NDK (r9) releases (as of 80-11-2013). For this, I had to rename the directory
    ..../toolchains/arm-linux-androidabi4.6 to
    ..../toolchains/arm-linux-androidabi4.4.3
    Not sure if this is advisable.

    Thanks again for the great work.

  2. swdevbali commented on Jan 19, 2014

    @swdevbali

    Hi @sifter23 , I am using r9c and after renaming "..../toolchains/arm-linux-androidabi4.6" I still got the same error message. Any suggestion?

  3. thopiekar commented on Jan 19, 2014

    @thopiekar
    Contributor
  4. swdevbali commented on Jan 20, 2014

    @swdevbali

    I am working on it!

    Eko S. Wibowo

    http://about.me/ekowibowo
    Building my own company

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions