OLD | NEW |
1 {{+bindTo:partials.standard_nacl_article}} | 1 {{+bindTo:partials.standard_nacl_article}} |
2 | 2 |
3 <section id="download-the-native-client-sdk"> | 3 <section id="download-the-native-client-sdk"> |
4 <span id="download"></span><h1 id="download-the-native-client-sdk"><span id="dow
nload"></span>Download the Native Client SDK</h1> | 4 <span id="download"></span><h1 id="download-the-native-client-sdk"><span id="dow
nload"></span>Download the Native Client SDK</h1> |
5 <p>To build Native Client modules, you must download and install the Native | 5 <p>To build Native Client modules, you must download and install the Native |
6 Client Software Development Kit (SDK). This page provides an overview | 6 Client Software Development Kit (SDK). This page provides an overview |
7 of the Native Client SDK, and instructions for how to download and | 7 of the Native Client SDK, and instructions for how to download and |
8 install the SDK.</p> | 8 install the SDK.</p> |
9 <section id="overview"> | |
10 <h2 id="overview">Overview</h2> | 9 <h2 id="overview">Overview</h2> |
11 <p>The Native Client SDK includes the following:</p> | 10 <p>The Native Client SDK includes the following:</p> |
12 <dl class="docutils"> | 11 <dl class="docutils"> |
13 <dt>support for multiple Pepper versions</dt> | 12 <dt>support for multiple Pepper versions</dt> |
14 <dd>The SDK contains <strong>bundles</strong> that let you compile Native Client
modules | 13 <dd>The SDK contains <strong>bundles</strong> that let you compile Native Client
modules |
15 using different versions of the | 14 using different versions of the |
16 <a class="reference internal" href="/native-client/overview.html#link-pepper"><e
m>Pepper Plugin API</em></a> (e.g., Pepper 31 or Pepper Canary). Review the | 15 <a class="reference internal" href="/native-client/overview.html#link-pepper"><e
m>Pepper Plugin API</em></a> (e.g., Pepper 31 or Pepper Canary). Review the |
17 <a class="reference internal" href="/native-client/sdk/release-notes.html"><em>R
elease Notes</em></a> for a description of the new features | 16 <a class="reference internal" href="/native-client/sdk/release-notes.html"><em>R
elease Notes</em></a> for a description of the new features |
18 included in each Pepper version to help you decide which bundle to | 17 included in each Pepper version to help you decide which bundle to |
19 use to develop your application. In general, Native Client modules | 18 use to develop your application. In general, Native Client modules |
(...skipping 17 matching lines...) Expand all Loading... |
37 <dt>examples</dt> | 36 <dt>examples</dt> |
38 <dd>Each example in the SDK includes C or C++ source files and header files | 37 <dd>Each example in the SDK includes C or C++ source files and header files |
39 illustrating how to use NaCl and Pepper, along with a Makefile to build | 38 illustrating how to use NaCl and Pepper, along with a Makefile to build |
40 the example using each of the toolchains.</dd> | 39 the example using each of the toolchains.</dd> |
41 <dt>tools</dt> | 40 <dt>tools</dt> |
42 <dd>The SDK includes a number of additional tools that you can use for | 41 <dd>The SDK includes a number of additional tools that you can use for |
43 tasks such as validating Native Client modules and running modules | 42 tasks such as validating Native Client modules and running modules |
44 from the command line.</dd> | 43 from the command line.</dd> |
45 </dl> | 44 </dl> |
46 <p>Follow the steps below to download and install the Native Client SDK.</p> | 45 <p>Follow the steps below to download and install the Native Client SDK.</p> |
47 </section><section id="prerequisites"> | |
48 <h2 id="prerequisites">Prerequisites</h2> | 46 <h2 id="prerequisites">Prerequisites</h2> |
49 <ul class="small-gap"> | 47 <ul class="small-gap"> |
50 <li><p class="first"><strong>Python:</strong> Make sure you have Python 2.6 or 2
.7 installed, and that the | 48 <li><p class="first"><strong>Python:</strong> Make sure you have Python 2.6 or 2
.7 installed, and that the |
51 Python executable is in your path.</p> | 49 Python executable is in your path.</p> |
52 <ul class="small-gap"> | 50 <ul class="small-gap"> |
53 <li>On Mac/Linux, Python is likely preinstalled. Run the command <code>"pyt
hon | 51 <li>On Mac/Linux, Python is likely preinstalled. Run the command <code>"pyt
hon |
54 -V</code>” in a terminal window, and make sure that the version of Python
you | 52 -V</code>” in a terminal window, and make sure that the version of Python
you |
55 have is 2.6.x or 2.7.x (if it’s not, upgrade to one of those versions).</l
i> | 53 have is 2.6.x or 2.7.x (if it’s not, upgrade to one of those versions).</l
i> |
56 <li>On Windows, you may need to install Python. Go to | 54 <li>On Windows, you may need to install Python. Go to |
57 <a class="reference external" href="http://www.python.org/download/">http://www.
python.org/download/</a> and | 55 <a class="reference external" href="http://www.python.org/download/">http://www.
python.org/download/</a> and |
(...skipping 10 matching lines...) Expand all Loading... |
68 before you can build and run the examples in the SDK. One easy way to get | 66 before you can build and run the examples in the SDK. One easy way to get |
69 <code>make</code>, along with several other useful tools, is to install | 67 <code>make</code>, along with several other useful tools, is to install |
70 <a class="reference external" href="https://developer.apple.com/technologies/too
ls/">Xcode Developer Tools</a>. | 68 <a class="reference external" href="https://developer.apple.com/technologies/too
ls/">Xcode Developer Tools</a>. |
71 After installing Xcode, go to the Preferences menu, select | 69 After installing Xcode, go to the Preferences menu, select |
72 Downloads and Components, and verify that Command Line Tools are installed. | 70 Downloads and Components, and verify that Command Line Tools are installed. |
73 If you’d rather not install Xcode, you can download and build an | 71 If you’d rather not install Xcode, you can download and build an |
74 <a class="reference external" href="http://mac.softpedia.com/dyn-postdownload.ph
p?p=44632&t=4&i=1">open source version</a> of | 72 <a class="reference external" href="http://mac.softpedia.com/dyn-postdownload.ph
p?p=44632&t=4&i=1">open source version</a> of |
75 <code>make</code>. In order to build the command you may also need to download a
nd | 73 <code>make</code>. In order to build the command you may also need to download a
nd |
76 install a copy of <a class="reference external" href="https://github.com/kenneth
reitz/osx-gcc-installer">gcc</a>.</li> | 74 install a copy of <a class="reference external" href="https://github.com/kenneth
reitz/osx-gcc-installer">gcc</a>.</li> |
77 </ul> | 75 </ul> |
78 </section><section id="download-and-install-the-sdk"> | |
79 <h2 id="download-and-install-the-sdk">Download and install the SDK</h2> | 76 <h2 id="download-and-install-the-sdk">Download and install the SDK</h2> |
80 <ol class="arabic"> | 77 <ol class="arabic"> |
81 <li><p class="first">Download the SDK update utility: <a class="reference extern
al" href="http://storage.googleapis.com/nativeclient-mirror/nacl/nacl_sdk/nacl_s
dk.zip">nacl_sdk.zip</a>.</p> | 78 <li><p class="first">Download the SDK update utility: <a class="reference extern
al" href="http://storage.googleapis.com/nativeclient-mirror/nacl/nacl_sdk/nacl_s
dk.zip">nacl_sdk.zip</a>.</p> |
82 </li> | 79 </li> |
83 <li><p class="first">Unzip the SDK update utility:</p> | 80 <li><p class="first">Unzip the SDK update utility:</p> |
84 <ul class="small-gap"> | 81 <ul class="small-gap"> |
85 <li><p class="first">On Mac/Linux, run the command “<code>unzip nacl_sdk.z
ip</code>” in a terminal | 82 <li><p class="first">On Mac/Linux, run the command “<code>unzip nacl_sdk.z
ip</code>” in a terminal |
86 window.</p> | 83 window.</p> |
87 </li> | 84 </li> |
88 <li><p class="first">On Windows, right-click on the .zip file and select “
Extract All...”. A | 85 <li><p class="first">On Windows, right-click on the .zip file and select “
Extract All...”. A |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 <pre class="prettyprint"> | 159 <pre class="prettyprint"> |
163 $ ./naclsdk update pepper_32 | 160 $ ./naclsdk update pepper_32 |
164 </pre> | 161 </pre> |
165 <p>Note that you never need to update the <code>sdk_tools</code> bundle—it
is | 162 <p>Note that you never need to update the <code>sdk_tools</code> bundle—it
is |
166 updated automatically (if necessary) whenever you run <code>naclsdk</code>.</p> | 163 updated automatically (if necessary) whenever you run <code>naclsdk</code>.</p> |
167 </li> | 164 </li> |
168 </ol> | 165 </ol> |
169 <aside class="note"> | 166 <aside class="note"> |
170 The minimum SDK bundle that supports PNaCl is <code>pepper_31</code>. | 167 The minimum SDK bundle that supports PNaCl is <code>pepper_31</code>. |
171 </aside> | 168 </aside> |
172 </section><section id="staying-up-to-date-and-getting-new-versions-of-bundles"> | |
173 <h2 id="staying-up-to-date-and-getting-new-versions-of-bundles">Staying up-to-da
te and getting new versions of bundles</h2> | 169 <h2 id="staying-up-to-date-and-getting-new-versions-of-bundles">Staying up-to-da
te and getting new versions of bundles</h2> |
174 <ol class="arabic"> | 170 <ol class="arabic"> |
175 <li><p class="first">Run <code>naclsdk</code> with the “list” comman
d again; this will show you the list of | 171 <li><p class="first">Run <code>naclsdk</code> with the “list” comman
d again; this will show you the list of |
176 available bundles and verify which bundles you have installed.</p> | 172 available bundles and verify which bundles you have installed.</p> |
177 <p>On Mac/Linux:</p> | 173 <p>On Mac/Linux:</p> |
178 <pre class="prettyprint"> | 174 <pre class="prettyprint"> |
179 $ ./naclsdk list | 175 $ ./naclsdk list |
180 </pre> | 176 </pre> |
181 <p>On Windows:</p> | 177 <p>On Windows:</p> |
182 <pre class="prettyprint"> | 178 <pre class="prettyprint"> |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 <p>Next steps:</p> | 262 <p>Next steps:</p> |
267 <ul class="small-gap"> | 263 <ul class="small-gap"> |
268 <li>Browse through the <a class="reference internal" href="/native-client/sdk/re
lease-notes.html"><em>Release Notes</em></a> for important | 264 <li>Browse through the <a class="reference internal" href="/native-client/sdk/re
lease-notes.html"><em>Release Notes</em></a> for important |
269 information about the SDK and new bundles.</li> | 265 information about the SDK and new bundles.</li> |
270 <li>If you’re just getting started with Native Client, we recommend readin
g | 266 <li>If you’re just getting started with Native Client, we recommend readin
g |
271 the <a class="reference internal" href="/native-client/overview.html"><em>Techni
cal Overview</em></a> and walking through the | 267 the <a class="reference internal" href="/native-client/overview.html"><em>Techni
cal Overview</em></a> and walking through the |
272 <a class="reference internal" href="/native-client/devguide/tutorial/tutorial-pa
rt1.html"><em>Getting Started Tutorial</em></a>.</li> | 268 <a class="reference internal" href="/native-client/devguide/tutorial/tutorial-pa
rt1.html"><em>Getting Started Tutorial</em></a>.</li> |
273 <li>If you’d rather dive into information about the toolchains, see | 269 <li>If you’d rather dive into information about the toolchains, see |
274 <a class="reference internal" href="/native-client/devguide/devcycle/building.ht
ml"><em>Building Native Client Modules</em></a>.</li> | 270 <a class="reference internal" href="/native-client/devguide/devcycle/building.ht
ml"><em>Building Native Client Modules</em></a>.</li> |
275 </ul> | 271 </ul> |
276 </section></section> | 272 </section> |
277 | 273 |
278 {{/partials.standard_nacl_article}} | 274 {{/partials.standard_nacl_article}} |
OLD | NEW |