Questions tagged [google-nativeclient]

Native Client (NaCl) and Portable Native Client (PNaCl) are open-source technologies for executing compiled code in a browser sandbox. PNaCl is portable and preferred but has a few limitations. Questions about the tool chain and SDK for Native Client as well as questions concerning behaviors of the resulting applications should use this tag. Questions involving HTML and JavaScript components used with Native Client may need those tags as well or instead.

The Native Client (NaCl) and Portable Native Client (PNaCl) open-source technologies are designed to run operating system independent, native compiled code securely inside browsers by containing the compiled code in a sandbox. The result is to provide the raw speed needed for browser based applications to compete with traditional software like 3D games, video editing, and other applications. Native Client gives languages like C and C++ the same level of portability and safety that JavaScript provides on the web today.

There are two versions of Native Client: Native Client using the native code of a specific target hardware and Portable Native Client using a portable hardware independent code. The Portable Native Client code is translated to Native Client code for the current hardware at the time it is executed in the sandbox.

Portable Native Client is preferred since one executable can run on multiple hardware while Native Client requires multiple hardware specific versions. However Portable Native Client does have a few limitations and Native Code may be required for a specific application.

A complete application is expected to use Native Client (PNaCl or NaCl) with HTML along with any needed JavaScript and CSS styles (JavaScript and CSS may be included in the HTML file or as separate files). An embed tag with a type of application/x-pnacl for Portable Native Client or application/x-nacl for Native Client is used in an HTML file specifying the application's manifest file to download and start the Native Client application.

Applications may be published through the Chrome Web Store.

From the SDK download page.

Platforms

Native Client supports several operating systems, including Windows, Linux, OSX, and ChromeOS. It supports several architectures including on x86-32, x86-64, ARM, and MIPS.

446 questions
2
votes
1 answer

Integrating an old C++ code into a PNaCl module

I read Google’s native client tutorial on how to build my own C++ based PNaCl module several times and somehow I'm not getting wiser, I know that if I want to implement a messaging functionality. I have the following in the .cc file as basis for a…
TalG
  • 677
  • 1
  • 9
  • 26
2
votes
1 answer

How to pair a new Bluetooth device from a Chrome App on ChromeOS?

I'm writing a Chrome App using the chrome.bluetooth Javascript API and PNACL. I can turn on Bluetooth discovery, find devices, connect, and communicate successfully. But I cannot figure out how to pair a new device programmatically from my…
2
votes
1 answer

Accessing printers installed and printing raw data to label printer using Google Native client

Our web application has a flow where in the on click of print button on a page, raw data from the server is printed on the client's machine on a user selected printer (Zebra label printer). Following sequence of interactions are involved between the…
Jitesh
  • 51
  • 1
  • 5
2
votes
2 answers

Is it possible to accelerate the webgl matrix Multiplication through pnacl?

The poor performance of matrix multiplication in javascript is an obstacle for high performance webgl. So I am thinking about using pnacl to accelerate it. Ideally, I'd like to pass the ArrayBuffer(Float32Array) and the matrix to pnacl, then use the…
yang wang
  • 163
  • 11
2
votes
1 answer

FFmpeg NaCl module avformat_open_input (on rtsp stream) returns -5: I/O error

I want to create an RTSP player in Chrome PNaCl. I have successfully built the ffmpeg naclport including the following networking flags in the build.sh file for the ffmpeg NaCl port. --enable network --enable-protocols --enable-demuxer=rtsp…
Taimoor Alam
  • 113
  • 1
  • 11
2
votes
0 answers

Is it possible to access microphone from NaCl/PPAPI?

I am doing a feasibility study for a PPAPI plugin. One of must-have requirements is access to the microphone to enabled audio recording. I have found API to play audio, but not to record it. Several post suggest that it can't be…
Dan Tumaykin
  • 1,213
  • 2
  • 17
  • 37
2
votes
1 answer

NaCl and shared memory

I have application that write some date in linux shared memory (/dev/shm/datahere). I need to show this data in browser with using google native client. it is real? How I can do this?
Alex Skiffin
  • 409
  • 1
  • 4
  • 13
2
votes
0 answers

Visual Studio compiling with wrong version

I have VS 2012 and VS 2013 installed on the same computer, and must use 2012 to compile Google NaCl with the vs-addin (Only supports 2012). How can I change the compiler version that my Visual Studio software uses to compile code? I have clearly set…
Omniscience
  • 1,135
  • 1
  • 8
  • 8
2
votes
1 answer

Encode video using ffmpeg and vp8 codec on Native Client

I'm trying to develop a video encoder using Native Client. I want the output file to be .webm and I'm using ffmpeg example "muxing.c". When I run the example I get the error message: Could not find encoder for 'vp8' The error comes from here: *codec…
2
votes
1 answer

How will Google Native Client change the way we use Browsers?

I just came across Google Native Client Now, it looks really interesting that they ported Quake to run on a Browser and you can run C++ code on a browser to process things more quickly, but I am trying to understand, what is the practical usage of…
zengr
  • 38,346
  • 37
  • 130
  • 192
2
votes
0 answers

PNaCl ffmpeg port crashes during startup

I'm trying to run a PNaCl ffmpeg port and run some basic commands. Unfortunately I only managed to print this error in index.html: > NaCl module load failed: Nexe crashed during startup I got the pre-built port from here and my Chrome version is…
matt-pielat
  • 1,659
  • 3
  • 20
  • 33
2
votes
1 answer

How Google Native Client is sandboxed? Native application or Native Client?

I am a beginner in writing Chrome extensions and NaCl. I have a basic extension with an app written in C#. Using the C# application (which is being called by my Chrome extension), I can freely read/write files from/to my Windows file system. I can…
2
votes
2 answers

How to create a CMakeLists.txt in order to compile a PNaCl program?

I have a PNaCl program that I'm trying to compile using CMake. I included the following lines but doest not work at all: # disable compiler detection include(CMakeForceCompiler) CMAKE_FORCE_C_COMPILER("${CMAKE_C_COMPILER}"…
Renan Grativol
  • 1,062
  • 15
  • 20
2
votes
1 answer

Capturing video from web cam and process them with nacl - opencv

I'm planing to capture video using web cam and then process it with opencv and then finally show output on a web page with opencv-naclport in google native-client environment The way i currently aware about is Capture video from webcam using…
HarshaXsoad
  • 776
  • 9
  • 30
2
votes
1 answer

Appropriate socket permissions in PNaCl

I am developing a PNaCl plugin for Chrome, where I need send http request to the local application.Then I found the Pepper plugin and it looks promising to achieve my goal. But when I do it, I found that the PNaCl can't use the socket without…