The problem is that LuaSocket does not use the "builtin" build type,
it uses "make", so LuaRocks is delegating the build to make. I thought
of having the "make" build type for mingw use the Unix Makefile, but
decided against it, as I don't know how useful this would be in
practice.

LuaSocket could probably get a new rockspec that uses the "builtin"
build type, and then it would compile cleanly with mingw. Any
volunteers? :-)

--
Fabio Mascarenhas


On Tue, Jan 18, 2011 at 3:04 PM, Oisín <[email protected]> wrote:
> After a long struggle to install LuaSocket (the binaries needed to be
> recompiled for LuaJIT on my Windows machine) using MinGW, I gave up and
> built it from a tarball, manually editing the makefile.
>
> Is there any documentation on how to configure LR for MinGW, so that the
> correct paths/etc are picked up? After re-installing LR with the /MW switch
> the output of "luarocks build luasocket" ends as follows:
>
> ####
> Extracting  luasocket-2.0.2\test\testsrvr.lua
> Extracting  luasocket-2.0.2\test\testsupport.lua
>
> Everything is Ok
>
> Folders: 6
> Files: 89
> Size:       477216
> Compressed: 552960
> mingw32-make: Makefile.win: No such file or directory
> mingw32-make: *** No rule to make target `Makefile.win'.  Stop.
>
> Error: Build error: Failed building.
> ####
>
> I can provide the awful hand-edited makefile that worked for my MinGW
> install, building DLLs for LuaJIT, if it's of any use? Or is there a good
> way to automatically configure it that I didn't know about (highly likely)?
>
> Oisín
>
> _______________________________________________
> Luarocks-developers mailing list
> [email protected]
> http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers
>
>

_______________________________________________
Luarocks-developers mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers

Reply via email to