pelya / android-shmem

System V shared memory emulation on Android, using ashmem. That includes shmget, shmat, shmdt and shmctl functions.
BSD 3-Clause "New" or "Revised" License
200 stars 43 forks source link

how to make it work in chrooted debian in android #5

Open jonny789pm opened 7 years ago

jonny789pm commented 7 years ago

I have chrooted debian in android marshmallow (snapdragon 650 [64bi]t). I cloned your repo and run ndk-build. It created libandroid-shmem.so in lib and obj directories . I copied from armv8-a folder to /lib directory of chrooted debian. It asked for liblog.so . So I copied from android lib directory. Then It complained about iceweasel: error while loading shared libraries: /usr/lib/aarch64-linux-gnu/libc.so: invalid ELF header

Details of file /lib/libandroid-shmem.so shows /lib/libandroid-shmem.so: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, BuildID[sha1]=5ad4582c76effbe27a6688369ad979fea5dfac2a, not stripped