[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Need some help with Luarocks please
- From: Geoff Smith <spammealot1@...>
- Date: Mon, 21 Dec 2015 18:33:23 +0000
Hi Thijs
Thanks for trying to help me solve this problem.
I forgot to mention I am using luarocks-2.2.3-win32
I tried reinstalling Luarocks with the command install /F /LV 5.1 /MSVC
the MSVC switch doesnt seem to expect a param to point at the specific VS compiler, and it didnt prompt me to pick one during the install process.
It seemed to reinstall OK though.
I then tried running the command shell from my VS 2013 IDE. I get
C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE>"C:\Program Files (x86)\LuaRocks"\luarocks install luafilesystem
Installing https://luarocks.org/luafilesystem-1.6.3-1.src.rock...
Using https://luarocks.org/luafilesystem-1.6.3-1.src.rock... switching to 'build' mode
cl /nologo /MD /O2 -c -Fosrc/lfs.obj -IC:/Program Files (x86)/Lua/5.1/include/ src/lfs.c lfs.c
link -dll -def:lfs.def -out:lfs.dll C:/Program Files (x86)/Lua/5.1/lua5.1.dll src/lfs.obj
Microsoft (R) Incremental Linker Version 12.00.31101.0
Copyright (C) Microsoft Corporation. All rights reserved.
C:\Program Files (x86)\Lua\5.1\lua5.1.dll : fatal error LNK1107: invalid or corrupt file: cannot read at 0x2B8
Error: Build error: Failed compiling module lfs.dll
Basically the same error. It seems to compile OK but I still get the failure at Link time.
Any further ideas how to solve this please ?
Geoff
________________________________________
From: lua-l-bounces@lists.lua.org <lua-l-bounces@lists.lua.org> on behalf of Thijs Schreijer <thijs@thijsschreijer.nl>
Sent: 21 December 2015 15:27
To: Lua mailing list
Subject: RE: Need some help with Luarocks please
> -----Original Message-----
> From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org] On
> Behalf Of Geoff Smith
> Sent: zondag 20 december 2015 20:30
> To: Lua mailing list
> Subject: Need some help with Luarocks please
>
> Hi
>
> I finally bit the bullet and thought I would try Luarocks, it was as I
> anticipated a painful and unpleasant experience. I would appreciate some
> help please
>
> My setup
> Windows 7. I have been using LuaForWindows previously without problems. I am
> targetting Lua 5.1 for my work.
> I have several Visual Studios on my PC so want to use VS for the
> compilations.
>
> Luarocks Installation details
>
> Will configure LuaRocks with the following paths:
> LuaRocks : C:\Program Files (x86)\LuaRocks
> Config file : C:\Program Files (x86)\LuaRocks\config-5.1.lua
> Rocktree : C:\Program Files (x86)\Lua\5.1\\systree
>
> Lua interpreter : C:\Program Files (x86)\Lua\5.1\\lua.exe
> binaries : C:\Program Files (x86)\Lua\5.1\
> libraries : C:\Program Files (x86)\Lua\5.1\
> includes : C:\Program Files (x86)\Lua\5.1\include\
> architecture: x86
> binary link : lua5.1.dll with runtime MSVCR80.dll
>
> Compiler : Microsoft, using; call "C:\Program Files (x86)\Microsoft
> Visual Studio 8\VC\vcvarsall.bat"
The last line suggests you use the latest RC.
>
> Luarocks Errors
>
> I tried with LFS
>
> luarocks install luafilesystem
> Setting environment for using Microsoft Visual Studio 2005 x86 tools.
> Installing https://luarocks.org/luafilesystem-1.6.3-1.src.rock...
> Using https://luarocks.org/luafilesystem-1.6.3-1.src.rock... switching to
> 'build' mode
> cl /nologo /MD /O2 -c -Fosrc/lfs.obj -IC:/Program Files
> (x86)/Lua/5.1/include/ src/lfs.c lfs.c
> link -dll -def:lfs.def -out:lfs.dll C:/Program Files
> (x86)/Lua/5.1/lua5.1.dll src/lfs.obj
> Microsoft (R) Incremental Linker Version 8.00.50727.762
> Copyright (C) Microsoft Corporation. All rights reserved.
>
> C:\Program Files (x86)\Lua\5.1\lua5.1.dll : fatal error LNK1107: invalid or
> corrupt file: cannot read at 0x2B8
>
> Error: Build error: Failed compiling module lfs.dll
>
> I am guessing there is some compiler version compatibility problem somewhere
> but no idea where. It is using VS 2005 to build stuff so I thought that
> should be OK and match the lua5.1.dll and MSVCR80.dll that LuaForWindows
> would have installed in the past.
>
> As an experiment I thought I would swap the Luarocks config to point at my
> most recent VS2013 compiler, but I couldnt figure out how I do that within
> Luarocks.
> Does anyone know what config file and line I need to change to switch
> compilers ?
When installing use the /MSVC switch. It configures to use the MS toolchain, but with choosing an explcit one.
Now you can run the Luarocks command from the VS commandshell, just start the commandshell for the VC version you want to use.
>
> Any ideas on what I need to do to fix this would be appreciated. Thanks
>
> P.S.
> Quoting the official Githb page for Installing on Windows
>
> Installing over "Lua for Windows"
> Need some information on this too....
Short answer; don't
> That isnt exactly helpful for us Luarocks newbs ! Would be good to fix
> that. hint hint !
>
> Regards Geoff
>
For windows check out;
1) https://github.com/Tieske/luawinmake
2) https://github.com/Tieske/luawinmulti
(when using VC, both to be used from the respective commandshell)
Hth
Thijs