brimworks / lua-zlib

Simple streaming interface to zlib for Lua.
273 stars 111 forks source link

Issue when building with Windows #64

Open saspivey98 opened 1 year ago

saspivey98 commented 1 year ago

Building lua-zlib on windows 10

Building zlib using cmake on VS dev image

using luarocks to install image

I believe the issue lies withing the rockspec. Looking at the 1.2-2.rockspec image

When replacing lines 37-41 of the rockspec with

platforms = { windows = { variables = { LUA_LIBRARIES = "$(LUA_LIBDIR)/$(LUALIB)" }}},

it fixes the build issue on windows. image

I am unsure if this is an issue from my end (or even the correct fix), but wanted to mention I noticed this when building.