NaCl, Native Client
It is a platform to enable Web application to run native code, possibly compiled in binary language from C++ or another language.
Native Client, abbreviated NaCl, is supported by Chrome 4.0. Firefox supports it through a plugin.
Software required
To develop on Native Client, you will need this software:
- A local server, like Wamp.
- GNU Make to compile the examples.
- Python 2.5 or later for automation scripts.
Programming platform for Native Client
- Download the Native Client distribution specific to an operating system, currently Windows, Linux or MacOS.
- Create a directory, for example nacl, and unpack the contents.
- Read the Getting Started manual.
- Try a demonstration from command line.
- Bookmark the nacl/build/native_client page.
nacl is your installation directory. - Close browsers supporting Native Client.
- Install the plugin at command line with scon.bat on Windows and scon on Unix.
To do this, run scon.bat or scon in /nacl/build/native_client/ - Start a local server as Wamp.
- Perform a check with the test page:
http://localhost:5103/scons-out/nacl-x86-32/staging/examples.html
Who is in the directory /nacl/build/native_client/.
Using with an application
The user normally has nothing to do to use Native Client which works internally to the application.
Activate the plugin on Chrome
Go to the Chrome directory (replace me by the user name):C:\Documents and Settings\me\Local Settings\Application Data\Google\Chrome\Application\
Type:
chrome.exe --internal-nacl --no-sandbox
Tools
- Native Client. The project site on Google Code.
- The Quake game, to compile for NaCl.
(c) 2010 Scriptol.com