[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Building luafilesystem with Rocks 4.3 Windows
- From: "Fabio Mascarenhas" <mascarenhas@...>
- Date: Fri, 28 Mar 2008 14:47:04 -0300
The problem right now is that LuaRocks 0.4.3 includes a Lua 5.1.2 that
uses the VC98 CRT, and this causes problems with LuaFileSystem
compiled with the VC2005 CRT. LuaRocks 0.5 should be released shortly,
and it's updated to include Lua 5.1.3 with the VC2005 CRT, so
LuaFileSystem should build just fine (apart from the bogus security
warnings, of course).
On Fri, Mar 28, 2008 at 1:29 PM, RJP Computing <email@example.com> wrote:
> On Fri, Mar 28, 2008 at 11:09 AM, Ralph Hempel
> <firstname.lastname@example.org> wrote:
> > Just a quick note to the luafilesystem team re building
> > under Rocks 4.3 running on Windows. I'm getting the
> > latest luafilesystem 1.4.0-1 from the repository, building
> > it locally, and installing it.
> > I'm assuming Visual Studio Express 2005 is the assumed
> > build environment for luafilesystem under Windows
> > On a clean Windows 2000 machine I did a clean install of
> > Visual Studio Express 2005 and then Rocks 4.3
> > Next, I started with the install of luafilesystem.
> > luarocks install luafilesystem
> > The source is retrieved well, but the build failed for a
> > number of reasons, mainly to do with how Rocks sets up
> > environment variables.
> > I always leave my environment as clean as possible and run a
> > batch file to set a locally scoped environment for different
> > types of development.
> > Here are the changes I needed to make to the luarocks.bat file
> > to get the luafilesystem to compile and link. Note that without
> > the extra environment vars the compiler would sputter and complain
> > about how the nice portable lfs source was non-compliant with
> > Microsoft's strict security checks :-)
> > @ECHO OFF
> > SETLOCAL
> > SET
> > SET VC8_PATH=C:\Program Files\Microsoft Visual Studio 8
> > SET INCLUDE=C:\Program Files\Microsoft Visual Studio 8\VC\include
> > SET LIB=%VC8_PATH%\VC\lib;
> > SET LIBPATH=%VC8_PATH%\VC\lib;
> > SET CL= /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE
> > SET
> > "lua5.1" "C:\LuaRocks\0.4.3\luarocks.lua" %*
> > ENDLOCAL
> > I also had to make a copy of the lua5.1.dll in
> > c:\lua5.1\lua5.1.dll
> > Because that seems to be where the luafilesystem makefile wants it to
> > be, and even if I had set the LUA_PATHLIB before running make it's not
> > respected.
> > Ralph
> > PS: Is this the right spot to report these issues?
> Thanks for bringing this up. I have the exact problem and I posted on the
> LuaRocks mailing list and didn't get any responses. I have the same kind of
> clean system as you describe and I wanted the Lua lib to be used from the
> default that ships with LuaRocks. Any help on this subject would be great.