[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 |
|
---|
[c6b192c] | 7 | <!ENTITY doxygen-download-http "https://doxygen.nl/files/doxygen-&doxygen-version;.src.tar.gz">
|
---|
[01f594b] | 8 | <!ENTITY doxygen-download-ftp " ">
|
---|
[9629dab] | 9 | <!ENTITY doxygen-md5sum "95008edf2d84aeefb7c65a6a4857dc2c">
|
---|
| 10 | <!ENTITY doxygen-size "5.5 MB">
|
---|
| 11 | <!ENTITY doxygen-buildsize "240 MB (with tests)">
|
---|
| 12 | <!ENTITY doxygen-time "1.6 SBU (using parallelism=4; with tests)">
|
---|
[faa80ab] | 13 | ]>
|
---|
| 14 |
|
---|
[cef3a2f] | 15 | <sect1 id="doxygen" xreflabel="Doxygen-&doxygen-version;">
|
---|
[1bbef1e] | 16 | <?dbhtml filename="doxygen.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>Doxygen-&doxygen-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="doxygen">
|
---|
| 22 | <primary sortas="a-Doxygen">Doxygen</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to Doxygen</title>
|
---|
| 27 |
|
---|
[8f1699f2] | 28 | <para>
|
---|
| 29 | The <application>Doxygen</application> package contains a documentation
|
---|
| 30 | system for C++, C, Java, Objective-C, Corba IDL and to some extent PHP,
|
---|
| 31 | C# and D. It is useful for generating HTML documentation and/or an
|
---|
| 32 | off-line reference manual from a set of documented source files. There
|
---|
| 33 | is also support for generating output in RTF, PostScript, hyperlinked
|
---|
| 34 | PDF, compressed HTML, and Unix man pages. The documentation is extracted
|
---|
| 35 | directly from the sources, which makes it much easier to keep the
|
---|
| 36 | documentation consistent with the source code.
|
---|
| 37 | </para>
|
---|
| 38 |
|
---|
| 39 | <para>
|
---|
| 40 | You can also configure <application>Doxygen</application> to extract
|
---|
| 41 | the code structure from undocumented source files. This is very useful
|
---|
| 42 | to quickly find your way in large source distributions. Used along with
|
---|
| 43 | <application>Graphviz</application>, you can also visualize the relations
|
---|
| 44 | between the various elements by means of include dependency graphs,
|
---|
| 45 | inheritance diagrams, and collaboration diagrams, which are all generated
|
---|
| 46 | automatically.
|
---|
| 47 | </para>
|
---|
[1bbef1e] | 48 |
|
---|
[dc1a45e] | 49 | &lfs113_checked;
|
---|
[778be14] | 50 |
|
---|
[1bbef1e] | 51 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 52 | <itemizedlist spacing="compact">
|
---|
| 53 | <listitem>
|
---|
[8f1699f2] | 54 | <para>
|
---|
| 55 | Download (HTTP): <ulink url="&doxygen-download-http;"/>
|
---|
| 56 | </para>
|
---|
[1bbef1e] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[8f1699f2] | 59 | <para>
|
---|
| 60 | Download (FTP): <ulink url="&doxygen-download-ftp;"/>
|
---|
| 61 | </para>
|
---|
[1bbef1e] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[8f1699f2] | 64 | <para>
|
---|
| 65 | Download MD5 sum: &doxygen-md5sum;
|
---|
| 66 | </para>
|
---|
[1bbef1e] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[8f1699f2] | 69 | <para>
|
---|
| 70 | Download size: &doxygen-size;
|
---|
| 71 | </para>
|
---|
[1bbef1e] | 72 | </listitem>
|
---|
| 73 | <listitem>
|
---|
[8f1699f2] | 74 | <para>
|
---|
| 75 | Estimated disk space required: &doxygen-buildsize;
|
---|
| 76 | </para>
|
---|
[1bbef1e] | 77 | </listitem>
|
---|
| 78 | <listitem>
|
---|
[8f1699f2] | 79 | <para>
|
---|
| 80 | Estimated build time: &doxygen-time;
|
---|
| 81 | </para>
|
---|
[1bbef1e] | 82 | </listitem>
|
---|
| 83 | </itemizedlist>
|
---|
[13d0d6f0] | 84 | <!--
|
---|
[b4ea593] | 85 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 86 | <itemizedlist spacing='compact'>
|
---|
| 87 | <listitem>
|
---|
[de33b2a] | 88 | <para>
|
---|
| 89 | Required patch: <ulink
|
---|
| 90 | url="&patch-root;/doxygen-&doxygen-version;-flex_2_6_0_fix-1.patch"/>
|
---|
| 91 | </para>
|
---|
[b4ea593] | 92 | </listitem>
|
---|
[13d0d6f0] | 93 | </itemizedlist>-->
|
---|
| 94 |
|
---|
[1bbef1e] | 95 | <bridgehead renderas="sect3">Doxygen Dependencies</bridgehead>
|
---|
| 96 |
|
---|
[42285880] | 97 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 98 | <para role="required">
|
---|
[3fb270d] | 99 | <xref linkend="cmake"/> and
|
---|
| 100 | <xref linkend="git"/>
|
---|
[42285880] | 101 | </para>
|
---|
| 102 |
|
---|
[1bbef1e] | 103 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[8f1699f2] | 104 | <para role="optional">
|
---|
| 105 | <xref linkend="graphviz"/>,
|
---|
| 106 | <xref linkend="gs"/>,
|
---|
[9e3d18a7] | 107 | <xref linkend="libxml2"/> (required for the tests),
|
---|
[75457cc] | 108 | <xref linkend="llvm"/> (with clang),
|
---|
[8b0496b] | 109 | <!-- Can someone check this? With LLVM7, it fails to build. -->
|
---|
[13d0d6f0] | 110 | <xref linkend="qt5"/> (for doxywizard),
|
---|
[d5f6e8e] | 111 | <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>),
|
---|
| 112 | <xref linkend="xapian"/> (for doxyindexer), and
|
---|
| 113 | <ulink url="https://javacc.github.io/javacc/">javacc</ulink>
|
---|
[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 |
|
---|
[9629dab] | 124 | <para>
|
---|
| 125 | First, fix up some python scripts:
|
---|
| 126 | </para>
|
---|
| 127 |
|
---|
| 128 | <screen><userinput>grep -rl '^#!.*python$' | xargs sed -i '1s/python/&3/'</userinput></screen>
|
---|
| 129 |
|
---|
[8f1699f2] | 130 | <para>
|
---|
| 131 | Install <application>Doxygen</application> by running the following
|
---|
| 132 | commands:
|
---|
| 133 | </para>
|
---|
[1bbef1e] | 134 |
|
---|
[c41843e] | 135 | <screen><userinput>mkdir -v build &&
|
---|
| 136 | cd build &&
|
---|
| 137 |
|
---|
| 138 | cmake -G "Unix Makefiles" \
|
---|
[42285880] | 139 | -DCMAKE_BUILD_TYPE=Release \
|
---|
| 140 | -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
[88499366] | 141 | -Wno-dev .. &&
|
---|
[42285880] | 142 |
|
---|
[1bbef1e] | 143 | make</userinput></screen>
|
---|
[d260aaf4] | 144 |
|
---|
[8f1699f2] | 145 | <para>
|
---|
[f2abc73] | 146 | To test the results, issue: <command>make tests</command>.
|
---|
[9629dab] | 147 | One test, 061_Únicod€_file, is known to fail.
|
---|
[8f1699f2] | 148 | </para>
|
---|
[a1fd0f2] | 149 |
|
---|
[42285880] | 150 | <para>
|
---|
| 151 | If you wish to generate the package documentation, you must have
|
---|
| 152 | <application>Python</application>, <application>TeX Live</application>
|
---|
| 153 | (for HTML docs) and <application>Ghostscript</application> (for PDF docs)
|
---|
| 154 | installed, then issue the following command:
|
---|
| 155 | </para>
|
---|
| 156 |
|
---|
[a42c273] | 157 | <screen remap="doc"><userinput>cmake -DDOC_INSTALL_DIR=share/doc/doxygen-&doxygen-version; -Dbuild_doc=ON .. &&
|
---|
[42285880] | 158 |
|
---|
| 159 | make docs</userinput></screen>
|
---|
| 160 |
|
---|
[8f1699f2] | 161 | <para>
|
---|
| 162 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 163 | </para>
|
---|
[d260aaf4] | 164 |
|
---|
[42285880] | 165 | <screen role="root"><userinput>make install &&
|
---|
[bd4f0143] | 166 | install -vm644 ../doc/*.1 /usr/share/man/man1</userinput></screen>
|
---|
[a1fd0f2] | 167 |
|
---|
[13d0d6f0] | 168 | <para>
|
---|
| 169 | If you have generated the package documentation, then the man pages are
|
---|
| 170 | automatically installed, and you do not need to run the last
|
---|
| 171 | <command>install ...</command> command.
|
---|
| 172 | </para>
|
---|
| 173 |
|
---|
[1bbef1e] | 174 | </sect2>
|
---|
| 175 |
|
---|
| 176 | <sect2 role="commands">
|
---|
| 177 | <title>Command Explanations</title>
|
---|
| 178 |
|
---|
[42285880] | 179 | <para>
|
---|
| 180 | <option>-Dbuild_wizard=ON</option>: Use this switch if
|
---|
[88499366] | 181 | <application>Qt5</application> is installed and you wish to build the GUI
|
---|
[42285880] | 182 | front-end.
|
---|
[8f1699f2] | 183 | </para>
|
---|
[1bbef1e] | 184 |
|
---|
[75457cc] | 185 | <para>
|
---|
[42285880] | 186 | <option>-Dbuild_search=ON</option>: Use this switch if
|
---|
[75457cc] | 187 | <application>xapian</application> is installed and you wish to build
|
---|
[38b3eab] | 188 | external search tools (<command>doxysearch.cgi</command> and
|
---|
| 189 | <command>doxyindexer)</command>.
|
---|
[75457cc] | 190 | </para>
|
---|
[88499366] | 191 | <!--
|
---|
[13d0d6f0] | 192 | <para>
|
---|
| 193 | <option>-Dforce_qt4=ON</option>: Use this switch to build
|
---|
| 194 | <command>doxywizard</command> with Qt4 even if Qt5 is installed.
|
---|
[88499366] | 195 | </para>-->
|
---|
[13d0d6f0] | 196 |
|
---|
[75457cc] | 197 | <para>
|
---|
[42285880] | 198 | <option>-Duse_libclang=ON</option>: Use this switch if
|
---|
[75457cc] | 199 | <application>llvm</application> with <application>clang</application> are
|
---|
[42285880] | 200 | installed, to add support for libclang parsing.
|
---|
| 201 | </para>
|
---|
| 202 |
|
---|
[a1fd0f2] | 203 | </sect2>
|
---|
[1bbef1e] | 204 |
|
---|
[a1fd0f2] | 205 | <sect2 role="configuration">
|
---|
| 206 | <title>Configuring Doxygen</title>
|
---|
[1bbef1e] | 207 |
|
---|
[8f1699f2] | 208 | <para>
|
---|
| 209 | There is no real configuration necessary for the
|
---|
| 210 | <application>Doxygen</application> package although three additional
|
---|
| 211 | packages are required if you wish to use extended capabilities. If you
|
---|
| 212 | need to use the language translation features, you must have <xref
|
---|
| 213 | linkend="python2"/> installed. If you require formulas to create PDF
|
---|
| 214 | documentation, then you must have <xref linkend="texlive"/> installed.
|
---|
| 215 | If you require formulas to convert PostScript files to bitmaps, then
|
---|
| 216 | you must have <xref linkend="gs"/> installed.
|
---|
| 217 | </para>
|
---|
[1bbef1e] | 218 |
|
---|
| 219 | </sect2>
|
---|
| 220 |
|
---|
| 221 | <sect2 role="content">
|
---|
| 222 | <title>Contents</title>
|
---|
| 223 |
|
---|
| 224 | <segmentedlist>
|
---|
| 225 | <segtitle>Installed Programs</segtitle>
|
---|
[c3c56b2] | 226 | <segtitle>Installed Libraries</segtitle>
|
---|
[1bbef1e] | 227 | <segtitle>Installed Directory</segtitle>
|
---|
| 228 |
|
---|
| 229 | <seglistitem>
|
---|
[8f1699f2] | 230 | <seg>
|
---|
[75457cc] | 231 | doxygen and optionally,
|
---|
| 232 | doxywizard, doxyindexer and doxysearch.cgi
|
---|
[8f1699f2] | 233 | </seg>
|
---|
[c3c56b2] | 234 | <seg>
|
---|
| 235 | None
|
---|
| 236 | </seg>
|
---|
[8f1699f2] | 237 | <seg>
|
---|
| 238 | /usr/share/doc/doxygen-&doxygen-version;
|
---|
| 239 | </seg>
|
---|
[1bbef1e] | 240 | </seglistitem>
|
---|
| 241 | </segmentedlist>
|
---|
| 242 |
|
---|
| 243 | <variablelist>
|
---|
| 244 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 245 | <?dbfo list-presentation="list"?>
|
---|
| 246 | <?dbhtml list-presentation="table"?>
|
---|
| 247 |
|
---|
| 248 | <varlistentry id="doxygen-prog">
|
---|
| 249 | <term><command>doxygen</command></term>
|
---|
| 250 | <listitem>
|
---|
[8f1699f2] | 251 | <para>
|
---|
| 252 | is a command-line based utility used to generate template
|
---|
| 253 | configuration files and then generate documentation from these
|
---|
| 254 | templates. Use <command>doxygen --help</command> for an
|
---|
[4c24eb0a] | 255 | explanation of the command-line parameters
|
---|
[8f1699f2] | 256 | </para>
|
---|
[1bbef1e] | 257 | <indexterm zone="doxygen doxygen-prog">
|
---|
| 258 | <primary sortas="b-doxygen">doxygen</primary>
|
---|
| 259 | </indexterm>
|
---|
| 260 | </listitem>
|
---|
| 261 | </varlistentry>
|
---|
| 262 |
|
---|
| 263 | <varlistentry id="doxywizard">
|
---|
| 264 | <term><command>doxywizard</command></term>
|
---|
| 265 | <listitem>
|
---|
[8f1699f2] | 266 | <para>
|
---|
| 267 | is a GUI front-end for configuring and
|
---|
[4c24eb0a] | 268 | running <command>doxygen</command>
|
---|
[8f1699f2] | 269 | </para>
|
---|
[1bbef1e] | 270 | <indexterm zone="doxygen doxywizard">
|
---|
| 271 | <primary sortas="b-doxywizard">doxywizard</primary>
|
---|
| 272 | </indexterm>
|
---|
| 273 | </listitem>
|
---|
| 274 | </varlistentry>
|
---|
[8f1699f2] | 275 |
|
---|
[75457cc] | 276 | <varlistentry id="doxyindexer">
|
---|
| 277 | <term><command>doxyindexer</command></term>
|
---|
| 278 | <listitem>
|
---|
| 279 | <para>
|
---|
| 280 | generates a search index called <filename>doxysearch.db</filename>
|
---|
| 281 | from one or more search data files produced by
|
---|
[4c24eb0a] | 282 | <command>doxygen</command>. See, e.g.
|
---|
| 283 | <ulink url="https://javacc.github.io/javacc/"/>
|
---|
[75457cc] | 284 | </para>
|
---|
| 285 | <indexterm zone="doxygen doxyindexer">
|
---|
| 286 | <primary sortas="b-doxyindexer">doxyindexer</primary>
|
---|
| 287 | </indexterm>
|
---|
| 288 | </listitem>
|
---|
| 289 | </varlistentry>
|
---|
| 290 |
|
---|
| 291 | <varlistentry id="doxysearch.cgi">
|
---|
| 292 | <term><command>doxysearch.cgi</command></term>
|
---|
| 293 | <listitem>
|
---|
| 294 | <para>
|
---|
| 295 | is a CGI program to search the data indexed by
|
---|
[4c24eb0a] | 296 | <command>doxyindexer</command>
|
---|
[75457cc] | 297 | </para>
|
---|
| 298 | <indexterm zone="doxygen doxysearch.cgi">
|
---|
| 299 | <primary sortas="b-doxysearch.cgi">doxysearch.cgi</primary>
|
---|
| 300 | </indexterm>
|
---|
| 301 | </listitem>
|
---|
| 302 | </varlistentry>
|
---|
| 303 |
|
---|
[1bbef1e] | 304 | </variablelist>
|
---|
| 305 |
|
---|
| 306 | </sect2>
|
---|
[faa80ab] | 307 |
|
---|
| 308 | </sect1>
|
---|