如何解决'错误: 构建错误: 安装cjson.dll失败'
2019-9-1 4:27:53
收藏:0
阅读:113
评论:0
我想安装lua-cjson,但是我在运行luarocks install lua-cjson时遇到了这个错误
Error: Build error: Failed installing cjson.dll
我的cl版本是https://imgur.com/a/YiSVqTm
我的luarocks版本是:
luarocks 2.0.2
LuaRocks主命令行界面
我不知道如何解决这个问题
当我在VS 2019的Developer Command Prompt(2)中运行luarocks install lua-cjson时,以下是输出结果:
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools>luarocks install lua-cjson
Installing http://luarocks.org/repositories/rocks/lua-cjson-2.1.0.6-1.src.rock...
cl /MD /O2 -c -Folua_cjson.obj -IC:/Program Files (x86)/Lua/5.1/include lua_cjson.c -DDISABLE_INVALID_NUMBERS -DUSE_INTERNAL_ISINF
Microsoft (R) C/C++ Optimizing Compiler Version 19.22.27905 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
lua_cjson.c
lua_cjson.c(736): warning C4090: '函数': 不同的 'const' 限定符
lua_cjson.c(753): warning C4090: '函数': 不同的 'const' 限定符
lua_cjson.c(1280): warning C4090: '函数': 不同的 'const' 限定符
lua_cjson.c(1458): warning C4090: '函数': 不同的 'const' 限定符
lua_cjson.c(1470): warning C4090: '函数': 不同的 'const' 限定符
lua_cjson.c(1475): warning C4090: '函数': 不同的 'const' 限定符
lua_cjson.c(1492): warning C4090: '函数': 不同的 'const' 限定符
lua_cjson.c(1497): warning C4090: '函数': 不同的 'const' 限定符
lua_cjson.c(1502): warning C4090: '函数': 不同的 'const' 限定符
cl /MD /O2 -c -Fostrbuf.obj -IC:/Program Files (x86)/Lua/5.1/include strbuf.c -DDISABLE_INVALID_NUMBERS -DUSE_INTERNAL_ISINF
Microsoft (R) C/C++ Optimizing Compiler Version 19.22.27905 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
strbuf.c
cl /MD /O2 -c -Fofpconv.obj -IC:/Program Files (x86)/Lua/5.1/include fpconv.c -DDISABLE_INVALID_NUMBERS -DUSE_INTERNAL_ISINF
Microsoft (R) C/C++ Optimizing Compiler Version 19.22.27905 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
fpconv.c
link -dll -def:cjson.def -out:cjson.dll C:/Program Files (x86)/Lua/5.1/lib/lua5.1.lib lua_cjson.obj strbuf.obj fpconv.obj
Microsoft (R) 增量链接器版本 14.22.27905.0
版权所有 (C) Microsoft Corporation。保留所有权利。
正在创建库 cjson.lib 和对象 cjson.exp
Error: Build error: Failed installing cjson.dll in C:\Program Files (x86)\Lua\5.1\rocks/lua-cjson/2.1.0.6-1/lib
我希望能够成功安装luarocks。
点赞
评论区的留言会收到邮件通知哦~
推荐文章
- Lua 虚拟机加密load(string.dump(function)) 后执行失败问题如何解决
- 我想创建一个 Nginx 规则,禁止访问
- 如何将两个不同的lua文件合成一个 东西有点长 大佬请耐心看完 我是小白研究几天了都没搞定
- 如何在roblox studio中1:1导入真实世界的地形?
- 求解,lua_resume的第二次调用继续执行协程问题。
- 【上海普陀区】内向猫网络招募【Skynet游戏框架Lua后端程序员】
- SF爱好求教:如何用lua实现游戏内调用数据库函数实现账号密码注册?
- Lua实现网站后台开发
- LUA错误显式返回,社区常见的规约是怎么样的
- lua5.3下载库失败
- 请问如何实现文本框内容和某个网页搜索框内容连接,并把网页输出来的结果反馈到另外一个文本框上
- lua lanes多线程使用
- 一个kv数据库
- openresty 有没有比较轻量的 docker 镜像
- 想问一下,有大佬用过luacurl吗
- 在Lua执行过程中使用Load函数出现问题
- 为什么 neovim 里没有显示一些特殊字符?
- Lua比较两个表的值(不考虑键的顺序)
- 有个lua简单的项目,外包,有意者加微信 liuheng600456详谈,最好在成都
- 如何在 Visual Studio 2022 中运行 Lua 代码?
