How to integrate ZeroMQ Lua binding with Corona SDK?

  1. Loaded the libzeromq.a file (fat binary) into the Corona SDK plugin Xcode project under “Link Binary With Libraries” in the Build Phases panel of the target.
  2. Included the “zeromq_ios.h” and “zeromq_simulator.h” in the"Copy Files" panel
  3. Did a successful release build of the project resulting in a libplugin_library.a file for both iOS and Simulator.

It appears that I have the binary for zeromq available as a plugin.  Can I write the rest of this in Lua, or do I need to do some more c code to create the bindings? 

https://github.com/moteus/lzmq

This distro says that it has a C as well as an FFI binding for zmq and Lua.  I am struggling to understand what parts of this distro I need to use and how Xcode handles things like cmake files.  It looks like a complete binding is available if I can figure out how it works and how to make a plugin out of it.

Yeah, from this point on its just figuring out which methods you need to implement in the plugin and creating custom functions that communicate with the lua code.

I would recommend just looking at the sample code and figuring out how it works.

Great.  Thanks for the encouragement.  That’s what I’ve begun to do.  Let you know how it goes. To get this far I’ve just done a few modifications to existing distros, so this will be a bit more of a challenge.   I’m usually working on the UI end of these things.

There is a CMake file that looks promising here:

https://github.com/moteus/lzmq

Is there an straightforward way to make a plugin with CMake?

There are some posts about CMake to Xcode, but not to a Corona SDK plugin