NLua / KeraLua

C# Native bindings of Lua 5.4 (compatible with .NET/iOS/Mac/Android/UWP)
MIT License
305 stars 84 forks source link

System.EntryPointNotFoundException on OS X #37

Closed Jesuszilla closed 5 years ago

Jesuszilla commented 6 years ago

I'm not sure when this started, but I get System.EntryPointNotFoundException on OS X for luanet_pushwstring:

  at (wrapper managed-to-native) KeraLua.NativeMethods:LuaPushString (intptr,string)
  at KeraLua.Lua.LuaPushString (System.IntPtr luaState, System.String str) [0x00000] in <f26ec5b5744e4574a1bb7a4fd61f6061>:0 
  at NLua.LuaLib.LuaPushString (KeraLua.LuaState luaState, System.String str) [0x00006] in <bf52c1feee2240539fa2d5d6a0eda224>:0 
  at NLua.Lua.Init () [0x00000] in <bf52c1feee2240539fa2d5d6a0eda224>:0 
  at NLua.Lua..ctor () [0x00027] in <bf52c1feee2240539fa2d5d6a0eda224>:0 
  at Blugen.Entities.Player.SetupBindings () [0x00001] in /Users/tyler/Documents/Code/Blugen/Entities/Player.cs:186 
  at Blugen.Entities.Player..ctor (Microsoft.Xna.Framework.Game game, System.UInt32 id, Blugen.Animation.Animation[] animations, Blugen.Animation.Collision[] defaultBoxes, System.String name, System.String author, Microsoft.Xna.Framework.Vector2 stagePos, System.Nullable`1[T] localCoord, Blugen.Graphics.SFF sff, System.Boolean facing, System.Collections.Generic.Dictionary`2[TKey,TValue] commands, Blugen.Entities.Constants constants, System.String[] stateFiles, System.String filePath) [0x00096] in /Users/tyler/Documents/Code/Blugen/Entities/Player.cs:94 
  at Blugen.Blugen.LoadCharacters (System.String[] definitionPaths) [0x001fe] in /Users/tyler/Documents/Code/Blugen/Blugen.cs:306 
  at Blugen.Blugen.LoadContent () [0x00042] in /Users/tyler/Documents/Code/Blugen/Blugen.cs:231 
  at Microsoft.Xna.Framework.Game.Initialize () [0x0004d] in <a6b5c1686196475aa75b8dde7820e259>:0 
  at Blugen.Blugen.Initialize () [0x00001] in /Users/tyler/Documents/Code/Blugen/Blugen.cs:210 
  at Microsoft.Xna.Framework.Game.DoInitialize () [0x00032] in <a6b5c1686196475aa75b8dde7820e259>:0 
  at Microsoft.Xna.Framework.Game.Run (Microsoft.Xna.Framework.GameRunBehavior runBehavior) [0x00033] in <a6b5c1686196475aa75b8dde7820e259>:0 
  at Microsoft.Xna.Framework.Game.Run () [0x0000c] in <a6b5c1686196475aa75b8dde7820e259>:0 
  at Blugen.Program.Main () [0x00007] in /Users/tyler/Documents/Code/Blugen/Program.cs:18 

All I do is call new Lua() and I get this error. I copied liblua52.dylib, KeraLua.dll, and NLua.dll to the bin output directory and this still persists. Any ideas?

viniciusjarina commented 5 years ago

yeah.. luanet_pushwstring is only for windows. how did you build your Mac OSX dll ?

viniciusjarina commented 5 years ago