[faa80ab] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[faa80ab] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[778be14] | 7 | <!ENTITY doxygen-download-http "http://ftp.stack.nl/pub/doxygen/doxygen-&doxygen-version;.src.tar.gz">
|
---|
| 8 | <!ENTITY doxygen-download-ftp "ftp://ftp.stack.nl/pub/doxygen/doxygen-&doxygen-version;.src.tar.gz">
|
---|
[1ea1b2de] | 9 | <!ENTITY doxygen-md5sum "3d1a5c26bef358c10a3894f356a69fbc">
|
---|
[420c072] | 10 | <!ENTITY doxygen-size "4.8 MB">
|
---|
[75457cc] | 11 | <!ENTITY doxygen-buildsize "119 MB (with doxywizard - additional 26 MB for docs)">
|
---|
[1ea1b2de] | 12 | <!ENTITY doxygen-time "1.7 SBU (with doxywizard - additional 1 SBU for docs)">
|
---|
[faa80ab] | 13 | ]>
|
---|
| 14 |
|
---|
[cef3a2f] | 15 | <sect1 id="doxygen" xreflabel="Doxygen-&doxygen-version;">
|
---|
[1bbef1e] | 16 | <?dbhtml filename="doxygen.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>Doxygen-&doxygen-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="doxygen">
|
---|
| 26 | <primary sortas="a-Doxygen">Doxygen</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Doxygen</title>
|
---|
| 31 |
|
---|
[8f1699f2] | 32 | <para>
|
---|
| 33 | The <application>Doxygen</application> package contains a documentation
|
---|
| 34 | system for C++, C, Java, Objective-C, Corba IDL and to some extent PHP,
|
---|
| 35 | C# and D. It is useful for generating HTML documentation and/or an
|
---|
| 36 | off-line reference manual from a set of documented source files. There
|
---|
| 37 | is also support for generating output in RTF, PostScript, hyperlinked
|
---|
| 38 | PDF, compressed HTML, and Unix man pages. The documentation is extracted
|
---|
| 39 | directly from the sources, which makes it much easier to keep the
|
---|
| 40 | documentation consistent with the source code.
|
---|
| 41 | </para>
|
---|
| 42 |
|
---|
| 43 | <para>
|
---|
| 44 | You can also configure <application>Doxygen</application> to extract
|
---|
| 45 | the code structure from undocumented source files. This is very useful
|
---|
| 46 | to quickly find your way in large source distributions. Used along with
|
---|
| 47 | <application>Graphviz</application>, you can also visualize the relations
|
---|
| 48 | between the various elements by means of include dependency graphs,
|
---|
| 49 | inheritance diagrams, and collaboration diagrams, which are all generated
|
---|
| 50 | automatically.
|
---|
| 51 | </para>
|
---|
[1bbef1e] | 52 |
|
---|
[718593a] | 53 | &lfs77_checked;
|
---|
[778be14] | 54 |
|
---|
[1bbef1e] | 55 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 56 | <itemizedlist spacing="compact">
|
---|
| 57 | <listitem>
|
---|
[8f1699f2] | 58 | <para>
|
---|
| 59 | Download (HTTP): <ulink url="&doxygen-download-http;"/>
|
---|
| 60 | </para>
|
---|
[1bbef1e] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[8f1699f2] | 63 | <para>
|
---|
| 64 | Download (FTP): <ulink url="&doxygen-download-ftp;"/>
|
---|
| 65 | </para>
|
---|
[1bbef1e] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[8f1699f2] | 68 | <para>
|
---|
| 69 | Download MD5 sum: &doxygen-md5sum;
|
---|
| 70 | </para>
|
---|
[1bbef1e] | 71 | </listitem>
|
---|
| 72 | <listitem>
|
---|
[8f1699f2] | 73 | <para>
|
---|
| 74 | Download size: &doxygen-size;
|
---|
| 75 | </para>
|
---|
[1bbef1e] | 76 | </listitem>
|
---|
| 77 | <listitem>
|
---|
[8f1699f2] | 78 | <para>
|
---|
| 79 | Estimated disk space required: &doxygen-buildsize;
|
---|
| 80 | </para>
|
---|
[1bbef1e] | 81 | </listitem>
|
---|
| 82 | <listitem>
|
---|
[8f1699f2] | 83 | <para>
|
---|
| 84 | Estimated build time: &doxygen-time;
|
---|
| 85 | </para>
|
---|
[1bbef1e] | 86 | </listitem>
|
---|
| 87 | </itemizedlist>
|
---|
| 88 |
|
---|
| 89 | <bridgehead renderas="sect3">Doxygen Dependencies</bridgehead>
|
---|
| 90 |
|
---|
| 91 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[8f1699f2] | 92 | <para role="optional">
|
---|
| 93 | <xref linkend="graphviz"/>,
|
---|
| 94 | <xref linkend="gs"/>,
|
---|
[75457cc] | 95 | <xref linkend="llvm"/> (with clang),
|
---|
| 96 | <xref linkend="python2"/> or <xref linkend="python3"/>,
|
---|
| 97 | <xref linkend="qt4"/> (for doxywizard),
|
---|
[2d98031c] | 98 | <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>) and
|
---|
[75457cc] | 99 | <xref linkend="xapian"/> (for doxyindexer)
|
---|
[8f1699f2] | 100 | </para>
|
---|
[1bbef1e] | 101 |
|
---|
[1039de3] | 102 | <para condition="html" role="usernotes">User Notes:
|
---|
[8f1699f2] | 103 | <ulink url="&blfs-wiki;/doxygen"/>
|
---|
| 104 | </para>
|
---|
[1bbef1e] | 105 | </sect2>
|
---|
| 106 |
|
---|
| 107 | <sect2 role="installation">
|
---|
| 108 | <title>Installation of Doxygen</title>
|
---|
| 109 |
|
---|
[8f1699f2] | 110 | <para>
|
---|
| 111 | Install <application>Doxygen</application> by running the following
|
---|
| 112 | commands:
|
---|
| 113 | </para>
|
---|
[1bbef1e] | 114 |
|
---|
[e41e360] | 115 | <screen><userinput>./configure --prefix /usr \
|
---|
[199a5c9a] | 116 | --docdir /usr/share/doc/doxygen-&doxygen-version; &&
|
---|
[1bbef1e] | 117 | make</userinput></screen>
|
---|
[d260aaf4] | 118 |
|
---|
[8f1699f2] | 119 | <para>
|
---|
| 120 | This package does not come with a test suite.
|
---|
| 121 | </para>
|
---|
[a1fd0f2] | 122 |
|
---|
[8f1699f2] | 123 | <para>
|
---|
| 124 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 125 | </para>
|
---|
[d260aaf4] | 126 |
|
---|
[2a00b77] | 127 | <screen role="root"><userinput>make MAN1DIR=share/man/man1 install</userinput></screen>
|
---|
[faa80ab] | 128 |
|
---|
[8f1699f2] | 129 | <para>
|
---|
| 130 | If you wish to generate and install the package documentation
|
---|
| 131 | (note that man pages have already been installed), you must have
|
---|
[0d7900a] | 132 | <application>Python</application>,
|
---|
[8f1699f2] | 133 | <application>TeX Live</application> (for HTML docs) and
|
---|
| 134 | <application>Ghostscript</application> (for PDF docs)
|
---|
| 135 | installed, then issue the following command as the
|
---|
| 136 | <systemitem class="username">root</systemitem> user:
|
---|
| 137 | </para>
|
---|
[a1fd0f2] | 138 |
|
---|
| 139 | <screen role="root"><userinput>make install_docs</userinput></screen>
|
---|
| 140 |
|
---|
[1bbef1e] | 141 | </sect2>
|
---|
| 142 |
|
---|
| 143 | <sect2 role="commands">
|
---|
| 144 | <title>Command Explanations</title>
|
---|
| 145 |
|
---|
[8f1699f2] | 146 | <para>
|
---|
[75457cc] | 147 | <option>--with-doxywizard</option>: Use this switch if
|
---|
| 148 | <application>Qt4</application> is installed and you wish to build the GUI
|
---|
| 149 | front-end. If both <application>Qt4</application> and
|
---|
| 150 | <application>Qt5</application> are installed, use <command>source
|
---|
| 151 | setqt4</command>. If <application>Qt4</application> is installed in
|
---|
| 152 | <filename class="directory">/opt</filename>, issue <command>export
|
---|
| 153 | QTDIR=$QT4DIR</command>.
|
---|
[8f1699f2] | 154 | </para>
|
---|
[1bbef1e] | 155 |
|
---|
[75457cc] | 156 | <para>
|
---|
| 157 | <option>--with-doxysearch</option>: Use this switch if
|
---|
| 158 | <application>xapian</application> is installed and you wish to build
|
---|
[38b3eab] | 159 | external search tools (<command>doxysearch.cgi</command> and
|
---|
| 160 | <command>doxyindexer)</command>.
|
---|
[75457cc] | 161 | </para>
|
---|
| 162 |
|
---|
| 163 | <para>
|
---|
| 164 | <option>--with-libclang</option>: Use this switch if
|
---|
| 165 | <application>llvm</application> with <application>clang</application> are
|
---|
| 166 | installed, to add support for libclang parsing.</para>
|
---|
[a1fd0f2] | 167 | </sect2>
|
---|
[1bbef1e] | 168 |
|
---|
[a1fd0f2] | 169 | <sect2 role="configuration">
|
---|
| 170 | <title>Configuring Doxygen</title>
|
---|
[1bbef1e] | 171 |
|
---|
[8f1699f2] | 172 | <para>
|
---|
| 173 | There is no real configuration necessary for the
|
---|
| 174 | <application>Doxygen</application> package although three additional
|
---|
| 175 | packages are required if you wish to use extended capabilities. If you
|
---|
| 176 | need to use the language translation features, you must have <xref
|
---|
| 177 | linkend="python2"/> installed. If you require formulas to create PDF
|
---|
| 178 | documentation, then you must have <xref linkend="texlive"/> installed.
|
---|
| 179 | If you require formulas to convert PostScript files to bitmaps, then
|
---|
| 180 | you must have <xref linkend="gs"/> installed.
|
---|
| 181 | </para>
|
---|
[1bbef1e] | 182 |
|
---|
| 183 | </sect2>
|
---|
| 184 |
|
---|
| 185 | <sect2 role="content">
|
---|
| 186 | <title>Contents</title>
|
---|
| 187 |
|
---|
| 188 | <segmentedlist>
|
---|
| 189 | <segtitle>Installed Programs</segtitle>
|
---|
[c3c56b2] | 190 | <segtitle>Installed Libraries</segtitle>
|
---|
[1bbef1e] | 191 | <segtitle>Installed Directory</segtitle>
|
---|
| 192 |
|
---|
| 193 | <seglistitem>
|
---|
[8f1699f2] | 194 | <seg>
|
---|
[75457cc] | 195 | doxygen and optionally,
|
---|
| 196 | doxywizard, doxyindexer and doxysearch.cgi
|
---|
[8f1699f2] | 197 | </seg>
|
---|
[c3c56b2] | 198 | <seg>
|
---|
| 199 | None
|
---|
| 200 | </seg>
|
---|
[8f1699f2] | 201 | <seg>
|
---|
| 202 | /usr/share/doc/doxygen-&doxygen-version;
|
---|
| 203 | </seg>
|
---|
[1bbef1e] | 204 | </seglistitem>
|
---|
| 205 | </segmentedlist>
|
---|
| 206 |
|
---|
| 207 | <variablelist>
|
---|
| 208 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 209 | <?dbfo list-presentation="list"?>
|
---|
| 210 | <?dbhtml list-presentation="table"?>
|
---|
| 211 |
|
---|
| 212 | <varlistentry id="doxygen-prog">
|
---|
| 213 | <term><command>doxygen</command></term>
|
---|
| 214 | <listitem>
|
---|
[8f1699f2] | 215 | <para>
|
---|
| 216 | is a command-line based utility used to generate template
|
---|
| 217 | configuration files and then generate documentation from these
|
---|
| 218 | templates. Use <command>doxygen --help</command> for an
|
---|
| 219 | explanation of the command-line parameters.
|
---|
| 220 | </para>
|
---|
[1bbef1e] | 221 | <indexterm zone="doxygen doxygen-prog">
|
---|
| 222 | <primary sortas="b-doxygen">doxygen</primary>
|
---|
| 223 | </indexterm>
|
---|
| 224 | </listitem>
|
---|
| 225 | </varlistentry>
|
---|
| 226 |
|
---|
| 227 | <varlistentry id="doxywizard">
|
---|
| 228 | <term><command>doxywizard</command></term>
|
---|
| 229 | <listitem>
|
---|
[8f1699f2] | 230 | <para>
|
---|
| 231 | is a GUI front-end for configuring and
|
---|
| 232 | running <command>doxygen</command>.
|
---|
| 233 | </para>
|
---|
[1bbef1e] | 234 | <indexterm zone="doxygen doxywizard">
|
---|
| 235 | <primary sortas="b-doxywizard">doxywizard</primary>
|
---|
| 236 | </indexterm>
|
---|
| 237 | </listitem>
|
---|
| 238 | </varlistentry>
|
---|
[8f1699f2] | 239 |
|
---|
[75457cc] | 240 | <varlistentry id="doxyindexer">
|
---|
| 241 | <term><command>doxyindexer</command></term>
|
---|
| 242 | <listitem>
|
---|
| 243 | <para>
|
---|
| 244 | generates a search index called <filename>doxysearch.db</filename>
|
---|
| 245 | from one or more search data files produced by
|
---|
| 246 | <command>doxygen</command>. See, e.g. <ulink
|
---|
| 247 | url="http://www.stack.nl/~dimitri/doxygen/manual/extsearch.html"/>.
|
---|
| 248 | </para>
|
---|
| 249 | <indexterm zone="doxygen doxyindexer">
|
---|
| 250 | <primary sortas="b-doxyindexer">doxyindexer</primary>
|
---|
| 251 | </indexterm>
|
---|
| 252 | </listitem>
|
---|
| 253 | </varlistentry>
|
---|
| 254 |
|
---|
| 255 | <varlistentry id="doxysearch.cgi">
|
---|
| 256 | <term><command>doxysearch.cgi</command></term>
|
---|
| 257 | <listitem>
|
---|
| 258 | <para>
|
---|
| 259 | is a CGI program to search the data indexed by
|
---|
| 260 | <command>doxyindexer</command>.
|
---|
| 261 | </para>
|
---|
| 262 | <indexterm zone="doxygen doxysearch.cgi">
|
---|
| 263 | <primary sortas="b-doxysearch.cgi">doxysearch.cgi</primary>
|
---|
| 264 | </indexterm>
|
---|
| 265 | </listitem>
|
---|
| 266 | </varlistentry>
|
---|
| 267 |
|
---|
[1bbef1e] | 268 | </variablelist>
|
---|
| 269 |
|
---|
| 270 | </sect2>
|
---|
[faa80ab] | 271 |
|
---|
| 272 | </sect1>
|
---|