Where can I look to see how to use thecompiled ZeroMQ framework and 0mq Lua bindings with Corona SDK?
Any thoughts would be much appreciated.
Thanks,
–Scot
Where can I look to see how to use thecompiled ZeroMQ framework and 0mq Lua bindings with Corona SDK?
Any thoughts would be much appreciated.
Thanks,
–Scot
Hello ssutherland!
I make and sell plugins for Corona Enterprise. You can find more info here:
http://forums.coronalabs.com/topic/35861-custom-ios-enterprise-plugins-for-sale-cheap/
If you’re interested please contact me at [deleurapps @ gmail . com]
While I appreciate your offer, getting the project to work is actually less important to us than understanding how to make it work. We are researchers and need to be able to explain every aspect of what we do. So any help that can be offered about how to build the Lua binding we need for ZeroMQ would be much appreciated.
The binding is available from the ZeroMQ community, but it isn’t clear yet for us how source code can be implemented in an Xcode project.
Thanks,
–Scot
Discovered that the Lua binding makes use of FFI, which gives Lua access to dynamic libraries. Dynamic libs are not available on IOS. Beginning to think that we will need to implement our own binding using the plugin structure of Corona SDK.
Yeah, so this is how enterprise plugins basically work:
You have a native library/ framework in Objective -C
You make a “plugin” that allows the framework to connect to lua
Lua code calls the functions that are made in the plugin.
So it sounds like lua bindings is a type of plugin, but it is not optimized for objective c/corona
Thanks deleurapps. I think we will have to write the plugin, perhaps we can use the binding as a model. If we use a universal binary, will IOS decide which library to implement?
I would have to look at the binary specifically, but yes I believe so.
I made a universal binary with lipo. The fat binary is there. There is no include directory like there was for the original two binaries I merged. Do I need to include both of the header files from the original binaries to use the universal binary?
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
Hello ssutherland!
I make and sell plugins for Corona Enterprise. You can find more info here:
http://forums.coronalabs.com/topic/35861-custom-ios-enterprise-plugins-for-sale-cheap/
If you’re interested please contact me at [deleurapps @ gmail . com]
While I appreciate your offer, getting the project to work is actually less important to us than understanding how to make it work. We are researchers and need to be able to explain every aspect of what we do. So any help that can be offered about how to build the Lua binding we need for ZeroMQ would be much appreciated.
The binding is available from the ZeroMQ community, but it isn’t clear yet for us how source code can be implemented in an Xcode project.
Thanks,
–Scot
Discovered that the Lua binding makes use of FFI, which gives Lua access to dynamic libraries. Dynamic libs are not available on IOS. Beginning to think that we will need to implement our own binding using the plugin structure of Corona SDK.
Yeah, so this is how enterprise plugins basically work:
You have a native library/ framework in Objective -C
You make a “plugin” that allows the framework to connect to lua
Lua code calls the functions that are made in the plugin.
So it sounds like lua bindings is a type of plugin, but it is not optimized for objective c/corona
Thanks deleurapps. I think we will have to write the plugin, perhaps we can use the binding as a model. If we use a universal binary, will IOS decide which library to implement?
I would have to look at the binary specifically, but yes I believe so.
I made a universal binary with lipo. The fat binary is there. There is no include directory like there was for the original two binaries I merged. Do I need to include both of the header files from the original binaries to use the universal binary?