Question

I have developed a NPAPI plugin with FireBreath. I've read the method on Chrome NPAPI Plugins and Google Chrome Extensions and NPAPI, then followed that way to include my npapi.so file in the manifest.json like this:

"plugins": [   
    { "path": "linux_npapi.so" }
]

Actually, I packaged my plugin file into .crx and installed it successfully, but when I run my test page, the plugin didn't seem to work. I have already tryed to package my plugin into .xpi and it worked fine with firefox. Then I've followed the way on Deploying and updating your plugin and copyed my plugin file into ~/.mozilla/plugins. It worked fine on firefox too, but still failed to work on chrome. :( And my plugin didn't show in chrome://plugins page.

How do I package a NPAPI plugin for chrome in linux?

Chrome version is 32.0.1700.107 .

Any help would be greatly appreciated...

Thanks...

Was it helpful?

Solution

When you build a plugin on linux, you either build it 32 bit or 64 bit. If you build it 32 bit it will load in 32 bit browsers, and 64 bit will load in 64 bit browsers. You need to make sure you build it correctly for what you want.

It sounds like that's your issue -- you are trying to load a 32 bit plugin on a 64 bit process and/or vise versa. That won't work.

Unfortunately I don't know offhand how to make cmake build 32 bit on a 64 bit system.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top