How to load NPAPI on QT 5.3 embedded system? - npapi

I have NPAPI plugin file - libxxxplugin.so.
Is it possible to load this plugin file onto QT embedded linux system?
I made a browser using QWebView, and put it in QTWEBKIT_PLUGIN_PATH directory as described in PluginDatabase.cpp.
But, "navigator.mimeTypes" returns nothing.
Any suggestion would be help.
Thanks.

Related

Unity3D cannot open Assets from Web page

I have installed Unity3D 5.1.0f3 Personal on Ubuntu. I have not installed Wine for Ubuntu.
When I tried to open link: Open in Unity, on the page https://www.assetstore.unity3d.com/en/#!/content/25794. I've got error:
The address wasn't understood
Firefox doesn't know how to open this address, because one of the
following protocols (com.unity3d.kharma) isn't associated with any
program or is not allowed in this context.
You might need to install other software to open this address.
Can someone help me to resolve the problem. My browsers are Firefox and Chrome.
Thank you!
You can open a project (new if necessary) and import the asset using the Unity editor.
Unity3D is beta in Linux, does not work the schema to store.
I was having the same issue, but you should be able to get around this by opening the Asset Store in the Unity editor and downloading the asset from there
1.5 years later. I'm using Unity on Linux as well. The protocol is still not understood, but there's no Asset Store in Unity itself either (Window ยป Asset Store button does nothing). Unity will not recognise that here's a Unity Hub installed, even though it was installed by Unity Hub, and the My Assets window therefore only ever shows an error. It seems there's no way to get Assets into Unity on Linux.
If you are using a newer version of Unity, you can click Add to My assets on Browser Asset Store then install them via the Package Manager.
Open a New or Existing Project -> Window -> Package Manager, then by selecting "My Assets" in the source drop down will show all assets that you have added on the browser.

How install custom pepper plugin in Chromium browser source code?

I need to build in my pepper plugin in chromium source code for building browser with already installed plugin. Is there possibility to do that?
A handful of plugins are built in. Since these are plugins, they are built independently from Chrome and loaded dynamically rather than directly linked to the Chromium executable. This is the function that causes them to be loaded into Chromium:
https://code.google.com/p/chromium/codesearch#chromium/src/chrome/common/chrome_content_client.cc&rcl=1436599777&l=118
The NaCl plugin is special, since it runs "in process", which means it is loaded into the renderer process. Eventually, support for this kind of plugin will be eliminated, so it is best to follow the pattern of the "out of process" plugins, which run in their own process, such as PDF.

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

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...
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.

Compiling sqlite-winrt for using SQL in WinRT/WP app with SQLite

I'm trying to use the sqlite-winrt library at https://sqlwinrt.codeplex.com (cf. http://blogs.windows.com/windows_phone/b/wpdev/archive/2013/05/30/sqlite-winrt-wrapper-for-windows-phone.aspx) because I need to access an SQLite database via SQL commands in a WinRT 8.1 and a WP8 app and this library seems the only available option.
Anyway, there is no binary release and if I try compiling the source I get several link errors for unresolved externals against the SQLite DLL. I posted an issue at codeplex but got no reply yet, so I was wondering if anyone had already managed to successfully compile this lib and how (or if you know of any viable alternative for RT8.1 and WP8). Here is what I did:
downloaded the latest source from the site.
downloaded and installed 2 VSIX from http://www.sqlite.org/download.html: sqlite-winrt81-3080002.vsix for RT 8.1 and sqlite-wp80-winrt-3080100.vsix for WP.
executed the powershell scripts in each subfolder of the source code solution, which are required to update the projects with newer releases of the SQLite for WinRT extension. The current versions of the scripts refer to SQLite for WinRT 8.1 (prerelease) which is the same I downloaded above.
opened the VS2013 solution and removed the RT project (I just need RT8.1 and WP, this was for WinRT 8.0).
5) built the solution, which failed with link errors.
If I see the RT8.1 project properties, I can confirm the reference to SQLite is under C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1\ExtensionSDKs\SQLite.WinRT81\3.8.0.2.
Did anyone manage to use this lib? Thanks!
I also once had that problem. I fix it by editing the project file manually. At that time, the powershell script updating the wrong path. That's why I always failed when compiling my project. After I edit the project file using external text editor (I use sublime text), the projects are linked correctly.
You can try DatabasesCx. It is another SQLite Wrapper using Windows Runtime Component technology. It is freeware distributed as precompiled binary. You can find the details at http://www.almanacsoft.com/databasescx

JavaFx 2 applicaton does not run when i run it through HTML page

I have downloaded the javafx 2 samples and want to run in from its HMTL. For example there is one javafx application called BrickBreaker. For the specific sample the following files exist : BrickBreaker.jar, BrickBreaker.jnlp and BrickBreaker.html
When double clicking on jar or jnlp the application runs as expected but when i click on the html the application does not run. Instead i get the message "View the conectes of the page. Please install javaFX"
Why is that happening ? ( i have the javafx installed as the application runs when choosing the jar and jnlp files). My guess is that the html should be called from within the context of a webserver meaning that i should deploy my application first to a server and call the url from my explorer. For example if using glassfish i should call the url http://localhost:8080/Brickbraker
The problem is that i don't know how to deploy the javafx application in the server.
i tried to copy paste all the above three files in the autodeploy folder but it didnt worked...
Could you please help me?
Thanks in advance
EDIT: some more info - I have installed JDK 7 and JavaFX SDK 2.0.2
No, JavaFX is client technology, you don't need Glassfish to run it. JavaFX should run in browser the same way as Java plugins do.
If you can't run an application directly from html file it means your browser doesn't recognize you have runtime installed.
There can be next reasons for that:
JavaFX runtime is actually not installed (check in Windows Control Panel)
pure java plugin is not installed (you can check on java.com)
javafx runtime is 32bit and you are using 64bit browser (or vice versa)
you are using not supported browser (e.g. Safari)
you are using not supported system (at this moment, January 2012, only Windows supports runtime)