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
0
votes
1 answer

Error when running Native Client SDK examples

I had followed the instructions in https://developers.google.com/native-client/devguide/tutorial#verify However, it seems all the examples are not running well. Had tried set NACL_SDK_ROOT to /nacl_sdk/ and /nacl_sdk/pepper_23/ but still no…
Deqing
  • 14,098
  • 15
  • 84
  • 131
0
votes
1 answer

Debugging 32 bit NACL exe on MAC?

I am wishing to debug 32 bit nacl exe on mac platform. I couldnt debug it out since on mac platform i couldnt find a 32bit nacl-gdb. Has anyone successfully done it?
0
votes
1 answer

How to use the native client toolchain?

I had compiled the native client toolchain in my own Linux OS. In native client source code I found that using make test_hello_world_nexe can build a hello world program and run it. To my understanding it must be using the downloaded toolchain…
Deqing
  • 14,098
  • 15
  • 84
  • 131
0
votes
2 answers

How can one port Cave Story (NXEngine) to Native Client

So, Native Client can run C++ code from the browser, and I know that the NX Engine is build from C++, and can be tweaked to run on Android. So, if the NX Engine can run Cave Story, and that can in theory run in the native client, how do you get it…
0
votes
1 answer

Compiling native client's hello_world.c

In the pepper_21 examples folder is a hello_world.c file I'm trying to compile. Here's the command I'm using: $NACL_SDK_ROOT/toolchain/linux_x86_newlib/bin/x86_64-nacl-gcc hello_world.c -o a.nexe -lppapi And here's the error: hello_world.c: In…
Inuart
  • 1,432
  • 3
  • 17
  • 28
0
votes
1 answer

nacl openal example doesn't work on Windows

I'm having trouble getting openal sound working on Win7. I've built the naclports openal-ogg example against pepper_23 on a Mac machine, and then run them in Win7 Chrome. The result is skipping sound, and I get the following spit out to stderr: AL…
Chris
  • 1,522
  • 1
  • 12
  • 19
0
votes
2 answers

Does Chrome NaCl have anything to do with V8?

Does one enable the other, or does one affect the other? It seems V8 lets native C++ access Javascript, and NaCl lets you run native code in the browser. Sorry for the naive question. I'm behind on recent developments in Javascript, was surprised…
ina
  • 19,167
  • 39
  • 122
  • 201
0
votes
2 answers

Using a C++ library in Google Native Client

I am completely new to Native Client and unfortunately I am also quite inexperienced with 'make', compiling etc., so I hope you may give me some basic information on how to approach my problem. So what I am trying to accomplish is compiling a C++…
Merion
  • 721
  • 2
  • 13
  • 24
0
votes
2 answers

Google Chrome Native and Sandbox Disk Security

How secure is the Google Native Sandbox Disk? If a sandbox application using google native APIs was to place a highly secure file in the Chrome Sandbox Disk, is it possible for an program outside of Chrome or another Chrome Native client to get…
0
votes
1 answer

PepperMount Write operation fails

Am trying to store files in NACL using PepperMount library. But I've some problem in writing files to the persistent storage. struct stat st; char data1[1000]; for (int i = 0; i < 1000; i++) data1[i] = 'a'; if(0 == ppMount->Creat("ccda.txt", 0,…
codetiger
  • 2,650
  • 20
  • 37
0
votes
1 answer

Chrome extension to launch on file open

I'm about to start a Chrome packaged app project which will include a NaCl component to parse CHM files. But before I start, I just want to check if it's possible to get the app to automatically launch when a CHM is opened (when the users clicks on…
0
votes
1 answer

How to set up Linker Flags when developing Google Pepper Trusted Plugin with C++ API

Hi everyone, I am trying to build a Chromium Trusted Plugin (no sandboxed NaCl-Plugin) using the Pepper API (version 16) on Linux. "Trusted Plugin" means that I am passing the path to my Plugin when starting Chrome, the Plugin get's loaded in…
Pantonaut
  • 191
  • 1
  • 8
0
votes
1 answer

embedded http server in c++ for chrome extension native client

i was trying to find some examples that would give me some pointers on how to create an http server within a chrome extension, but haven't had any luck. does anyone know a how to start an NPAPI,NACL http server? Thanks
0
votes
1 answer

Best way to add an javascript-jquery-and-nacl page in drupal 7?

I have an html page that calls some javascript and jQuery functions and also has an 'embed' tag to load a NaCl (native client) module. The page works fine as is but now I would like to build a web site that serves this page. I have set up a drupal 7…
Baba
  • 475
  • 6
  • 19
0
votes
1 answer

Deprecated PPAPI scripting plugins chrome

I need an example NaCl plugin with usage of scripting plugins with deprecated PPAPI (please, read below). I have to develop a plugin using an old, deprecated scripting plugins from PPAPI (please, see…
1 2 3
29
30