[zeromq-dev] ZeroMQ for Android: Problem in building the Android APK
Victor Perron
victor at iso3103.net
Thu Jul 19 17:32:30 CEST 2012
Hello there,
I updated the wiki about this. It should work fine with ZeroMQ both 2.2 and
3.x now; I have tested them on my SGSIII, and everything seems OK.
The new method (that was actually used in my build scripts) statically
embeds the missing definitions from, in particular, libstdc++ into
libjzmq.so.
That inflates the binary size a lot (2.4 or 2.7 MBs unstripped for 2.2 and
3.x) but this can be adressed by specifying -s or running
arm-linux-androideabi-strip --strip-all on the binary. The resulting
library still works and has < 650 Kb footprint.
Please report any further issue.
Regards,
On Thu, Jul 19, 2012 at 12:31 PM, Victor Perron <victor at iso3103.net> wrote:
> Hello,
>
> I found the issue. I mismatched a few command line switches when writing
> the wiki page; I suspect I got confused with all the configuration tweaks !
> I'll update the wiki properly in the day, as soon as I tested a few more
> things. It may also help for libzmq 3.x, though that's not for sure.
>
> I uploaded a compiled version of the library (zeromq2.2 + jzmq master) on
> a file hosting service, could you report if it works ?
> Link : http://www9.zippyshare.com/v/83273893/file.html
>
> Just has been tested on a SGSIII, communicates with a PC via TCP transport
> (with proper android.permission.INTERNET)
>
>
> On Thu, Jul 19, 2012 at 10:03 AM, Victor Perron <victor at iso3103.net>wrote:
>
>> This is awkward. O have been able to run it successfully on mine. I'll
>> definitely take a look.
>>
>>
>> On Thu, Jul 19, 2012 at 8:53 AM, Sharon Ben-Asher <
>> Sharon.Ben-Asher at avg.com> wrote:
>>
>>> Hi,
>>>
>>> Today, I tried to work with v2.2.0:
>>> followed the instructions as close as I can, the build was successful,
>>> as far as I could see.
>>> However, when running in the device, encountered this problem:
>>> Cannot load library: reloc_library[1289]: 157 cannot locate
>>> '_ZNSt9basic_iosIcSt11char_traitsIcEE4initEPSt15basic_streambufIcS1_E'...
>>>
>>> Thanks,
>>> Sharon.
>>> _______________________________________________
>>> zeromq-dev mailing list
>>> zeromq-dev at lists.zeromq.org
>>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>>
>>
>>
>>
>> --
>> Victor
>>
>>
>
>
> --
> Victor
>
>
--
Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120719/49be8ce5/attachment.htm>
More information about the zeromq-dev
mailing list