configure: error: C compiler cannot create executables
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
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.
Hi @sifter23 , I am using r9c and after renaming "..../toolchains/arm-linux-androidabi4.6" I still got the same error message. Any suggestion?
The README.rst suggests to use r8c. Tried with this version?
https://github.com/kivy/python-for-android/blob/master/README.rst http://dl.google.com/android/ndk/android-ndk-r8c-linux-x86.tar.bz2
I am working on it!
Eko S. Wibowo
http://about.me/ekowibowo Building my own company