I'm using Plugin-x only for Android, so I can tell you the solution for Android.
sorry if it doesn't help you.
add this line to Android.mk in your project
then published plugins are now available in your project.
I think it's not necessary to run publish.h If you'd like to refer an original PluginManager.h.
I haven't tried yet, so I can not show you further instruction of this way.