[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Compiling LuaFileSystem on Windows 10
- From: Russell Haley <russ.haley@...>
- Date: Thu, 11 Jan 2018 21:57:08 -0800
On Tue, Jan 9, 2018 at 9:13 AM, Gisle Vanem <gvanem@yahoo.no> wrote:
> Russell Haley wrote:
>
>> link -dll -def:lfs.def -out:lfs.dll C:/Program Files
>> (x86)/PUC-Lua/5.3.4/x86/lua53.dll src/lfs.obj
>> Microsoft (R) Incremental Linker Version 14.12.25831.0
>
> Should perhaps be some "" around that long lua53.dll file-name.
>
>> C:\Users\russh\Git\luafilesystem>cl /nologo /MD /O2 -c -Fosrc/lfs.obj
>> -I"C:\Program Files (x86)\PUC-Lua\5.3.4\include" src\lfs.c
>> lfs.c
>>
>> C:\Users\russh\Git\luafilesystem>link -dll -def:lfs.def -out:lfs.dll
>> "C:\Program Files (x86)\PUC-Lua\5.3.4\x86\lua53.lib" src/lfs.obj
>
> That's what I mean.
>
>> Creating library lfs.lib and object lfs.exp
>> lfs.obj : error LNK2019: unresolved external symbol _lua_gettop
>
> Since lua53.lib is an import-library for lua53.dll, add
> a '-DLUA_BUILD_AS_DLL' to your 'cl' cmd-line.
>
> --
> --gv
>
Hi guys, thanks for all your help. I got my installer working
correclty and Luarocks now picks up the installation directory
auto-magically and finds the lua53.lib file.
Cheers,
Russ
---
LuaRocks 3.0.x installer.
========================
== Checking system... ==
========================
Admin privileges available for installing
Looking for Lua interpreter
checking C:\Python36\Scripts
checking C:\Python36
checking C:\Windows\system32
checking C:\Windows
checking C:\Windows\System32\Wbem
checking C:\Windows\System32\WindowsPowerShell\v1.0
checking C:\Program Files\PuTTY
checking C:\Program Files\dotnet
checking C:\Program Files\Microsoft SQL Server\130\Tools\Binn
checking C:\ProgramData\chocolatey
checking C:\Program Files\Git\cmd
checking C:\Program Files\CMake
checking C:\Program Files (x86)\LuaRocks
checking C:\Program Files (x86)\PUC-Lua\5.3
Found lua.exe, testing it...
Interpreter found, now looking for link libraries...
checking for C:\Program Files (x86)\PUC-Lua\5.3\lua5.3.lib
checking for C:\Program Files (x86)\PUC-Lua\5.3\lua53.lib
checking for C:\Program Files (x86)\PUC-Lua\5.3\lua5.3.dll
checking for C:\Program Files (x86)\PUC-Lua\5.3\lua53.dll
checking for C:\Program Files (x86)\PUC-Lua\5.3\liblua.dll.a
checking for C:\Program Files (x86)\PUC-Lua\5.3\lib\lua5.3.lib
checking for C:\Program Files (x86)\PUC-Lua\5.3\lib\lua53.lib
checking for C:\Program Files (x86)\PUC-Lua\5.3\lib\lua5.3.dll
checking for C:\Program Files (x86)\PUC-Lua\5.3\lib\lua53.dll
checking for C:\Program Files (x86)\PUC-Lua\5.3\lib\liblua.dll.a
checking for C:\Program Files (x86)\PUC-Lua\5.3\bin\lua5.3.lib
checking for C:\Program Files (x86)\PUC-Lua\5.3\bin\lua53.lib
Found lua53.lib
Link library found, now looking for headers...
checking for C:\Program Files (x86)\PUC-Lua\5.3\include\lua\5.3\lua.h
checking for C:\Program Files (x86)\PUC-Lua\5.3\include\lua53\lua.h
checking for C:\Program Files (x86)\PUC-Lua\5.3\include\lua5.3\lua.h
checking for C:\Program Files (x86)\PUC-Lua\5.3\include\lua.h
Found lua.h
Headers found, checking runtime to use...
C:\Program Files (x86)\PUC-Lua\5.3\bin\lua.exe uses
VCRUNTIME140.DLL as runtime
Runtime check completed.
Looking for Microsoft toolchain matching runtime VCRUNTIME140 and
architecture x86
checking: HKLM\Software\Microsoft\VisualStudio\14.0\Setup\VC
checking: HKLM\Software\Microsoft\VCExpress\14.0\Setup\VS
Cannot auto-detect Windows SDK version from VCRUNTIME140
==========================
== System check results ==
==========================
Will configure LuaRocks with the following paths:
LuaRocks : C:\Program Files (x86)\LuaRocks
Config file : C:\Program Files (x86)\LuaRocks\config-5.3.lua
Rocktree : c:\program files (x86)\puc-lua\5.3\
Lua interpreter : C:\Program Files (x86)\PUC-Lua\5.3\bin\lua.exe
binaries : C:\Program Files (x86)\PUC-Lua\5.3\bin
libraries : C:\Program Files (x86)\PUC-Lua\5.3\bin
includes : C:\Program Files (x86)\PUC-Lua\5.3\include
architecture: x86
binary link : lua53.lib with runtime VCRUNTIME140.dll
Compiler : Microsoft (make sure it is in your path before using LuaRocks)
Press <ENTER> to start installing, or press <CTRL>+<C> to abort. Use
install /? for installation options.
XD