Attaching external C/C++ libs with lua bindings
Posted: Tue Jan 19, 2010 7:30 am
Hello,
I was wondering what the best way it is to attach external C/C++ libraries which already have lua bindings made for it in order for it to be exposed to the love lua interpreter. Would it be best to add it to love as a "library" (like how luasocket is implemented) or as a module?
My end goal I'm guessing would be to compile-in the actual binding code into the love runtime and have it access the dll dynamically, but does this binding code need anything special inside to interface with? I only know a tiny bit of C/C++ code, enough to hack around a few things and I'm familiar with building code the "unix" way. I could be over-complicating things and if it's as easy as just adding the binding code to love, linking the external lib, and hit compile, please tell me!
Thanks all
I was wondering what the best way it is to attach external C/C++ libraries which already have lua bindings made for it in order for it to be exposed to the love lua interpreter. Would it be best to add it to love as a "library" (like how luasocket is implemented) or as a module?
My end goal I'm guessing would be to compile-in the actual binding code into the love runtime and have it access the dll dynamically, but does this binding code need anything special inside to interface with? I only know a tiny bit of C/C++ code, enough to hack around a few things and I'm familiar with building code the "unix" way. I could be over-complicating things and if it's as easy as just adding the binding code to love, linking the external lib, and hit compile, please tell me!
Thanks all