[zeromq-dev] ZeroMQ for Android: Problem in building the Android APK

Victor Perron victor at iso3103.net
Mon Jul 16 08:29:59 CEST 2012


Hello,

Did you properly follow the directions stated at
http://www.zeromq.org/build:android ?
According to those, you shouldn't even have generated two binaries in the
first place.
Renaming libzmq.so.3.0.0 into libzmq.so has also almost no chance to work
the way you want it to work; it does not fix the actual soname which is
hardcoded to "libzmq.so.3.0.0" in both libs at link time.

I'd advise you to follow the steps at that url, and report any further
issue you'd have !

Best regards,

On Sun, Jul 15, 2012 at 2:38 PM, Sharon Ben-Asher
<Sharon.Ben-Asher at avg.com>wrote:

>  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****
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>


-- 
Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120716/7f00e9dd/attachment.htm>


More information about the zeromq-dev mailing list