我已經添加了package.cpath和package.path問題
調試Premake5(之前叫require('mobdebug').start()
)如ZeroBrane文檔中所描述的,但我一直有同樣的錯誤:
Error: error loading module 'socket.core' from file '/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/bin/clibs53/socket/core.dylib':
file is not a bundle
或者,如果我有LUA_USE_DLOPEN重新編譯Lua中,我得到一個不同的錯誤:
Error: error loading module 'socket.core' from file '/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/bin/clibs/socket/core.dylib':
dlopen(/Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/bin/clibs/socket/core.dylib, 2): Symbol not found: _luaL_prepbuffsize
Referenced from: /Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/bin/clibs/socket/core.dylib
Expected in: flat namespace
in /Applications/ZeroBraneStudio.app/Contents/ZeroBraneStudio/bin/clibs/socket/core.dylib
有任何幫助嗎?
感謝
事實上,我混淆了一些事情。 順便說一句,我終於能夠對Premake中的lua項目進行一些小的修改。 我已經定義了LUA_USE_DLOPEN,LUA_COMPAT_OPENLIB和LUA_COMPAT_LOADLIB,它與ZeroBrane完美協作。 –
聽起來不錯;如果它適合你,你可以接受答案。 –