patricksebastien / libpd4unity

libpd for unity 3d
101 stars 20 forks source link

Dll not found exception on Windoze #6

Closed thefuntastic closed 10 years ago

thefuntastic commented 10 years ago

So by default on windows I get a .dll not found exception, even if I copy libpdcsharp.dll to the Unity.exe program folder. By analysing the .dll with Dependency Walker I determine this is because libpthreads-2.dll is missing. The solution is to also include the libpthreads-2.dll from MinGW.

I don't know how this has worked for anyone else, but I presume it's only a problem in situations where MinGW isn't on the system environment PATH var. This is probably the default for most users so I suggest the fix.

In a curiousity I can't create a pull request with an appropriate fix because I could only get a legacy version of MinGW working, which has a different pthreads lib. But it's a simple case of including the correct dll. I'll be happy to confirm it's working if somebody else could add it.

Described in more detail here: http://www.thefuntastic.com/2014/04/the-misadventures-of-unity-and-puredata-libpd/