[zeromq-dev] ZeroMQ for Android: Problem in building the Android APK
Sharon Ben-Asher
Sharon.Ben-Asher at avg.com
Wed Jul 18 14:55:00 CEST 2012
Forget to mention that I didn't know what you meant by "fix those lines"
How do I fix them?
-----Original Message-----
From: Victor Perron <victor at iso3103.net>
Subject: Re: [zeromq-dev] zeromq-dev Digest, Vol 55, Issue 14
To: ZeroMQ development list <zeromq-dev at lists.zeromq.org>
Message-ID:
<CAF9FejHK-9LOrwhHMrinkeaiq5AkwAcxijVV9K6X45j5d__EaQ at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi,
In that case it seems that you discovered something serious.
I took a look at it, and indeed the assign() symbol from std::string class seems undefined.
That would mean, Android does _not_ define such a function in its SDK.
Now, the proper way to get around this is a patch to Zeromq 3.x.
You'll have to fix those lines (my guess):
./src/ipc_listener.cpp:151: filename.assign(addr_);
./src/socket_base.cpp:331: options.last_endpoint.assign (addr_);
./src/socket_base.cpp:480: options.last_endpoint.assign (addr_);
./src/tcp_address.cpp:503: addr_str.assign (name_, delimiter -
name_);
./src/tcp_address.cpp:504: mask_str.assign (delimiter + 1);
./src/tcp_address.cpp:511: addr_str.assign (name_);
... and try to compile again. If there are no other undefined symbols, that should work.
That issue did not exist in ZeroMQ 2.2 though, that one didn't make an extensive use of std::string.
Keep me updated, we'll see for a pull request when I'll be less busy ;)
Best regards,
More information about the zeromq-dev
mailing list