Hi. Thank to Rotchet2's help, i figured out how make Lua-Socket works with Eluna on Ubuntu 14.04 64 bits. I think it will work on a 32 bits version, but you have to correct paths. (And also dynamic libraries)
First, you'll have to add this line "#define LUA_USE_LINUX"
DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS"
Of course, you could do it in Cmakelist, you do as you want to do.
Now we have to link dl lib to your installation of Eluna
At the the end of the file,
+set (CMAKE_CXX_LINK_EXECUTABLE "/usr/lib/x86_64-linux-gnu/libdl.so -ldl")
+target_link_libraries(lualib "dl" "/usr/lib/x86_64-linux-gnu/libdl.so")
+set_target_properties(lualib PROPERTIES COMPILE_FLAGS "-ldl")
(Check if paths are correct, if it isn't, fix it.)
As it is now, you have to compile.
It worked for me.
Now about Lua-Socket,
You have to run
Now, you have to try it in Eluna :
$sudo apt-get install lua-socket
Be careful with lua-socket, we don't have multi-threading in lua, so you'll have to use coroutines.
print("[INFO]: Load Sockets")
package.path = "/usr/share/lua/5.2/?.lua;"..package.path
package.cpath = "/usr/lib/x86_64-linux-gnu/lua/5.2/?.so"..package.cpath
socket = require("socket")