I have the following issue:
I'm running Moho 12 on Win 10.
Moho 12 contains Lua version 5.2 x64 (I think.. as _VERSION returns 5.2 and running prebuild libraries with x32 gave me an dll error).
So I compiled the Lua-socket module linking it against version 5.2.4 x64.
I installed it to a dedicated folder and have set the LUA_PATH and LUA_CPATH variable in my CMD.
When I launch Lua in this CMD everything works.
When I now launch Moho from the same CMD and run the following commands from a tool in Moho it doesn't work:
Code: Select all
http = require("socket.http")
r, c, h = http.request{method = "GET", url = "http://www.google.com"}
I wonder if this is a conflict with the internal Lua version? What Patch version is included in Moho 12 and how can I get the exact version number and possibly the arch (x64/x32)? (_VERSION just gives me 5.2)Error loading module: /path/to/cpath/socket/core.dll: The module wasn't found.
If the Lua version matches: Is there any restriction in using third-party dlls in the Moho-Lua?
The LUA_PATH, LUA_CPATH and PATH look correct in Moho.