[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">
|
---|
[88499366] | 9 | <!ENTITY doxygen-md5sum "0fa414975f8cd6d30e126c28327c1f7c">
|
---|
[13d0d6f0] | 10 | <!ENTITY doxygen-size "4.7 MB">
|
---|
[88499366] | 11 | <!ENTITY doxygen-buildsize "180 MB (with all programs, docs, and tests)">
|
---|
| 12 | <!ENTITY doxygen-time "2.2 SBU (with all programs, docs, and tests)">
|
---|
[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 |
|
---|
[1d76821] | 53 | &lfs80_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>
|
---|
[13d0d6f0] | 88 | <!--
|
---|
[b4ea593] | 89 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 90 | <itemizedlist spacing='compact'>
|
---|
| 91 | <listitem>
|
---|
| 92 | <para>Required patch: <ulink
|
---|
| 93 | url="&patch-root;/doxygen-&doxygen-version;-flex_2_6_0_fix-1.patch"/></para>
|
---|
| 94 | </listitem>
|
---|
[13d0d6f0] | 95 | </itemizedlist>-->
|
---|
| 96 |
|
---|
[1bbef1e] | 97 | <bridgehead renderas="sect3">Doxygen Dependencies</bridgehead>
|
---|
| 98 |
|
---|
[42285880] | 99 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 100 | <para role="required">
|
---|
| 101 | <xref linkend="cmake"/>
|
---|
| 102 | </para>
|
---|
| 103 |
|
---|
[1bbef1e] | 104 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[8f1699f2] | 105 | <para role="optional">
|
---|
| 106 | <xref linkend="graphviz"/>,
|
---|
| 107 | <xref linkend="gs"/>,
|
---|
[9e3d18a7] | 108 | <xref linkend="libxml2"/> (required for the tests),
|
---|
[75457cc] | 109 | <xref linkend="llvm"/> (with clang),
|
---|
| 110 | <xref linkend="python2"/> or <xref linkend="python3"/>,
|
---|
[13d0d6f0] | 111 | <xref linkend="qt5"/> (for doxywizard),
|
---|
[67b1a0a1] | 112 | <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>), and
|
---|
[75457cc] | 113 | <xref linkend="xapian"/> (for doxyindexer)
|
---|
[8f1699f2] | 114 | </para>
|
---|
[1bbef1e] | 115 |
|
---|
[1039de3] | 116 | <para condition="html" role="usernotes">User Notes:
|
---|
[8f1699f2] | 117 | <ulink url="&blfs-wiki;/doxygen"/>
|
---|
| 118 | </para>
|
---|
[1bbef1e] | 119 | </sect2>
|
---|
| 120 |
|
---|
| 121 | <sect2 role="installation">
|
---|
| 122 | <title>Installation of Doxygen</title>
|
---|
| 123 |
|
---|
[8f1699f2] | 124 | <para>
|
---|
| 125 | Install <application>Doxygen</application> by running the following
|
---|
| 126 | commands:
|
---|
| 127 | </para>
|
---|
[1bbef1e] | 128 |
|
---|
[c41843e] | 129 | <screen><userinput>mkdir -v build &&
|
---|
| 130 | cd build &&
|
---|
| 131 |
|
---|
| 132 | cmake -G "Unix Makefiles" \
|
---|
[42285880] | 133 | -DCMAKE_BUILD_TYPE=Release \
|
---|
| 134 | -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
[88499366] | 135 | -Wno-dev .. &&
|
---|
[42285880] | 136 |
|
---|
[1bbef1e] | 137 | make</userinput></screen>
|
---|
[d260aaf4] | 138 |
|
---|
[8f1699f2] | 139 | <para>
|
---|
[f98c985] | 140 | To test the results, issue: <command>make tests</command>.
|
---|
[8f1699f2] | 141 | </para>
|
---|
[a1fd0f2] | 142 |
|
---|
[42285880] | 143 | <para>
|
---|
| 144 | If you wish to generate the package documentation, you must have
|
---|
| 145 | <application>Python</application>, <application>TeX Live</application>
|
---|
| 146 | (for HTML docs) and <application>Ghostscript</application> (for PDF docs)
|
---|
| 147 | installed, then issue the following command:
|
---|
| 148 | </para>
|
---|
| 149 |
|
---|
[13d0d6f0] | 150 | <screen><userinput>cmake -DDOC_INSTALL_DIR=share/doc/doxygen-&doxygen-version; -Dbuild_doc=ON .. &&
|
---|
[42285880] | 151 |
|
---|
| 152 | make docs</userinput></screen>
|
---|
| 153 |
|
---|
[8f1699f2] | 154 | <para>
|
---|
| 155 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 156 | </para>
|
---|
[d260aaf4] | 157 |
|
---|
[42285880] | 158 | <screen role="root"><userinput>make install &&
|
---|
[bd4f0143] | 159 | install -vm644 ../doc/*.1 /usr/share/man/man1</userinput></screen>
|
---|
[a1fd0f2] | 160 |
|
---|
[13d0d6f0] | 161 | <para>
|
---|
| 162 | If you have generated the package documentation, then the man pages are
|
---|
| 163 | automatically installed, and you do not need to run the last
|
---|
| 164 | <command>install ...</command> command.
|
---|
| 165 | </para>
|
---|
| 166 |
|
---|
[1bbef1e] | 167 | </sect2>
|
---|
| 168 |
|
---|
| 169 | <sect2 role="commands">
|
---|
| 170 | <title>Command Explanations</title>
|
---|
| 171 |
|
---|
[42285880] | 172 | <para>
|
---|
| 173 | <option>-Dbuild_wizard=ON</option>: Use this switch if
|
---|
[88499366] | 174 | <application>Qt5</application> is installed and you wish to build the GUI
|
---|
[42285880] | 175 | front-end.
|
---|
[8f1699f2] | 176 | </para>
|
---|
[1bbef1e] | 177 |
|
---|
[75457cc] | 178 | <para>
|
---|
[42285880] | 179 | <option>-Dbuild_search=ON</option>: Use this switch if
|
---|
[75457cc] | 180 | <application>xapian</application> is installed and you wish to build
|
---|
[38b3eab] | 181 | external search tools (<command>doxysearch.cgi</command> and
|
---|
| 182 | <command>doxyindexer)</command>.
|
---|
[75457cc] | 183 | </para>
|
---|
[88499366] | 184 | <!--
|
---|
[13d0d6f0] | 185 | <para>
|
---|
| 186 | <option>-Dforce_qt4=ON</option>: Use this switch to build
|
---|
| 187 | <command>doxywizard</command> with Qt4 even if Qt5 is installed.
|
---|
[88499366] | 188 | </para>-->
|
---|
[13d0d6f0] | 189 |
|
---|
[75457cc] | 190 | <para>
|
---|
[42285880] | 191 | <option>-Duse_libclang=ON</option>: Use this switch if
|
---|
[75457cc] | 192 | <application>llvm</application> with <application>clang</application> are
|
---|
[42285880] | 193 | installed, to add support for libclang parsing.
|
---|
| 194 | </para>
|
---|
| 195 |
|
---|
[a1fd0f2] | 196 | </sect2>
|
---|
[1bbef1e] | 197 |
|
---|
[a1fd0f2] | 198 | <sect2 role="configuration">
|
---|
| 199 | <title>Configuring Doxygen</title>
|
---|
[1bbef1e] | 200 |
|
---|
[8f1699f2] | 201 | <para>
|
---|
| 202 | There is no real configuration necessary for the
|
---|
| 203 | <application>Doxygen</application> package although three additional
|
---|
| 204 | packages are required if you wish to use extended capabilities. If you
|
---|
| 205 | need to use the language translation features, you must have <xref
|
---|
| 206 | linkend="python2"/> installed. If you require formulas to create PDF
|
---|
| 207 | documentation, then you must have <xref linkend="texlive"/> installed.
|
---|
| 208 | If you require formulas to convert PostScript files to bitmaps, then
|
---|
| 209 | you must have <xref linkend="gs"/> installed.
|
---|
| 210 | </para>
|
---|
[1bbef1e] | 211 |
|
---|
| 212 | </sect2>
|
---|
| 213 |
|
---|
| 214 | <sect2 role="content">
|
---|
| 215 | <title>Contents</title>
|
---|
| 216 |
|
---|
| 217 | <segmentedlist>
|
---|
| 218 | <segtitle>Installed Programs</segtitle>
|
---|
[c3c56b2] | 219 | <segtitle>Installed Libraries</segtitle>
|
---|
[1bbef1e] | 220 | <segtitle>Installed Directory</segtitle>
|
---|
| 221 |
|
---|
| 222 | <seglistitem>
|
---|
[8f1699f2] | 223 | <seg>
|
---|
[75457cc] | 224 | doxygen and optionally,
|
---|
| 225 | doxywizard, doxyindexer and doxysearch.cgi
|
---|
[8f1699f2] | 226 | </seg>
|
---|
[c3c56b2] | 227 | <seg>
|
---|
| 228 | None
|
---|
| 229 | </seg>
|
---|
[8f1699f2] | 230 | <seg>
|
---|
| 231 | /usr/share/doc/doxygen-&doxygen-version;
|
---|
| 232 | </seg>
|
---|
[1bbef1e] | 233 | </seglistitem>
|
---|
| 234 | </segmentedlist>
|
---|
| 235 |
|
---|
| 236 | <variablelist>
|
---|
| 237 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 238 | <?dbfo list-presentation="list"?>
|
---|
| 239 | <?dbhtml list-presentation="table"?>
|
---|
| 240 |
|
---|
| 241 | <varlistentry id="doxygen-prog">
|
---|
| 242 | <term><command>doxygen</command></term>
|
---|
| 243 | <listitem>
|
---|
[8f1699f2] | 244 | <para>
|
---|
| 245 | is a command-line based utility used to generate template
|
---|
| 246 | configuration files and then generate documentation from these
|
---|
| 247 | templates. Use <command>doxygen --help</command> for an
|
---|
| 248 | explanation of the command-line parameters.
|
---|
| 249 | </para>
|
---|
[1bbef1e] | 250 | <indexterm zone="doxygen doxygen-prog">
|
---|
| 251 | <primary sortas="b-doxygen">doxygen</primary>
|
---|
| 252 | </indexterm>
|
---|
| 253 | </listitem>
|
---|
| 254 | </varlistentry>
|
---|
| 255 |
|
---|
| 256 | <varlistentry id="doxywizard">
|
---|
| 257 | <term><command>doxywizard</command></term>
|
---|
| 258 | <listitem>
|
---|
[8f1699f2] | 259 | <para>
|
---|
| 260 | is a GUI front-end for configuring and
|
---|
| 261 | running <command>doxygen</command>.
|
---|
| 262 | </para>
|
---|
[1bbef1e] | 263 | <indexterm zone="doxygen doxywizard">
|
---|
| 264 | <primary sortas="b-doxywizard">doxywizard</primary>
|
---|
| 265 | </indexterm>
|
---|
| 266 | </listitem>
|
---|
| 267 | </varlistentry>
|
---|
[8f1699f2] | 268 |
|
---|
[75457cc] | 269 | <varlistentry id="doxyindexer">
|
---|
| 270 | <term><command>doxyindexer</command></term>
|
---|
| 271 | <listitem>
|
---|
| 272 | <para>
|
---|
| 273 | generates a search index called <filename>doxysearch.db</filename>
|
---|
| 274 | from one or more search data files produced by
|
---|
| 275 | <command>doxygen</command>. See, e.g. <ulink
|
---|
| 276 | url="http://www.stack.nl/~dimitri/doxygen/manual/extsearch.html"/>.
|
---|
| 277 | </para>
|
---|
| 278 | <indexterm zone="doxygen doxyindexer">
|
---|
| 279 | <primary sortas="b-doxyindexer">doxyindexer</primary>
|
---|
| 280 | </indexterm>
|
---|
| 281 | </listitem>
|
---|
| 282 | </varlistentry>
|
---|
| 283 |
|
---|
| 284 | <varlistentry id="doxysearch.cgi">
|
---|
| 285 | <term><command>doxysearch.cgi</command></term>
|
---|
| 286 | <listitem>
|
---|
| 287 | <para>
|
---|
| 288 | is a CGI program to search the data indexed by
|
---|
| 289 | <command>doxyindexer</command>.
|
---|
| 290 | </para>
|
---|
| 291 | <indexterm zone="doxygen doxysearch.cgi">
|
---|
| 292 | <primary sortas="b-doxysearch.cgi">doxysearch.cgi</primary>
|
---|
| 293 | </indexterm>
|
---|
| 294 | </listitem>
|
---|
| 295 | </varlistentry>
|
---|
| 296 |
|
---|
[1bbef1e] | 297 | </variablelist>
|
---|
| 298 |
|
---|
| 299 | </sect2>
|
---|
[faa80ab] | 300 |
|
---|
| 301 | </sect1>
|
---|