Closed jbmlaird closed 6 years ago
Armeiabi-v7a refers to the ARM microprocessors, which are the microprocessors running on most Android devices. You want X86 which are Intel microprocessors (most microprocessors running desktop/laptop computers and some android devices).
So instead of using libcrystax and libpython3.5 from crystax's armeabi folders, you have to search for and use those files compiled for intel's x86 microprocessors. Also, when you compile libpybridge, you'll have to explicitly say that you want a x86 target.
Thanks.
For future readers, you need to add the following to your Application.mk
APP_ABI := armeabi-v7a x86
(or other relevant platforms)
I ran the ndk-build to create
libcrystax.so
,libpybridge.so
andlibpython3.5m.so
in mysrc/main/libs/armeiabi-v7a
however when trying to run the app on a x86 emulator it cannot findlibpybridge.so
. I copied over thearmeabi-v7a
libpybridge.so
to anx86
folder and then get anunexpected e_machine: 40
error presumably because it's the wrong compilation. How do I get a x86 copy oflibpybridge.so
and other versions?