build-from-source-tail.rst 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. .. Copyright David Abrahams 2006. Distributed under the Boost
  2. .. Software License, Version 1.0. (See accompanying
  3. .. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. Building the special ``stage`` target places Boost
  5. library binaries in the ``stage``\ |/|\ ``lib``\ |/| subdirectory of your `build
  6. directory`_.
  7. .. Note:: ``bjam`` is case-sensitive; it is important that all the
  8. parts shown in **bold** type above be entirely lower-case.
  9. For a description of other options you can pass when invoking
  10. ``bjam``, type::
  11. bjam --help
  12. In particular, to limit the amount of time spent building, you may
  13. be interested in:
  14. * reviewing the list of library names with ``--show-libraries``
  15. * limiting which libraries get built with the ``--with-``\
  16. *library-name* or ``--without-``\ *library-name* options
  17. * choosing a specific build variant by adding ``release`` or
  18. ``debug`` to the command line.
  19. .. Note:: Boost.Build can produce a great deal of output, which can
  20. make it easy to miss problems. If you want to make sure
  21. everything is went well, you might redirect the output into a
  22. file by appending “``>build.log 2>&1``” to your command line.
  23. Expected Build Output
  24. ---------------------
  25. During the process of building Boost libraries, you can expect to
  26. see some messages printed on the console. These may include
  27. * Notices about Boost library configuration—for example, the Regex
  28. library outputs a message about ICU when built without Unicode
  29. support, and the Python library may be skipped without error (but
  30. with a notice) if you don't have Python installed.
  31. * Messages from the build tool that report the number of targets
  32. that were built or skipped. Don't be surprised if those numbers
  33. don't make any sense to you; there are many targets per library.
  34. * Build action messages describing what the tool is doing, which
  35. look something like:
  36. .. parsed-literal::
  37. *toolset-name*.c++ *long*\ /\ *path*\ /\ *to*\ /\ *file*\ /\ *being*\ /\ *built*
  38. * Compiler warnings.
  39. In Case of Build Errors
  40. -----------------------
  41. The only error messages you see when building Boost—if any—should
  42. be related to the IOStreams library's support of zip and bzip2
  43. formats as described here__. Install the relevant development
  44. packages for libz and libbz2 if you need those features. Other
  45. errors when building Boost libraries are cause for concern.
  46. __ ../../libs/iostreams/doc/installation.html
  47. If it seems like the build system can't find your compiler and/or
  48. linker, consider setting up a ``user-config.jam`` file as described
  49. `here`__. If that isn't your problem or the ``user-config.jam`` file
  50. doesn't work for you, please address questions about configuring Boost
  51. for your compiler to the `Boost.Build mailing list`_.
  52. __ http://www.boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html
粤ICP备19079148号