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

重编译prebuilt/win32/lua51.dll Recompile prebuilt/win32/lua51.dll #148

Open
WaylandGod opened this issue Nov 27, 2024 · 5 comments
Open

Comments

@WaylandGod
Copy link

WaylandGod commented Nov 27, 2024

There's a problem when I recompile luajit.exe and lua51.dll in win32. While I replace the prebuilt/win32/lua51.dll with the new one, the game can not launch when loading the .lua scripts with require(). Has anyone encountered a similar problem?

重编译win32环境下的luajit.exe和lua51.dll,将编译后的lua51.dll文件替换prebuilt/win32/lua51.dll文件、以及项目中的lua51.dll文件,导致游戏无法启动,在使用require()函数加载.lua脚本时报错
image
image
是否这里要做什么修改

@794364474
Copy link

794364474 commented Nov 27, 2024 via email

@WaylandGod WaylandGod changed the title Recompile prebuilt/win32/lua51.dll 重编译prebuilt/win32/lua51.dll Recompile prebuilt/win32/lua51.dll Nov 27, 2024
@u0u0
Copy link
Owner

u0u0 commented Nov 27, 2024

你编译的luajit版本是多少?

@WaylandGod
Copy link
Author

image
LuaJIT 2.1.0-beta3 这个版本

@u0u0
Copy link
Owner

u0u0 commented Nov 27, 2024

这边使用的是 luajit github仓库某一版本的,比beta3要新一些。
https://github.com/u0u0/Quick-Cocos2dx-Community/tree/master/external/lua/luajit
参考这里的源码。不过你哪个错误我觉得是lua那么的search path不太对。

@WaylandGod
Copy link
Author

我理解也是path存在问题,不过没做源码修改,直接重编译替换问题仍然存在,目前还没定位到问题点

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

3 participants