google的Native Client SDK,好东西啊,自己保存一下----chrome for future
2013-03-15 17:43
330 查看
https://developers.google.com/native-client/sdk/download?hl=zh-CN
Prerequisites:
Make sure you have Python 2.6 or 2.7 installed, and that the Python executable is in your path.
On Mac/Linux, Python is probably preinstalled. Run the command "
On Windows, you may need to install Python. Go to http://www.python.org/download/ and select the latest 2.x version. In addition, be sure to add the Python directory (for example,
Note that Python 3.x is not yet supported.
On the Mac, you need to install the
Download the SDK update utility: nacl_sdk.zip.
Unzip the SDK update utility:
On Mac/Linux, run the command "
On Windows, right-click on the .zip file and select "Extract All…". A dialog box will open; enter a location and click "Extract".
Unzipping the SDK update utility creates a directory called
Go to the
On Mac/Linux:
On Windows:
You should see output similar to this:
This sample output shows that there are three bundles available for download, and that you have already installed the latest revision of the
Run
On Mac/Linux:
On Windows:
By default,
Continuing with the earlier example, if you run
Note that the toolchains for Mac and Linux are around 150 MB, so the downloads can take a while, even on a fast Internet connection.
Run
On Mac/Linux:
On Windows:
Continuing with the earlier example, if you previously downloaded all of the available bundles, you should see output similar to this:
Running
On Mac/Linux:
On Windows:
Continuing with the earlier example in which the
If there is a new version of a previously installed bundle, the update utility will warn you with a message similar to this:
To dowload the new version of a bundle and overwrite the existing directory for that bundle, run
On Mac/Linux:
On Windows:
Next steps:
Browse through the Release Notes for important information about the SDK and new bundles.
If you're just getting started with Native Client, we recommend reading the Technical Overview and walking through the Getting Started Tutorial.
If you'd rather dive into information about the toolchains, see Building Native Client Modules.
Download the Native Client SDK
Follow the steps below to download and install the SDK:Prerequisites:
Make sure you have Python 2.6 or 2.7 installed, and that the Python executable is in your path.
On Mac/Linux, Python is probably preinstalled. Run the command "
python ‑V" in a terminal window, and make sure that the version of Python you have is 2.6.x or 2.7.x (if it's not, upgrade to one of those versions).
On Windows, you may need to install Python. Go to http://www.python.org/download/ and select the latest 2.x version. In addition, be sure to add the Python directory (for example,
C:\python27) to the PATH environment variable. After you've installed Python, run the command "
python ‑V" in a Command Prompt window and verify that the version of Python you have is 2.6.x or 2.7.x.
Note that Python 3.x is not yet supported.
On the Mac, you need to install the
makecommand on your system before you can build and run the examples. One easy way to get
make, along with several other useful tools, is to install Xcode Developer Tools. After installing Xcode, go to the Preferences menu, select Downloads and Components, and verify that Command Line Tools are installed. If you'd rather not install Xcode, you can download and build an open source version of
make. In order to build the command you may also need to download and install a copy of gcc.
Download the SDK update utility: nacl_sdk.zip.
Unzip the SDK update utility:
On Mac/Linux, run the command "
unzip nacl_sdk.zip" in a Terminal window.
On Windows, right-click on the .zip file and select "Extract All…". A dialog box will open; enter a location and click "Extract".
Unzipping the SDK update utility creates a directory called
nacl_sdkwith the following files and directories:
naclsdk(and
naclsdk.batfor Windows) – the front end of the update utility, i.e., the command you run to download the latest bundles
sdk_cache– a directory with a manifest file that lists the bundles you have already downloaded
sdk_tools– the back end of the update utility, also known as the "sdk_tools" bundle
Go to the
nacl_sdkdirectory and run
naclsdkwith the "list" command to see a list of available bundles. The SDK includes a separate bundle for each version of Chrome/Pepper (see versioning information).
On Mac/Linux:
$ cd nacl_sdk $ ./naclsdk list
On Windows:
> cd nacl_sdk > naclsdk list
You should see output similar to this:
Available bundles: sdk_tools description: Native Client SDK Tools, revision 1.5 stability: stable recommended: yes version: 1 revision: 5 pepper_14 description: Chrome 14 bundle, revision 1052 stability: stable recommended: yes version: 14 revision: 1052 pepper_15 description: Chrome 15 bundle, revision 1208 stability: beta recommended: no version: 15 revision: 1208 Currently installed bundles: sdk_tools description: Native Client SDK Tools, revision 1.5 stability: stable recommended: yes version: 1 revision: 5
This sample output shows that there are three bundles available for download, and that you have already installed the latest revision of the
sdk_toolsbundle (it was included in the zip file you downloaded). In this example note that the
pepper_15bundle has the "recommended" attribute set to "no", meaning that the bundle is still experimental and not yet recommended for general use.
Run
naclsdkwith the "update" command to download particular bundles that are available.
On Mac/Linux:
$ ./naclsdk update
On Windows:
> naclsdk update
By default,
naclsdkonly downloads bundles that are recommended. Continuing with the earlier example, the "update" command would only download the
sdk_toolsand the
pepper_14bundles, since the
pepper_15bundle is not yet recommended. If you want the
pepper_15bundle, you must either ask for it explicitly, or ask to get all of the available bundles. Use one of the commands below:
$ ./naclsdk update pepper_15 # explicitly list the bundle you want to get, or $ ./naclsdk update all # get all available bundles, including experimental bundles
Continuing with the earlier example, if you run
naclsdkwith the "update all" command, you should see output similar to this:
sdk_tools is already up-to-date. Updating bundle pepper_14 to version 14, revision 1052 Updating bundle pepper_15 to version 15, revision 1208
Note that the toolchains for Mac and Linux are around 150 MB, so the downloads can take a while, even on a fast Internet connection.
Run
naclsdkwith the "list" command again; this will show you the list of available bundles and verify which bundles are installed.
On Mac/Linux:
$ ./naclsdk list
On Windows:
> naclsdk list
Continuing with the earlier example, if you previously downloaded all of the available bundles, you should see output similar to this:
Available bundles: sdk_tools description: Native Client SDK Tools, revision 1.5 stability: stable recommended: yes version: 1 revision: 5 pepper_14 description: Chrome 14 bundle, revision 1052 stability: stable recommended: yes version: 14 revision: 1052 pepper_15 description: Chrome 15 bundle, revision 1208 stability: beta recommended: no version: 15 revision: 1208 Currently installed bundles: sdk_tools description: Native Client SDK Tools, revision 1.5 stability: stable recommended: yes version: 1 revision: 5
pepper_14
description: Chrome 14 bundle, revision 1052
stability: stable
recommended: yes
version: 14
revision: 1052
pepper_15
description: Chrome 15 bundle, revision 1208
stability: beta
recommended: no
version: 15
revision: 1208
Running
naclsdkwith the "update" command again will verify that your bundles are up-to-date, or warn if you there are new versions of previously installed bundles.
On Mac/Linux:
$ ./naclsdk update
On Windows:
> naclsdk update
Continuing with the earlier example in which the
pepper_15bundle is not yet recommended, you should see output similar to this:
sdk_tools is already up-to-date. pepper_14 is already up-to-date.
If there is a new version of a previously installed bundle, the update utility will warn you with a message similar to this:
WARNING: pepper_14 already exists, but has an update available. Run update with the --force option to overwrite the existing directory. Warning: This will overwrite any modifications you have made within this directory.
To dowload the new version of a bundle and overwrite the existing directory for that bundle, run
naclsdkwith the
--forceoption.
On Mac/Linux:
$ ./naclsdk update --force
On Windows:
> naclsdk update --force
Next steps:
Browse through the Release Notes for important information about the SDK and new bundles.
If you're just getting started with Native Client, we recommend reading the Technical Overview and walking through the Getting Started Tutorial.
If you'd rather dive into information about the toolchains, see Building Native Client Modules.
相关文章推荐
- Native Client SDK 发布,在 Chrome 里无缝运行本地编译代码
- Google Native Client入门
- 记录一下:chrome上,把网页保存为文件的插件
- 微信JS-SDK选取手机照片上传并下载保存至自己的服务器
- 自己模拟实现一下Google的赛马Doodle
- Google的野心–Native Client+LLVM
- [SAVE]保存一下自己的vim设置
- 【微博SDK调用逻辑】微博SDK的调用逻辑,最好自己还是写一个例子,试一下!!!
- 自己保存一下,安卓常见异常
- MySQL删除某个database的所有数据表 -好东西保存一下
- C# 文件读取方法,自己写的例子,保存一下,备用
- react-native 0.43 后如何使用自己的OkHttpClient
- 搭建google nativeclient ppapi环境
- 用自己的csdn比较了一下Google和百度的搜索
- Java获取随机数的3种方法和总结(正在做一个小游戏 用到了 想总结一下 保存了 以后自己看)
- 保存一下自己比较实用vim的配置
- google打不开?更改一下chrome设置,畅通无阻玩谷歌
- 总结一下,近半年来自己保存的iphone开发相关的网站
- google native client
- 尴尬了,在 Google 自己的 JS 性能测试软件中 Chrome 仅列第三[古奥,2010.3.20](朱佳峰)