actboy168 / YDWE

A Tool to Help the Creation of Warcraft III Map
GNU General Public License v3.0
473 stars 140 forks source link

请问module 'filelock' not found怎么解决 #190

Open rere43 opened 5 years ago

rere43 commented 5 years ago

最开始我用vs2019(mvsc2019 16.3.1)打开ydwe.sln来编译,缺了bee的东西,然后下载了放到bee.lua,编译错误,无法打开文件ydwestartup.lib。

严重性 代码 说明 项目 文件 行 禁止显示状态 禁止显示状态 错误 LNK1104 无法打开文件“K:\YDWE\Development\Build\bin\Debug\bin\YDWEStartup.lib” YDWE K:\YDWE\Development\Core\YDWE\LINK 1

如果用build里的build release.bat,显示module 'filelock' not found。 详细信息:

C:\Windows\system32>call "K:\YDWE\Build\Build.bat" Release

C:\Windows\system32>CD K:\YDWE\Build\lua\

C:\Windows\system32>"K:\YDWE\Build\lua\luabuild\lua.exe" "K:\YDWE\Build\lua\make.lua" Release "K:\YDWE\Build\build.log" K:\YDWE\Build\lua\luabuild\lua.exe: K:\YDWE\Build\lua\make.lua:16: module 'filelock' not found: no field package.preload['filelock'] no file 'K:\YDWE\Build\lua\luabuild\lua\filelock.lua' no file 'K:\YDWE\Build\lua\luabuild\lua\filelock\init.lua' no file 'K:\YDWE\Build\lua\luabuild\filelock.lua' no file 'K:\YDWE\Build\lua\luabuild\filelock\init.lua' no file 'K:\YDWE\Build\lua\luabuild..\share\lua\5.4\filelock.lua' no file 'K:\YDWE\Build\lua\luabuild..\share\lua\5.4\filelock\init.lua' no file '.\filelock.lua' no file '.\filelock\init.lua' no file 'K:\YDWE\Build\lua\luabuild\filelock.dll' no file 'K:\YDWE\Build\lua\luabuild..\lib\lua\5.4\filelock.dll' no file 'K:\YDWE\Build\lua\luabuild\loadall.dll' no file '.\filelock.dll' stack traceback: [C]: in function 'require' K:\YDWE\Build\lua\make.lua:16: in main chunk [C]: in ?

luciouskami commented 5 years ago

请完整克隆仓库以后再进行编译,编译请使用vs的命令行工具执行Build文件夹下的Build_xxx.bat即可。

z2836358 commented 3 years ago

请完整克隆仓库以后再进行编译,编译请使用vs的命令行工具执行Build文件夹下的Build_xxx.bat即可。

VS2019 用git完整克隆了这个YDWE仓库,用工具-命令行执行Build_Release.bat就跟楼主一样类似的报错,不过报错的是gitlog.lua不能生成

如下: C:\Users\LiSen\Source\Repos\YDWE\Build\lua\luabuild\lua.exe: ...rs\LiSen\Source\Repos\YDWE\Build\lua\luabuild\gitlog.lua:8: assertion failed! stack traceback: [C]: in function 'assert' ...rs\LiSen\Source\Repos\YDWE\Build\lua\luabuild\gitlog.lua:8: in function 'gitlog' C:\Users\LiSen\Source\Repos\YDWE\Build\lua\make.lua:86: in main chunk [C]: in ?

luciouskami commented 3 years ago

请完整克隆仓库以后再进行编译,编译请使用vs的命令行工具执行Build文件夹下的Build_xxx.bat即可。

VS2019 用git完整克隆了这个YDWE仓库,用工具-命令行执行Build_Release.bat就跟楼主一样类似的报错,不过报错的是gitlog.lua不能生成

如下: C:\Users\LiSen\Source\Repos\YDWE\Build\lua\luabuild\lua.exe: ...rs\LiSen\Source\Repos\YDWE\Build\lua\luabuild\gitlog.lua:8: assertion failed! stack traceback: [C]: in function 'assert' ...rs\LiSen\Source\Repos\YDWE\Build\lua\luabuild\gitlog.lua:8: in function 'gitlog' C:\Users\LiSen\Source\Repos\YDWE\Build\lua\make.lua:86: in main chunk [C]: in ?

安装luamake以后再尝试

guangshao commented 2 years ago

安装了 luamake 可以编译 w3x2lni,

但是编译YDWE 就会报错以下的错误 [C]: in function 'assert' ...ect\YDWE-master\Build\lua\luabuild\gitlog.lua:8: in function 'gitlog' E:\YDWE-master\Build\lua\make.lua:86: in main chunk [C]: in ?