ZeroMQ for x86 Android emulator

I create zeroMQ in this instruction . I create a Xamarin project for Android, add clrzmq from the nuget package and put the libzmq.so file in the folders
libs-> armeabi libs-> armeabi-v7a libs-> x 86

When I debug the application on a real device. It seems to work. But when I launch the application on Android emulatior x86 (Genymotion). I caught a DllNotFoundException and see the message in the device log libzmq not found.

I am trying to build the x86 library as

- host = i686-linux-android

How can I build zeromq for android-x86 architecture?

+4
source share
2 answers

, .

DllNotFoundException

NDK - , , .

Edit:

, ZeroMQ Android, , , Ubuntu, , , :

623 pwd 624 cd zeromq-2.1.11/ 625 make clean 626 ./configure --target=x86 --host=x86 LDFLAGS="-L/opt/android-root/lib" CPPFLAGS="-I/opt/android-root/include" --prefix=/opt/android-root 627 ./configure LDFLAGS="-L/opt/android-root/lib" CPPFLAGS="-I/opt/android-root/include" --prefix=/opt/android-root 628 ./configure --target=x86 LDFLAGS="-L/opt/android-root/lib" CPPFLAGS="-I/opt/android-root/include" --prefix=/opt/android-root 629 which diff 630 cp config.status config.status.x86 631 ./configure LDFLAGS="-L/opt/android-root/lib" CPPFLAGS="-I/opt/android-root/include" --prefix=/opt/android-root 632 diff config.status config.status.x86 633 ./configure --target=x86 --host=x86 LDFLAGS="-L/opt/android-root/lib" CPPFLAGS="-I/opt/android-root/include" --prefix=/opt/android-root 634 ./configure --host=x86 LDFLAGS="-L/opt/android-root/lib" CPPFLAGS="-I/opt/android-root/include" --prefix=/opt/android-root 635 ./configure --target=x86 LDFLAGS="-L/opt/android-root/lib" CPPFLAGS="-I/opt/android-root/include" --prefix=/opt/android-root 636 make 637 sudo make install

1174 sudo android-ndk-r5b/build/tools/make-standalone-toolchain.sh --platform=android-5 --install-dir=/opt/android-toolchain 1175 cd /opt 1176 ls 1177 ls -l 1178 ls 1179 export PATH=/opt/android-toolchain/bin:$PATH 1180 cd 1181 cd e2fsprogs/ 1182 ./configure -target=arm-linux-androideabi -host=arm-linux-androideabi -prefix=/opt/android-root 1183 make clean 1184 make 1185 make clean 1186 cd lib 1187 cd uuid/ 1188 make 1189 sudo make install 1190 cd 1191 cd zeromq-2.1.11/ 1192 ./configure -target=arm-linux-androideabi -host=arm-linux-androideabi LDFLAGS="-L/opt/android-root/lib" CPPFLAGS="-I/opt/android-root/include" -prefix=/opt/android-root 1193 make clean 1194 make 1195 sudo make install

, NDK r5b ZeroMQ 2.1.11. , UUID ZeroMQ 2, , ZeroMQ 3.

, x86 , , .

,

+5

Source: https://habr.com/ru/post/1536120/


All Articles