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

Unable to build python-for-android #34

Closed
edwardchuajh opened this issue May 6, 2012 · 13 comments
Closed

Unable to build python-for-android #34

edwardchuajh opened this issue May 6, 2012 · 13 comments

Comments

@edwardchuajh
Copy link

Hi,

After running distribute.sh -m "kivy"

I get the error

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

In config.log I see this:

ccache: FATAL: /home/edwardchuajh/python-for-android/android/android-ndk-r7/tool
chains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin//arm-linux-androideabi
-gcc: execv returned (No such file or directory)

I tried this on Ubuntu 12.04 and 11.10, same results.

Using NDK r7 and SDK API 14

@tshirtman
Copy link
Member

Hm, do you have a valid compiler? try to install the build-essential package.

@edwardchuajh
Copy link
Author

Hi, yes, I have the build-essential package.

Ran the following command as recommended on prereq webpage

sudo apt-get install build-essential patch git-core ccache cython ant

@edwardchuajh
Copy link
Author

Hi,

Can someone help with this? I checked and the file is definitely there.

Could it be a typo error in the double slash (//arm-linux-androideabi) in the line below?

ccache: FATAL: /home/edwardchuajh/python-for-android/android/android-ndk-r7/tool
chains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin//arm-linux-androideabi

@LittleBigBrain
Copy link

I get the same error after the repo update to python 2.7.3

@tshirtman
Copy link
Member

I reverted the update to 2.7.3 until further testing, please update.

@LittleBigBrain
Copy link

solved thanks!

@edwardchuajh
Copy link
Author

still same error :(

ccache: FATAL: /host/android/android-ndk-r7/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc: execv returned (No such file or directory)

@edwardchuajh
Copy link
Author

LittleBigBrain, may I know how you resolved your error?

@tshirtman
Copy link
Member

Oh i got this one too, i suppose you are on 64 bit ? if so installing ia64-libs and libc6-dev-i386 should help.

edit : yes you are, just checked your log, i had the issue just today so i had to search the web to find an answer, and forgot you had the same issue. I'll update the doc.

@edwardchuajh
Copy link
Author

Hi, thanks for the response. are you on Ubuntu? I am running 12.04 now, and managed to install libc6-dev-i386 but can't seem to find the package ia64-libs

@tshirtman
Copy link
Member

doh, i meant ia32-libs sorry

and yeah i'm on 12.04

@edwardchuajh
Copy link
Author

thanks! figured that out, installing it now, fingers crossed

@edwardchuajh
Copy link
Author

just got my apk onto the phone and it's working great now. thanks!

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