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

Ghislain PUTOIS ghpu at infonie.fr
Thu Nov 11 10:51:05 CET 2010

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


More information about the zeromq-dev mailing list