Adding libpd instant component to unity object causes exception
See original GitHub issueHello! First off thank you so much for this project, it’s gonna make a huge different to us once we get it working.
Adding a libpd instance to a simple cube object in a scene and playing a project gives us:
EntryPointNotFoundException: libpd_set_queued_printhook
LibPdInstance.Awake () (at Assets/Scripts/LibPdInstance.cs:508)
…which appears to be the first line in initialisation within LibPdInstance.cs.
This is in Unity 2019.4.10f1, and we tried both copying from the LibPdIntegration/LibPdIntegrationExamples, and downloading the v.2.1.1 release from the releases page and copying into scripts and assets from there.
This is on a MacbookPro running 10.15.7.
On Windows, running Unity 2019.4.18f1, the error does not happen.
But since I’m here: what’s the best example to look at to implement Unity2libpd messaging (simple bang) within an existing class, as opposed to attached to a simple game object/collider?
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (4 by maintainers)

Top Related StackOverflow Question
If anyone sees this problem in future: What this error means, at the underlying level, is that the libpd.so it found was not built with the “PD_UTILS” option. (It might also occur if a libpd is found but it is for the wrong type of computer, eg, you tired to load an ios shared object on android or something-- not sure).
Spent a day checking plugin after plugin without result. I then deleted the project and redownloaded it from Unity Hub - and suddenly LibPdIntegration works as expected. Have no idea what caused it initially but happy it works now!