lua-users home
lua-l archive

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


On Thu, Mar 1, 2012 at 1:24 PM, Hisham <h@hisham.hm> wrote:
>  Oops, there's a "libraries" entry missing from build.modules.zlib in
> that rockspec. I'd upload a new version, but I suspect that just
> adding build.modules.zlib.libraries = "z" there (like I did for
> build.modules.gzip) won't work on Windows. What is the name of the
> .lib file for zlib on Windows? Please try editing the rockspec and use
> that name for the value of build.modules.zlib.libraries and
> build.modules.gzip.libraries, but without the .lib extension (LuaRocks
> auto-adds that extension).
>
> Once we figure out what's the correct incantation for Windows, I can
> add a build.platforms section in the rockspec to cope with the naming
> differences between Unix and Windows.
>
> -- Hisham
>

The pre-compiled DLL package I downloaded included two different
folders, each with a 32 and x64 variety. There was a .lib file in each
of these, "dllx64\zlibwapi.lib" (the same folder as the DLL) and
"staticx64\zlibstat.lib" (which I copied into the dllx64 folder). I
tried setting build.modules.(zlib/gzip).libraries to both of these
.lib files, but I just got the same "unresolved external symbol"
errors as before.

I'm using the DLL (and .libs) from this package:
http://www.winimage.com/zLibDll/zlib125dll.zip

And the header from this source package:
http://www.winimage.com/zLibDll/zlib125.zip

Here's a paste of the rockspec using zlibwapi.lib:
http://pastebin.com/unA1ArJX