nullc0der / python-for-android

Automatically exported from code.google.com/p/python-for-android
Apache License 2.0
0 stars 0 forks source link

cdll.LoadLibray - not able to load externally compiled lib #83

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. from ctypes import cdll
my_test_lib = cdll.LoadLibrary('/system/lib/libmei.so')
2.
3.

What is the expected output? What do you see instead?
File "libmei_test.py", line 18, in main
    my_test_lib = ctypes.cdll.LoadLibrary('/system/lib/libmei.so')
  File "/home/manuel/AptanaStudio3Workspace/python-for-android/python-build/output/usr/lib/python2.6/ctypes/__init__.py", line 440, in LoadLibrary
  File "/home/manuel/AptanaStudio3Workspace/python-for-android/python-build/output/usr/lib/python2.6/ctypes/__init__.py", line 362, in __init__
  File "/home/manuel/AptanaStudio3Workspace/python-for-android/python-build/output/usr/lib/python2.6/ctypes/__init__.py", line 15, in __dlopen
OSError: dlopen failed: "/system/lib/libmei.so" has unexpected e_machine: 3

What version of the product are you using? On what operating system?
PythonForAndroid_r6

Please provide any additional information below.

Original issue reported on code.google.com by claudiog...@gmail.com on 22 Jul 2014 at 6:23