google-nativeclient

Render camera preview in Chrome using Native Client SDK

允我心安 提交于 2019-12-12 04:57:33
问题 I'm trying to write ppapi plugin for Chrome which will use webcam (show preview and write file). I have installed NaCl sdk with pepper_35 . There available examples in /examples/api/ folder: media_stream_audio and media_stream_video . The audio example works fine - requests access to microphone and shows some kind of preview. The "media_stream_video" example must show web-camera video preview, but when I load example on the local web server (with make serve command), there appears red rect,

Openssl native client port gives error on building

可紊 提交于 2019-12-12 04:56:16
问题 I am working on a simple chrome NaCl extension where I want to use the openssl library for encryption of data. I checked out the pepper_40 branch of naclports as described on the wiki page and tried to build the port for openssl but it is encountered with the following error. kunal@Baweja:~/Downloads/naclports/src$ ./make_all.sh openssl + set -e + TARGETS=openssl + TARGETS=openssl + BUILD_FLAGS=--ignore-disabled + export TOOLCHAIN + export NACL_ARCH + export BUILD_FLAGS + NACL_ARCH=x86_64 +

I want to create a native app that runs in all OS, and can run terminal commands

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 11:12:27
问题 Can this technology Chrome App or Google NaCl provide me with this capabilities? Basically it should be able to run terminal commands (even by asking permission first). And it needs to be able to edit client's filesystem. I am interested in Chrome App or Google NaCl because they both can run in any operating system (that supports chrome). 回答1: According to Google, Chrome is supported on some Linux, Mac OS X and Windows. As your need is not strictly related to Chrome neither a browser, I

Chrome Native Client, errors using onKeyDown event

谁都会走 提交于 2019-12-11 11:11:50
问题 I'm trying to get a very basic Chrome Native Client application running. What I'd like to do is respond to keystrokes, for example by displaying "You pressed X" whenever a user presses a key. I've been at it all day, but every time I press a key, I get " Uncaught TypeError: Object # has no method 'postMessage' ". The errors are all in the Javascript; the Native Client C++ module works fine. Javascript in head of document: myModule = null; // Global application object. function moduleDidLoad()

PHP for Native Client (NaCl)

╄→гoц情女王★ 提交于 2019-12-11 06:23:40
问题 Are there any projects porting php to native client? I haven't been able to find any. My aim is to do php lint checking without having to make round-trips to the server. 回答1: Answering @crystal-miller's revival of this question: I'm not aware of any PHP port to NaCl, but there are plenty of ports for other languages so the following information should point you in the right direction if you do want to port PHP (or any other language) to NaCl. The NaCl team keeps a list of regression-tested

Chrome PNaCl app inline installation

余生长醉 提交于 2019-12-10 23:35:52
问题 I want to distribute a PNaCl app, inline installation and use the app without leaving the current page . I have published the app on CWS. The app needs some user permissions. Inline installation works and the app appears in the Chrome browser apps section. But, I get this error : "NaCl module load failed: could not load manifest url" when I try to load the app using: <embed id="testapp" width=0 height=0 src="testapp.nmf" type="application/x-pnacl" /> This is the testapp.nmf file which is

How to include a data file in a chrome app for a native client module to read

三世轮回 提交于 2019-12-10 10:48:52
问题 If I have a chrome packaged app that also includes a PNaCl/NaCl module, is there a way to include in the packaged app some data files, which the NaCl module will then read in? I don't need to do any file writing, just to include some data files that the native module needs to make use of. 回答1: The entire contents of your packaged app are available to both JavaScript and NaCl code via http requests. If you use the nacl_io library then you can also access all the files using standard POSIX file

C++ Difference Between const char* and const char[]

依然范特西╮ 提交于 2019-12-07 09:30:24
问题 I read a question on the difference between: const char* and const char[] where as for a while, I though arrays were just syntactic sugar for pointers. But something is bugging me, I have a pice of code similar to the following: namespace SomeNamespace { const char* str = { 'b', 'l', 'a', 'h' }; } I get, error: scaler object 'str' requires one element in initializer. So, I tried this: namespace SomeNamespace { const char str[] = { 'b', 'l', 'a', 'h' }; } It worked, at first I thought this may

Porting c++ code (native client) to browser (Web app)

最后都变了- 提交于 2019-12-06 07:40:50
I have a c++ module written using Qt-creator SDK. I want to port this code to run on any webpage without compromising the source-code to end user. User should be able to see the output of this module on any browser(Chrome, Firefox, Safari, Explorer) without having to install any additional browser plugin. What are the better options available to achieve this. I have googled and found few such options: Google Native client (NaCl) - But it runs only on Chrome. Is this the future of web applications?? PPAPI - Not sure if it is same as NaCl NPAPI - almost depricated Emscripten - It converts c++ to

How to include a data file in a chrome app for a native client module to read

可紊 提交于 2019-12-06 07:32:47
If I have a chrome packaged app that also includes a PNaCl/NaCl module, is there a way to include in the packaged app some data files, which the NaCl module will then read in? I don't need to do any file writing, just to include some data files that the native module needs to make use of. The entire contents of your packaged app are available to both JavaScript and NaCl code via http requests. If you use the nacl_io library then you can also access all the files using standard POSIX file APIs by first mounting the contents of the package somewhere if your virtual filesystem: e.g: // Mount the