[zeromq-dev] zeromq-dev Digest, Vol 55, Issue 14
Sharon Ben-Asher
Sharon.Ben-Asher at avg.com
Tue Jul 17 10:09:39 CEST 2012
Hi Victor,
I did follow the instructions in the Build Android wiki.
I don't know what you mean by "you shouldn't even have generated two binaries in the first place " - I have the *exact* directory tree that is described in that page for ZeroMQ 3.x.
The listed directory tree shows two shared object files: libzmq and libjzmq.
The instructions stop after production of zmq.jar, there are no instructions on how to embed the product into an APK, which .so files to put there, etc.
I tried to put only libjzmq.so in the apk (under libs/armeabi) with the same error.
I even enlisted our expert APK developer, he tried several configurations and file placements, with no avail.
I would like to know which steps you think I did not follow, or otherwise what am I missing (no sarcasm intended, I really am at a loss here)
Thanks,
Sharon.
-----Original Message-----
From: Victor Perron <victor at iso3103.net>
Subject: Re: [zeromq-dev] ZeroMQ for Android: Problem in building the
Android APK
To: ZeroMQ development list <zeromq-dev at lists.zeromq.org>
Message-ID:
<CAF9FejFv=yNcRnHdUA7dOhKuNXxQ8Bjrpzx=bZ_EqtLm-QF5Mg at mail.gmail.com>
Content-Type: text/plain; charset="windows-1252"
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: http://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120716/7f00e9dd/attachment-0001.htm
------------------------------
_______________________________________________
zeromq-dev mailing list
zeromq-dev at lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev
End of zeromq-dev Digest, Vol 55, Issue 14
******************************************
More information about the zeromq-dev
mailing list