npruntime example plugin (c++) of NPAPI fails to run on mac OSX 10.5

1.4k Views Asked by At

I have compiled Mozilla NPAPI plugin example npruntime on Mac OSX 10.5. It give me a libnprt.dylib

I am bundling this dylib with proper plist.

On loading the plugin, NP_GetMIMEDescription() is getting called (i am logging this), but its not going inside NP_GetEntryPoints().

How a part of code is getting loaded and a part not?

Can you suggest me of any other documentation or example code? Any light on "How to make an NPAPI plugin for Mac"?

Advance thanks -Parimal Das

1

There are 1 best solutions below

2
On BEST ANSWER

Solving your problem with the npruntime sample is a bit hard with the details given. I suggest checking out WebKits examples from their repository. Mac-wise Mozillas samples are somewhat outdated.

To spare yourself from implementing it all, you can also take a look at:

If you haven't found it already you might also find this NPAPI plugin introduction helpful.