[zeromq-dev] ZeroMQ for Android: Problem in building the Android APK
Sharon Ben-Asher
Sharon.Ben-Asher at avg.com
Sun Jul 15 14:38:09 CEST 2012
Hello,
I managed to compile the ZeroMQ + Java binding shared objects for ARM.
Thias is what file gives me on the two so files
libzmq.so.3.0.0: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked, not stripped
libjzmq.so: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked, not stripped
and of course, I also have zmq.jar
now I created a new Android project in Eclipse.
Following advice on the net:
* I placed the two so files udner libs/armeabi (renamed libzmq.so.3.0.0 into libzmq.so)
* I placed the jar file under libs, and added to the build path
* Took the tripping sample and called it from main activity
* Compile was successful. However, debugging the apk on a mobile device, I get the following error during System.loadLibrary in the ctor of ZMQ
file name: /data/data/com.avgmobilation.zeromq/lib/libjzmq.so
Cannot load library: reloc_library[1289]: 157 cannot locate '_ZNSs6assignEPKcj'...
and later on this gets translated into an UnsatisfiedLinkError
Even tried to build the apk on the linux machine where the so was compiled - same error.
Any help is appreciated...
Thanks,
Sharon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120715/e8ea844d/attachment.htm>
More information about the zeromq-dev
mailing list