SoftwareGuy / Ignorance

Ignorance utilizes the power of ENet to provide a reliable UDP networking transport for Mirror Networking.
Other
248 stars 31 forks source link

DLL not found in macOS #52

Closed leo150 closed 4 years ago

leo150 commented 4 years ago

I'm experiencing same problem as #3. When I run demo scene and press "LAN Host" I get an error:

DllNotFoundException: enet ENet.Library.Initialize () (at Assets/Mirror/Runtime/Transport/Ignorance/Dependencies/ENet.cs:1059) Mirror.IgnoranceClassic.InitializeENET () (at Assets/Mirror/Runtime/Transport/Ignorance/IgnoranceClassic.cs:376) Mirror.IgnoranceClassic.ServerStart () (at Assets/Mirror/Runtime/Transport/Ignorance/IgnoranceClassic.cs:262) Mirror.NetworkServer.Listen (System.Int32 maxConns) (at Assets/Mirror/Runtime/NetworkServer.cs:136) Mirror.NetworkManager.StartServer () (at Assets/Mirror/Runtime/NetworkManager.cs:288) Mirror.NetworkManager.StartHost () (at Assets/Mirror/Runtime/NetworkManager.cs:363) Mirror.NetworkManagerHUD.OnGUI () (at Assets/Mirror/Runtime/NetworkManagerHUD.cs:55)

Steps to reproduce:

  1. Create empty Unity project (Unity 2019.2.2f)
  2. Import Mirror asset pack (v3.20.0)
  3. Import Ignorance asset pack (v1.3.3)
  4. Run IgnoranceClassic_BasicScene or any other Ignorance demo scene
  5. Hit "LAN Host" button

Environment: macOS 10.14.4 Build target platform is PC, Mac & Linux Standalone

Build Settings Screen Shot 2019-09-29 at 1 41 01 PM
SoftwareGuy commented 4 years ago

Hmm, this is probably due to how I changed the names of the library to better reflect what my build bot spits out. However that said build bot is now misbehaving.

Let me try to replicate this. Will update you ASAP.

leo150 commented 4 years ago

Great, thank you. I also have to mention that Mirror has introduced some breaking changes in the last version (v4.0.0) that prevent Ignorance from compiling.

SoftwareGuy commented 4 years ago

Yep, Mirror 4 caught me offguard. Ignorance 1.3.4 will be coming out hopefully today (I'm just going to fix this and update the transport with no other changes), so I'll make sure I put a reference to this ticket.

SoftwareGuy commented 4 years ago

Okay, found the problem. It's an outdated dependency of the ENET wrapper I use (as in, it's not in sync with the one in my ENet-CSharp repository).

I'm just wrapping up 1.3.4 now. I'll make sure I test this on a Mac Editor instance for you.

SoftwareGuy commented 4 years ago

Working in Mac Editor.

SoftwareGuy commented 4 years ago

Alright, i think i have correctly fixed this in 1.3.4. Could you please check that release and get back to me?

leo150 commented 4 years ago

It builds, thank you. Tested with Mirror 4.0.7.

SoftwareGuy commented 4 years ago

No problems, thanks very much for your report!