Mervill / Unity3D-NLua

Everything you need to get started using Lua in Unity3D. Indie & Pro compatible.
Boost Software License 1.0
190 stars 50 forks source link

strange, but harmless error on starting up Lua object #13

Open umegaya opened 9 years ago

umegaya commented 9 years ago

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.

Mervill commented 9 years ago

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.