IUP不为LUA工作,并且抛出了未找到模块的错误,即使文件IUP在同一文件中呼叫的文件IUP

发布于 2025-02-08 18:40:55 字数 1195 浏览 2 评论 0原文

我已经为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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文