[zeromq-dev] [PATCH] Preliminary Android support for trunk ZeroMQ

Pieter Hintjens ph at imatix.com
Thu Nov 11 16:49:03 CET 2010


Ghislain,

I think it's very exciting that 0MQ runs on Android, with these
patches.  It would be great if you could create a wiki page on
www.zeromq.org/community, e.g. in http://www.zeromq.org/distro:_start,
for Android.  This way people can find your patch more easily.

-Pieter

On Thu, Nov 11, 2010 at 10:51 AM, Ghislain PUTOIS <ghpu at infonie.fr> wrote:
> On lun., 2010-11-08 at 12:09 +0100, Martin Lucina wrote:
>> sustrik at 250bpm.com said:
>> > Mato,
>> > > Indeed, that would be my greatest concern. We can't easily accept patches
>> > > which add "Yet another build system", it creates too much of a maintenance
>> > > overhead.
>> > >
>> > I'va asked Ghislain and the reason is that he's not familiar with
>> > autotools. Still, the patch is perfectly valid.
>> >
>> > So the only question is how does autotools behave on Android. Would it
>> > define ZMQ_HAVE_ANDROID? Or does it treat Android as a Linux flavour?
>>
>> No idea here, sorry.
>
> Android is mostly a Linux flavour, which unfortunately still requires a
> non standard toolchain, called the NDK. This toolchain defines the
> ANDROID variable, so I hadn't proposed a ZMQ_HAVE_ANDROID variable.
>
> The only difference I have found with a standard linux platform is in
> the incomplete support of the POSIX functions for optimizations, so I
> commented them out in my proposed patch.
>
> The specific toolchain also requires a specific directory structure.
> Therefore, I don't think the specific support for a complete build of an
> Android flavour should be integrated in the zmq trunk. However, it would
> be nice to have the trunk modified so that the source files could be
> directly copied into a NDK project.
>
> I just submitted my attempts so that other people know how I got it
> working on an Android phone, if they want ot use zmq for their own
> project.
>
> --
> Ghislain
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>



More information about the zeromq-dev mailing list