Unity3D-NLua icon indicating copy to clipboard operation
Unity3D-NLua copied to clipboard

strange, but harmless error on starting up Lua object

Open umegaya opened this issue 9 years ago • 1 comments

hi, thank you for nice project. I try to use Unity3D-NLua in this project, then I got strange following error when try to create lua object. but harmless because after that, lua object is created correctly.

Couldn't open Assets/Plugins/lua52.bundle/Contents/MacOS/lua52, error: dlopen(Assets/Plugins/lua52.bundle/Contents/MacOS/lua52, 2): Library not loaded: @loader_path/liblua52.dylib
  Referenced from: /Users/iyatomi/Documents/umegaya/yue-unity/sample/Assets/Plugins/lua52.bundle/Contents/MacOS/lua52
  Reason: image not found
NLua.LuaLib:LuaLNewState() (at Assets/NLua/LuaLib/LuaLib.cs:78)
NLua.LuaLib:LuaLNewState() (at Assets/NLua/LuaLib/LuaLib.cs:77)
NLua.Lua:.ctor() (at Assets/NLua/Lua.cs:278)

actually there is only lua52.dylib, no liblua52.dylib. so I create dummy file entry as following

ln -s lua52.dylib liblua52.dylib

then this error is gone. if this error is common, and this kind of workaround is fine, can you create dummy entry in this repo for preventing newbie from confusing? thanks.

umegaya avatar May 08 '15 05:05 umegaya

Thanks for pointing that out -- I assume you are on OSX / Compiling for OSX? I don't have a Mac Machine myself so I can't easily track these issues down.

Mervill avatar May 19 '15 01:05 Mervill