IUP不为LUA工作,并且抛出了未找到模块的错误,即使文件IUP在同一文件中呼叫的文件IUP
我已经为lua安装了IUP GUI( https://www.tecgraf.puc-rio。 br/iup/,该网站是英文的,尽管看起来不像它)。我尝试使用他们的教程代码在计算机上运行IUP:
require("iuplua")
iup.Message("Hello World 1","Hello world from IUP.")
-- to be able to run this script inside another context
if (iup.MainLoopLevel()==0) then
iup.MainLoop()
iup.Close()
end
但是,每当我会收到此错误时:找不到模块'iuplua',然后我会在此下方遇到许多其他错误:
no field package.preload['iuplua']
no file '.\iuplua.lua'
no file 'C:\Users\user\bin\lua\iuplua.lua'
no file 'C:\Users\user\bin\lua\iuplua\init.lua'
no file './iuplua.lua'
no file './iuplua/init.lua'
no file './lua/iuplua.lua'
no file './lua/iuplua/init.lua'
no file 'C:\Users\user\lualibs/iuplua/iuplua.lua'
no file 'C:\Users\user\lualibs/iuplua.lua'
no file 'C:\Users\user\lualibs/iuplua/iuplua/init.lua'
no file 'C:\Users\user\lualibs/iuplua/init.lua'
no file '.\iuplua.dll'
no file 'C:\Users\user\bin\iuplua.dll'
no file 'C:\Users\user\bin\loadall.dll'
no file 'C:\Users\user\bin/clibs/iuplua.dll
即使我将文件i放置在文件中,也会发生这种错误。 m插入SRCLUA5文件夹,其中包含一个称为“ iuplua.lua”的文件。为什么会发生这种情况?有人可以帮忙吗?
I have installed the IUP GUI for Lua (https://www.tecgraf.puc-rio.br/iup/, the website is in English, although it doesn't look like it). I have tried running IUP on my computer using their tutorial code:
require("iuplua")
iup.Message("Hello World 1","Hello world from IUP.")
-- to be able to run this script inside another context
if (iup.MainLoopLevel()==0) then
iup.MainLoop()
iup.Close()
end
but whenever I do I get this error: module 'iuplua' not found and then I get a bunch of other errors below that :
no field package.preload['iuplua']
no file '.\iuplua.lua'
no file 'C:\Users\user\bin\lua\iuplua.lua'
no file 'C:\Users\user\bin\lua\iuplua\init.lua'
no file './iuplua.lua'
no file './iuplua/init.lua'
no file './lua/iuplua.lua'
no file './lua/iuplua/init.lua'
no file 'C:\Users\user\lualibs/iuplua/iuplua.lua'
no file 'C:\Users\user\lualibs/iuplua.lua'
no file 'C:\Users\user\lualibs/iuplua/iuplua/init.lua'
no file 'C:\Users\user\lualibs/iuplua/init.lua'
no file '.\iuplua.dll'
no file 'C:\Users\user\bin\iuplua.dll'
no file 'C:\Users\user\bin\loadall.dll'
no file 'C:\Users\user\bin/clibs/iuplua.dll
This occurs even if I put the file I'm running into the srclua5 folder which contains a file called "iuplua.lua". Why does this occur? Could someone please help?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论