lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 8/26/11, Stefan Reich <stefan.reich.maker.of.eye@googlemail.com> wrote:
> Hey folks.
>
> Q: Can I somehow make LuaSocket work with LuaJIT? I'm having some
> trouble there. The lack of binaries (I will never understand that) is
> making stuff difficult...
>
> I built LuaJIT under mingw
> (http://sourceforge.net/p/safelua/wiki/LuaJIT%20binaries/) and then
> put in LuaSocket (the binary from
> http://luaforge.net/frs/download.php/2666/luasocket-2.0.2-lua-5.1.2-Win32-vc8.zip).
> I copied the lua, socket and mime dirs to the LuaJIT dir.
>
> Then, when I start LuaJIT and say require "socket" - it just crashes.
>
> Does LuaSocket have to be built with mingw for this to work? Why are
> there no binaries for these things? Uaaarrgh. :|
>
> Stefan
>
>

I jumped through those hoops recently. Attached is the makefile I
used; I just changed one I found through Google. Copy it to
luasocket-2.0.2/src and run make-mingw32 in the command line in that
directory.

You'll need to edit the paths in the variables CC, CINC, LUAINC and LUADLL.

Attachment: makefile
Description: Binary data