OLD | NEW |
1 .. _devcycle-building: | 1 .. _devcycle-building: |
2 | 2 |
3 ######## | 3 ######## |
4 Building | 4 Building |
5 ######## | 5 ######## |
6 | 6 |
7 .. contents:: Table Of Contents | 7 .. contents:: Table Of Contents |
8 :local: | 8 :local: |
9 :backlinks: none | 9 :backlinks: none |
10 :depth: 2 | 10 :depth: 2 |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 For example, on Windows, the libraries for the x86-64 architecture in the | 574 For example, on Windows, the libraries for the x86-64 architecture in the |
575 newlib toolchain are in ``toolchain/win_x86_newlib/x86_64-nacl/lib64``. | 575 newlib toolchain are in ``toolchain/win_x86_newlib/x86_64-nacl/lib64``. |
576 | 576 |
577 The header files are in: | 577 The header files are in: |
578 | 578 |
579 * PNaCl toolchain: ``toolchain/<platform>_pnacl/usr/include`` | 579 * PNaCl toolchain: ``toolchain/<platform>_pnacl/usr/include`` |
580 * x86 toolchains: ``toolchain/<platform>_x86_<c_library>/x86_64-nacl/include`` | 580 * x86 toolchains: ``toolchain/<platform>_x86_<c_library>/x86_64-nacl/include`` |
581 * ARM toolchain: ``toolchain/<platform>_arm_<c_library>/arm-nacl/include`` | 581 * ARM toolchain: ``toolchain/<platform>_arm_<c_library>/arm-nacl/include`` |
582 | 582 |
583 Many other libraries have been ported for use with Native Client; for more | 583 Many other libraries have been ported for use with Native Client; for more |
584 information, see the `naclports <http://code.google.com/p/naclports/>`_ | 584 information, see the `webports <https://chromium.googlesource.com/webports>`_ |
585 project. If you port an open-source library for your own use, we recommend | 585 project. If you port an open-source library for your own use, we recommend |
586 adding it to naclports. | 586 adding it to webports. |
587 | 587 |
588 Besides the standard libraries, the SDK includes Pepper libraries. | 588 Besides the standard libraries, the SDK includes Pepper libraries. |
589 The PNaCl Pepper libraries are located in the the | 589 The PNaCl Pepper libraries are located in the the |
590 ``nacl_sdk/pepper_<version>/lib/pnacl/<Release or Debug>`` directory. | 590 ``nacl_sdk/pepper_<version>/lib/pnacl/<Release or Debug>`` directory. |
591 The GNU-based toolchain has Pepper libraries in | 591 The GNU-based toolchain has Pepper libraries in |
592 ``nacl_sdk/pepper_<version>/lib/newlib_<arch>/<Release or Debug>`` | 592 ``nacl_sdk/pepper_<version>/lib/newlib_<arch>/<Release or Debug>`` |
593 and ``nacl_sdk/pepper_<version>/lib/glibc_<arch>/<Release or Debug>``. | 593 and ``nacl_sdk/pepper_<version>/lib/glibc_<arch>/<Release or Debug>``. |
594 The libraries provided by the SDK allow the application to use Pepper, | 594 The libraries provided by the SDK allow the application to use Pepper, |
595 as well as convenience libraries to simplify porting an application that | 595 as well as convenience libraries to simplify porting an application that |
596 uses POSIX functions. Here are descriptions of the Pepper libraries provided | 596 uses POSIX functions. Here are descriptions of the Pepper libraries provided |
(...skipping 29 matching lines...) Expand all Loading... |
626 details see ``include/ppapi_simple/ps.h``. For an example of | 626 details see ``include/ppapi_simple/ps.h``. For an example of |
627 how to use ppapi_simple, ``see examples/tutorial/using_ppapi_simple``. | 627 how to use ppapi_simple, ``see examples/tutorial/using_ppapi_simple``. |
628 | 628 |
629 | 629 |
630 .. Note:: | 630 .. Note:: |
631 :class: note | 631 :class: note |
632 | 632 |
633 * Since the Native Client toolchains use their own library and header search | 633 * Since the Native Client toolchains use their own library and header search |
634 paths, the tools won't find third-party libraries you use in your | 634 paths, the tools won't find third-party libraries you use in your |
635 non-Native-Client development. If you want to use a specific third-party | 635 non-Native-Client development. If you want to use a specific third-party |
636 library for Native Client development, look for it in `naclports | 636 library for Native Client development, look for it in `webports |
637 <http://code.google.com/p/naclports/>`_, or port the library yourself. | 637 <https://chromium.googlesource.com/webports>`_, or port the library yourself
. |
638 * The order in which you list libraries in your build commands is important, | 638 * The order in which you list libraries in your build commands is important, |
639 since the linker searches and processes libraries in the order in which they | 639 since the linker searches and processes libraries in the order in which they |
640 are specified. See the ``\*_LDFLAGS`` variables in the Makefiles of the SDK | 640 are specified. See the ``\*_LDFLAGS`` variables in the Makefiles of the SDK |
641 examples for the order in which specific libraries should be listed. | 641 examples for the order in which specific libraries should be listed. |
642 | 642 |
643 Troubleshooting | 643 Troubleshooting |
644 =============== | 644 =============== |
645 | 645 |
646 Some common problems, and how to fix them: | 646 Some common problems, and how to fix them: |
647 | 647 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 Function foo has disallowed type: i128 (i128) | 713 Function foo has disallowed type: i128 (i128) |
714 LLVM ERROR: PNaCl ABI verification failed | 714 LLVM ERROR: PNaCl ABI verification failed |
715 | 715 |
716 When faced with a PNaCl ABI verification error, check the list of features | 716 When faced with a PNaCl ABI verification error, check the list of features |
717 that are :ref:`not supported by PNaCl <when-to-use-nacl>`. | 717 that are :ref:`not supported by PNaCl <when-to-use-nacl>`. |
718 If the problem you face is not listed as restricted, | 718 If the problem you face is not listed as restricted, |
719 :ref:`let us know <help>`! | 719 :ref:`let us know <help>`! |
720 | 720 |
721 .. _glibc: http://www.gnu.org/software/libc/ | 721 .. _glibc: http://www.gnu.org/software/libc/ |
722 .. _newlib: http://sourceware.org/newlib/ | 722 .. _newlib: http://sourceware.org/newlib/ |
OLD | NEW |