OLD | NEW |
1 {{+bindTo:partials.standard_nacl_article}} | 1 {{+bindTo:partials.standard_nacl_article}} |
2 | 2 |
3 <section id="building"> | 3 <section id="building"> |
4 <span id="devcycle-building"></span><h1 id="building"><span id="devcycle-buildin
g"></span>Building</h1> | 4 <span id="devcycle-building"></span><h1 id="building"><span id="devcycle-buildin
g"></span>Building</h1> |
5 <div class="contents local" id="table-of-contents" style="display: none"> | 5 <div class="contents local" id="table-of-contents" style="display: none"> |
6 <p class="topic-title first">Table Of Contents</p> | 6 <p class="topic-title first">Table Of Contents</p> |
7 <ul class="small-gap"> | 7 <ul class="small-gap"> |
8 <li><p class="first"><a class="reference internal" href="#introduction" id="id4"
>Introduction</a></p> | 8 <li><p class="first"><a class="reference internal" href="#introduction" id="id4"
>Introduction</a></p> |
9 <ul class="small-gap"> | 9 <ul class="small-gap"> |
10 <li><a class="reference internal" href="#target-architectures" id="id5">Target a
rchitectures</a></li> | 10 <li><a class="reference internal" href="#target-architectures" id="id5">Target a
rchitectures</a></li> |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 </ul> | 474 </ul> |
475 <p>For example, on Windows, the libraries for the x86-64 architecture in the | 475 <p>For example, on Windows, the libraries for the x86-64 architecture in the |
476 newlib toolchain are in <code>toolchain/win_x86_newlib/x86_64-nacl/lib64</code>.
</p> | 476 newlib toolchain are in <code>toolchain/win_x86_newlib/x86_64-nacl/lib64</code>.
</p> |
477 <p>The header files are in:</p> | 477 <p>The header files are in:</p> |
478 <ul class="small-gap"> | 478 <ul class="small-gap"> |
479 <li>PNaCl toolchain: <code>toolchain/<platform>_pnacl/usr/include</code></
li> | 479 <li>PNaCl toolchain: <code>toolchain/<platform>_pnacl/usr/include</code></
li> |
480 <li>x86 toolchains: <code>toolchain/<platform>_x86_<c_library>/x86_6
4-nacl/include</code></li> | 480 <li>x86 toolchains: <code>toolchain/<platform>_x86_<c_library>/x86_6
4-nacl/include</code></li> |
481 <li>ARM toolchain: <code>toolchain/<platform>_arm_<c_library>/arm-na
cl/include</code></li> | 481 <li>ARM toolchain: <code>toolchain/<platform>_arm_<c_library>/arm-na
cl/include</code></li> |
482 </ul> | 482 </ul> |
483 <p>Many other libraries have been ported for use with Native Client; for more | 483 <p>Many other libraries have been ported for use with Native Client; for more |
484 information, see the <a class="reference external" href="http://code.google.com/
p/naclports/">naclports</a> | 484 information, see the <a class="reference external" href="https://chromium.google
source.com/webports">webports</a> |
485 project. If you port an open-source library for your own use, we recommend | 485 project. If you port an open-source library for your own use, we recommend |
486 adding it to naclports.</p> | 486 adding it to webports.</p> |
487 <p>Besides the standard libraries, the SDK includes Pepper libraries. | 487 <p>Besides the standard libraries, the SDK includes Pepper libraries. |
488 The PNaCl Pepper libraries are located in the the | 488 The PNaCl Pepper libraries are located in the the |
489 <code>nacl_sdk/pepper_<version>/lib/pnacl/<Release or Debug></code>
directory. | 489 <code>nacl_sdk/pepper_<version>/lib/pnacl/<Release or Debug></code>
directory. |
490 The GNU-based toolchain has Pepper libraries in | 490 The GNU-based toolchain has Pepper libraries in |
491 <code>nacl_sdk/pepper_<version>/lib/newlib_<arch>/<Release or Deb
ug></code> | 491 <code>nacl_sdk/pepper_<version>/lib/newlib_<arch>/<Release or Deb
ug></code> |
492 and <code>nacl_sdk/pepper_<version>/lib/glibc_<arch>/<Release or
Debug></code>. | 492 and <code>nacl_sdk/pepper_<version>/lib/glibc_<arch>/<Release or
Debug></code>. |
493 The libraries provided by the SDK allow the application to use Pepper, | 493 The libraries provided by the SDK allow the application to use Pepper, |
494 as well as convenience libraries to simplify porting an application that | 494 as well as convenience libraries to simplify porting an application that |
495 uses POSIX functions. Here are descriptions of the Pepper libraries provided | 495 uses POSIX functions. Here are descriptions of the Pepper libraries provided |
496 in the SDK.</p> | 496 in the SDK.</p> |
(...skipping 20 matching lines...) Expand all Loading... |
517 simple <code>main()</code> entry point. The entry point is similar to the stand
ard C | 517 simple <code>main()</code> entry point. The entry point is similar to the stand
ard C |
518 <code>main()</code> function, complete with <code>argc</code> and <code>argv[]</
code> parameters. For | 518 <code>main()</code> function, complete with <code>argc</code> and <code>argv[]</
code> parameters. For |
519 details see <code>include/ppapi_simple/ps.h</code>. For an example of | 519 details see <code>include/ppapi_simple/ps.h</code>. For an example of |
520 how to use ppapi_simple, <code>see examples/tutorial/using_ppapi_simple</code>.<
/dd> | 520 how to use ppapi_simple, <code>see examples/tutorial/using_ppapi_simple</code>.<
/dd> |
521 </dl> | 521 </dl> |
522 <aside class="note"> | 522 <aside class="note"> |
523 <ul class="small-gap"> | 523 <ul class="small-gap"> |
524 <li>Since the Native Client toolchains use their own library and header search | 524 <li>Since the Native Client toolchains use their own library and header search |
525 paths, the tools won’t find third-party libraries you use in your | 525 paths, the tools won’t find third-party libraries you use in your |
526 non-Native-Client development. If you want to use a specific third-party | 526 non-Native-Client development. If you want to use a specific third-party |
527 library for Native Client development, look for it in <a class="reference extern
al" href="http://code.google.com/p/naclports/">naclports</a>, or port the librar
y yourself.</li> | 527 library for Native Client development, look for it in <a class="reference extern
al" href="https://chromium.googlesource.com/webports">webports</a>, or port the
library yourself.</li> |
528 <li>The order in which you list libraries in your build commands is important, | 528 <li>The order in which you list libraries in your build commands is important, |
529 since the linker searches and processes libraries in the order in which they | 529 since the linker searches and processes libraries in the order in which they |
530 are specified. See the <code>\*_LDFLAGS</code> variables in the Makefiles of the
SDK | 530 are specified. See the <code>\*_LDFLAGS</code> variables in the Makefiles of the
SDK |
531 examples for the order in which specific libraries should be listed.</li> | 531 examples for the order in which specific libraries should be listed.</li> |
532 </ul> | 532 </ul> |
533 | 533 |
534 </aside> | 534 </aside> |
535 <h2 id="troubleshooting">Troubleshooting</h2> | 535 <h2 id="troubleshooting">Troubleshooting</h2> |
536 <p>Some common problems, and how to fix them:</p> | 536 <p>Some common problems, and how to fix them:</p> |
537 <h3 id="undefined-reference-error">“Undefined reference” error</h3> | 537 <h3 id="undefined-reference-error">“Undefined reference” error</h3> |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 Function foo has disallowed type: i128 (i128) | 585 Function foo has disallowed type: i128 (i128) |
586 LLVM ERROR: PNaCl ABI verification failed | 586 LLVM ERROR: PNaCl ABI verification failed |
587 </pre> | 587 </pre> |
588 <p>When faced with a PNaCl ABI verification error, check the list of features | 588 <p>When faced with a PNaCl ABI verification error, check the list of features |
589 that are <a class="reference internal" href="/native-client/nacl-and-pnacl.html#
when-to-use-nacl"><em>not supported by PNaCl</em></a>. | 589 that are <a class="reference internal" href="/native-client/nacl-and-pnacl.html#
when-to-use-nacl"><em>not supported by PNaCl</em></a>. |
590 If the problem you face is not listed as restricted, | 590 If the problem you face is not listed as restricted, |
591 <a class="reference internal" href="/native-client/help.html#help"><em>let us kn
ow</em></a>!</p> | 591 <a class="reference internal" href="/native-client/help.html#help"><em>let us kn
ow</em></a>!</p> |
592 </section> | 592 </section> |
593 | 593 |
594 {{/partials.standard_nacl_article}} | 594 {{/partials.standard_nacl_article}} |
OLD | NEW |