Page 1 of 1
Help im a complete noob
Posted: Thu Jan 15, 2015 7:18 pm
by REGFly
This is basically my first day using LOVE and i heard you can install native lua libraries in LOVE. The problem is i dont know know how and searching for the solution on google with the keyword love dosent really help. What library i want to install? I want to install a librs-232-master library because i heard that its a serial port library wich i can use with arduino. Thanks in advance
Re: Help im a complete noob
Posted: Thu Jan 15, 2015 8:56 pm
by Germanunkol
I've never used those libraries, but someone on the Lua mailing list wrote, that you can simply download the prebuilt binaries from the github repo. Assuming you're on windoze:
http://lua-users.org/lists/lua-l/2014-01/msg00311.html (follow the first link under "Windows")
There's also an example file in that directory. Try running that from within the same directory where the .dll is? Or you need to use the Lua function "package.loadlib" to load the library.
Alternativly, you can install the library with luarocks:
http://luarocks.org/en/Download
(Use it to install the package luars232).
Then I assume you can just call
at the beginning of your file and it should get loaded (this is how to do it in Linux, anyways - I assume with LuaRocks it works the same on Windows, though).
Also, welcome to the forums!