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

dynamic libraries not enabled; check your Lua installation #725

Closed
LLLaiYoung opened this issue Apr 9, 2020 · 6 comments
Closed

dynamic libraries not enabled; check your Lua installation #725

LLLaiYoung opened this issue Apr 9, 2020 · 6 comments

Comments

@LLLaiYoung
Copy link

xLua: v2.1.14
Mac: 10.15 Beta版(19A582a)
Unity:2018.4.3f1

使用 Emmy Debugger(NEW) 的时候,在代码开头插入了

package.cpath = package.cpath .. ';/Users/xx/Library/Application Support/IntelliJIdea2019.3/intellij-emmylua/classes/debugger/emmy/mac/?.dylib'
local dbg = require('emmy_core')
dbg.tcpListen('localhost', 9966)

报错

LuaException: error loading module 'emmy_core' from file '/Users/xx/Library/Application Support/IntelliJIdea2019.3/intellij-emmylua/classes/debugger/emmy/mac/emmy_core.dylib':
	dynamic libraries not enabled; check your Lua installation
stack traceback:
	[C]: in ?
	[C]: in function 'require'
	[string "LuaTestScript"]:9: in main chunk
XLua.LuaEnv.ThrowExceptionFromError (System.Int32 oldTop) (at Assets/XLua/Src/LuaEnv.cs:443)
XLua.LuaEnv.DoString (System.Byte[] chunk, System.String chunkName, XLua.LuaTable env) (at Assets/XLua/Src/LuaEnv.cs:276)
XLua.LuaEnv.DoString (System.String chunk, System.String chunkName, XLua.LuaTable env) (at Assets/XLua/Src/LuaEnv.cs:290)
XLuaTest.LuaBehaviour.Awake () (at Assets/XLua/Examples/02_U3DScripting/LuaBehaviour.cs:56)
@chexiongsheng
Copy link
Collaborator

默认不开启,可以加上LUA_USE_DLOPEN重新编译plugins

@LLLaiYoung
Copy link
Author

请问具体怎么操作呢?

@chexiongsheng
Copy link
Collaborator

@bToTd
Copy link

bToTd commented Aug 4, 2020

大佬,这个问题解决了了吗?我重新编译出来的文件还是不能调试

@chengyoung1016
Copy link

想问下这个问题后面如何解决了?

@BillScott1024
Copy link

同遇到这个问题,无法调试,请问怎么解决?
image

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

5 participants