Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LuaRocks: LINK : fatal error LNK1104: cannot open file 'MSVCRT.lib' #118

Open
naokihada opened this issue Sep 21, 2017 · 0 comments
Open

Comments

@naokihada
Copy link

I'm trying to set up dev environment for Adobe Lightroom SDK.

luarocks install lua-websockets
caused following error:
LINK : fatal error LNK1104: cannot open file 'MSVCRT.lib'

What should I check?

Environment: Win 7 x64
Build: LuaForWindows_v5.1.4-50.exe
LUA_DEV=C:\Lua\5.1
LUA_PATH=;;C:\Lua\5.1\lua?.luac
Visual Studio 2017 Enterprise has installed.
Path to Link
C:\dev\test_lua\test01>where link
C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.11.25503\bin\HostX64\x64\link.exe

===detail log===

C:\dev\test_lua\test01>luarocks install lua-websockets
Installing http://luarocks.org/repositories/rocks/lua-websockets-v2.2-1.rockspec...

Missing dependencies for lua-websockets:
luabitop
copas

Cloning into 'luabitop'...
remote: Counting objects: 125, done.
remote: Compressing objects: 100% (61/61), done.
Receiving objects: 99% (124/125)
Receiving objects: 100% (125/125), 72.39 KiB | 950.00 KiB/s, done.
Resolving deltas: 100% (54/54), done.
Note: checking out '1.0.2'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b

HEAD is now at ad0412a... Update to 1.0.2
cl /MD /O2 -c -Fobit.obj -IC:/Lua/5.1/include bit.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.11.25508.2 for x64
Copyright (C) Microsoft Corporation. All rights reserved.

bit.c
link -dll -def:bit.def -out:bit.dll C:/Lua/5.1/lib/lua5.1.lib bit.obj
Microsoft (R) Incremental Linker Version 14.11.25508.2
Copyright (C) Microsoft Corporation. All rights reserved.

LINK : fatal error LNK1104: cannot open file 'MSVCRT.lib'

Error: Failed installing dependency: http://luarocks.org/repositories/rocks/luabitop-1.0.2-3.rockspec - Build error: Failed installing bit.dll in C:\Lua\5.1\rocks/luabitop/1.0.2-3/
lib

C:\dev\test_lua\test01>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant