Mac OS X, using
macports
First install the
libxslt
,
docbook-xsl
and
docbook-xml-4.2
packages:
sudo port install libxslt docbook-xsl docbook-xml-4.2
Next, we need to configure Boost Build to compile BoostBook files. Add
the following to your
user-config.jam
file, which should be
in your home directory. If you don't have one, create a file containing
this text. For more information on setting up
user-config.jam
,
see the Boost
Build documentation.
using xsltproc
: /opt/local/bin/xsltproc
;
using boostbook
: /opt/local/share/xsl/docbook-xsl/
: /opt/local/share/xml/docbook/4.2
;
The above steps are enough to get a functional BoostBook setup. Quickbook
will be automatically built when needed. If you want to avoid these rebuilds:
-
Go to Quickbook's source directory (
BOOST_ROOT/tools/quickbook
).
-
Build the utility by issuing
bjam
.
-
Copy the resulting
quickbook
binary (located at BOOST_ROOT/dist/bin
)
to a safe place. The traditional location is /usr/local/bin
.
-
Add the following to your
user-config.jam
file, using
the full path of the quickbook executable:
using quickbook
: /usr/local/bin/quickbook
;
If you need to build documentation that uses Doxygen, you will need to
install it as well:
sudo port install doxygen
And then add to your
user-config.jam
:
using doxygen ;
No comments:
Post a Comment