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

Build Error: "/usr/lib/libpython2.7.so: file not recognized: File format not recognized" #16

Closed
jbaiter opened this issue Mar 12, 2012 · 1 comment

Comments

@jbaiter
Copy link

jbaiter commented Mar 12, 2012

I just checked out the latest version and ran the distribute.sh script on my Debian unstable, 64bit machine.
It runs fine for a while, up to the point where Biglink tries to create the libpymodules.so library. Then I get this:

± ./distribute.sh -m "libxml2 lxml sqlite3 openssl"
Entering in ARM enviromnent
Compiler found at /home/jojo/.android/ndk//toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin//arm-linux-androideabi-gcc
Biglink create /home/jojo/coding/python-for-android/build/libs/libpymodules.so library
Biglink arguments:
 /home/jojo/coding/python-for-android/build/objects/etree.so.o
 /home/jojo/coding/python-for-android/build/objects/objectify.so.o
 -L/home/jojo/coding/python-for-android/build/openssl/openssl-1.0.0e/
 -L/home/jojo/coding/python-for-android/build/libxslt/libxslt-1.1.26/libxslt/.libs
 -L/home/jojo/coding/python-for-android/build/libxslt/libxslt-1.1.26/libexslt/.libs
 -L/home/jojo/coding/python-for-android/build/libxml2/libxml2-2.7.8/.libs
 -L/usr/lib
 -L/home/jojo/coding/python-for-android/build/python-install/lib
 -lxslt
 -lexslt
 -lxml2
 -lz
 -lm
 -lpython2.7
 /usr/lib/libpython2.7.so: file not recognized: File format not recognized
collect2: ld returned 1 exit status

file has this to say about libpython2.7.so.1.0 (which libpython2.7.so is a symlink to):

± file /usr/lib/libpython2.7.so.1.0 
/usr/lib/libpython2.7.so.1.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=0x0f350cebf75fe8907780aef8e9136b011a67a9af, stripped
@tito
Copy link
Member

tito commented Apr 12, 2012

You must have a python intrepreter at least (and Kivy currently). Add it at the end of the -m, and it will works. Reopen if not

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

2 participants