Skip to content

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

@umegaya

Description

@umegaya

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions