[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[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 " ">
|
---|
[00ecacd] | 9 | <!ENTITY doxygen-md5sum "3ab97fd76c6fe090946c836c5051182b">
|
---|
[b277093d] | 10 | <!ENTITY doxygen-size "8.1 MB">
|
---|
[00ecacd] | 11 | <!ENTITY doxygen-buildsize "248 MB (with tests)">
|
---|
| 12 | <!ENTITY doxygen-time "1.9 SBU (with tests; both using parallelism=4)">
|
---|
[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 |
|
---|
[fc87c5a0] | 49 | &lfs122_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 |
|
---|
[b277093d] | 103 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 104 | <para role="recommended">
|
---|
| 105 | <xref linkend="qt6"/> (for doxywizard)
|
---|
| 106 | </para>
|
---|
| 107 |
|
---|
[1bbef1e] | 108 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[8f1699f2] | 109 | <para role="optional">
|
---|
| 110 | <xref linkend="graphviz"/>,
|
---|
| 111 | <xref linkend="gs"/>,
|
---|
[9e3d18a7] | 112 | <xref linkend="libxml2"/> (required for the tests),
|
---|
[75457cc] | 113 | <xref linkend="llvm"/> (with clang),
|
---|
[8b0496b] | 114 | <!-- Can someone check this? With LLVM7, it fails to build. -->
|
---|
[d5f6e8e] | 115 | <xref linkend="texlive"/> (or <xref linkend="tl-installer"/>),
|
---|
| 116 | <xref linkend="xapian"/> (for doxyindexer), and
|
---|
| 117 | <ulink url="https://javacc.github.io/javacc/">javacc</ulink>
|
---|
[8f1699f2] | 118 | </para>
|
---|
[1bbef1e] | 119 |
|
---|
| 120 | </sect2>
|
---|
| 121 |
|
---|
| 122 | <sect2 role="installation">
|
---|
| 123 | <title>Installation of Doxygen</title>
|
---|
[b277093d] | 124 | <!-- At version 1.11.0, I don't see this. -bdubbs
|
---|
[07efc98] | 125 | <note>
|
---|
| 126 | <para>
|
---|
| 127 | When untarring this package, you may see messages such as
|
---|
| 128 | <quote>Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.com.apple.TextEncoding'</quote>.
|
---|
| 129 | These messages are harmless, and can be safely ignored.
|
---|
| 130 | </para>
|
---|
| 131 | </note>
|
---|
[b277093d] | 132 | -->
|
---|
[9629dab] | 133 | <para>
|
---|
| 134 | First, fix up some python scripts:
|
---|
| 135 | </para>
|
---|
| 136 |
|
---|
| 137 | <screen><userinput>grep -rl '^#!.*python$' | xargs sed -i '1s/python/&3/'</userinput></screen>
|
---|
| 138 |
|
---|
[8f1699f2] | 139 | <para>
|
---|
| 140 | Install <application>Doxygen</application> by running the following
|
---|
| 141 | commands:
|
---|
| 142 | </para>
|
---|
[1bbef1e] | 143 |
|
---|
[c41843e] | 144 | <screen><userinput>mkdir -v build &&
|
---|
| 145 | cd build &&
|
---|
| 146 |
|
---|
[b277093d] | 147 | cmake -G "Unix Makefiles" \
|
---|
| 148 | -D CMAKE_BUILD_TYPE=Release \
|
---|
| 149 | -D CMAKE_INSTALL_PREFIX=/usr \
|
---|
| 150 | -D build_wizard=ON \
|
---|
| 151 | -D force_qt=Qt6 \
|
---|
| 152 | -W no-dev .. &&
|
---|
[1bbef1e] | 153 | make</userinput></screen>
|
---|
[d260aaf4] | 154 |
|
---|
[8f1699f2] | 155 | <para>
|
---|
[f2abc73] | 156 | To test the results, issue: <command>make tests</command>.
|
---|
[b277093d] | 157 | One test, 012_cite.dox, is known to fail if <xref linkend="texlive"/>
|
---|
| 158 | or <xref linkend="tl-installer"/> is not installed.
|
---|
[8f1699f2] | 159 | </para>
|
---|
[a1fd0f2] | 160 |
|
---|
[42285880] | 161 | <para>
|
---|
| 162 | If you wish to generate the package documentation, you must have
|
---|
| 163 | <application>Python</application>, <application>TeX Live</application>
|
---|
| 164 | (for HTML docs) and <application>Ghostscript</application> (for PDF docs)
|
---|
| 165 | installed, then issue the following command:
|
---|
| 166 | </para>
|
---|
| 167 |
|
---|
[b277093d] | 168 | <screen remap="doc"><userinput>cmake -D build_doc=ON \
|
---|
| 169 | -D DOC_INSTALL_DIR=share/doc/doxygen-&doxygen-version; \
|
---|
| 170 | .. &&
|
---|
[42285880] | 171 | make docs</userinput></screen>
|
---|
| 172 |
|
---|
[8f1699f2] | 173 | <para>
|
---|
| 174 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 175 | </para>
|
---|
[d260aaf4] | 176 |
|
---|
[42285880] | 177 | <screen role="root"><userinput>make install &&
|
---|
[bd4f0143] | 178 | install -vm644 ../doc/*.1 /usr/share/man/man1</userinput></screen>
|
---|
[a1fd0f2] | 179 |
|
---|
[13d0d6f0] | 180 | <para>
|
---|
| 181 | If you have generated the package documentation, then the man pages are
|
---|
| 182 | automatically installed, and you do not need to run the last
|
---|
| 183 | <command>install ...</command> command.
|
---|
| 184 | </para>
|
---|
| 185 |
|
---|
[1bbef1e] | 186 | </sect2>
|
---|
| 187 |
|
---|
| 188 | <sect2 role="commands">
|
---|
| 189 | <title>Command Explanations</title>
|
---|
| 190 |
|
---|
[42285880] | 191 | <para>
|
---|
[b277093d] | 192 | <option>-D build_wizard=OFF</option>: Use this switch if
|
---|
| 193 | <application>Qt6</application> is not installed.
|
---|
[8f1699f2] | 194 | </para>
|
---|
[1bbef1e] | 195 |
|
---|
[75457cc] | 196 | <para>
|
---|
[b277093d] | 197 | <option>-D build_search=ON</option>: Use this switch if
|
---|
[75457cc] | 198 | <application>xapian</application> is installed and you wish to build
|
---|
[38b3eab] | 199 | external search tools (<command>doxysearch.cgi</command> and
|
---|
| 200 | <command>doxyindexer)</command>.
|
---|
[75457cc] | 201 | </para>
|
---|
[b277093d] | 202 |
|
---|
[13d0d6f0] | 203 | <para>
|
---|
[b277093d] | 204 | <option>-D force_qt6=ON</option>: Use this switch to build
|
---|
| 205 | <command>doxywizard</command> with Qt6 even if Qt5 is installed.
|
---|
| 206 | </para>
|
---|
[13d0d6f0] | 207 |
|
---|
[75457cc] | 208 | <para>
|
---|
[b277093d] | 209 | <option>-D use_libclang=ON</option>: Use this switch if
|
---|
[75457cc] | 210 | <application>llvm</application> with <application>clang</application> are
|
---|
[42285880] | 211 | installed, to add support for libclang parsing.
|
---|
| 212 | </para>
|
---|
| 213 |
|
---|
[a1fd0f2] | 214 | </sect2>
|
---|
[1bbef1e] | 215 |
|
---|
[a1fd0f2] | 216 | <sect2 role="configuration">
|
---|
| 217 | <title>Configuring Doxygen</title>
|
---|
[1bbef1e] | 218 |
|
---|
[8f1699f2] | 219 | <para>
|
---|
| 220 | There is no real configuration necessary for the
|
---|
| 221 | <application>Doxygen</application> package although three additional
|
---|
[2b676a5c] | 222 | packages are required if you wish to use extended capabilities.
|
---|
| 223 | If you require formulas to create PDF
|
---|
[8f1699f2] | 224 | documentation, then you must have <xref linkend="texlive"/> installed.
|
---|
| 225 | If you require formulas to convert PostScript files to bitmaps, then
|
---|
| 226 | you must have <xref linkend="gs"/> installed.
|
---|
| 227 | </para>
|
---|
[1bbef1e] | 228 |
|
---|
| 229 | </sect2>
|
---|
| 230 |
|
---|
| 231 | <sect2 role="content">
|
---|
| 232 | <title>Contents</title>
|
---|
| 233 |
|
---|
| 234 | <segmentedlist>
|
---|
| 235 | <segtitle>Installed Programs</segtitle>
|
---|
[c3c56b2] | 236 | <segtitle>Installed Libraries</segtitle>
|
---|
[1bbef1e] | 237 | <segtitle>Installed Directory</segtitle>
|
---|
| 238 |
|
---|
| 239 | <seglistitem>
|
---|
[8f1699f2] | 240 | <seg>
|
---|
[75457cc] | 241 | doxygen and optionally,
|
---|
| 242 | doxywizard, doxyindexer and doxysearch.cgi
|
---|
[8f1699f2] | 243 | </seg>
|
---|
[c3c56b2] | 244 | <seg>
|
---|
| 245 | None
|
---|
| 246 | </seg>
|
---|
[8f1699f2] | 247 | <seg>
|
---|
| 248 | /usr/share/doc/doxygen-&doxygen-version;
|
---|
| 249 | </seg>
|
---|
[1bbef1e] | 250 | </seglistitem>
|
---|
| 251 | </segmentedlist>
|
---|
| 252 |
|
---|
| 253 | <variablelist>
|
---|
| 254 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 255 | <?dbfo list-presentation="list"?>
|
---|
| 256 | <?dbhtml list-presentation="table"?>
|
---|
| 257 |
|
---|
| 258 | <varlistentry id="doxygen-prog">
|
---|
| 259 | <term><command>doxygen</command></term>
|
---|
| 260 | <listitem>
|
---|
[8f1699f2] | 261 | <para>
|
---|
| 262 | is a command-line based utility used to generate template
|
---|
| 263 | configuration files and then generate documentation from these
|
---|
| 264 | templates. Use <command>doxygen --help</command> for an
|
---|
[4c24eb0a] | 265 | explanation of the command-line parameters
|
---|
[8f1699f2] | 266 | </para>
|
---|
[1bbef1e] | 267 | <indexterm zone="doxygen doxygen-prog">
|
---|
| 268 | <primary sortas="b-doxygen">doxygen</primary>
|
---|
| 269 | </indexterm>
|
---|
| 270 | </listitem>
|
---|
| 271 | </varlistentry>
|
---|
| 272 |
|
---|
| 273 | <varlistentry id="doxywizard">
|
---|
| 274 | <term><command>doxywizard</command></term>
|
---|
| 275 | <listitem>
|
---|
[8f1699f2] | 276 | <para>
|
---|
| 277 | is a GUI front-end for configuring and
|
---|
[4c24eb0a] | 278 | running <command>doxygen</command>
|
---|
[8f1699f2] | 279 | </para>
|
---|
[1bbef1e] | 280 | <indexterm zone="doxygen doxywizard">
|
---|
| 281 | <primary sortas="b-doxywizard">doxywizard</primary>
|
---|
| 282 | </indexterm>
|
---|
| 283 | </listitem>
|
---|
| 284 | </varlistentry>
|
---|
[8f1699f2] | 285 |
|
---|
[75457cc] | 286 | <varlistentry id="doxyindexer">
|
---|
| 287 | <term><command>doxyindexer</command></term>
|
---|
| 288 | <listitem>
|
---|
| 289 | <para>
|
---|
| 290 | generates a search index called <filename>doxysearch.db</filename>
|
---|
| 291 | from one or more search data files produced by
|
---|
[4c24eb0a] | 292 | <command>doxygen</command>. See, e.g.
|
---|
| 293 | <ulink url="https://javacc.github.io/javacc/"/>
|
---|
[75457cc] | 294 | </para>
|
---|
| 295 | <indexterm zone="doxygen doxyindexer">
|
---|
| 296 | <primary sortas="b-doxyindexer">doxyindexer</primary>
|
---|
| 297 | </indexterm>
|
---|
| 298 | </listitem>
|
---|
| 299 | </varlistentry>
|
---|
| 300 |
|
---|
| 301 | <varlistentry id="doxysearch.cgi">
|
---|
| 302 | <term><command>doxysearch.cgi</command></term>
|
---|
| 303 | <listitem>
|
---|
| 304 | <para>
|
---|
| 305 | is a CGI program to search the data indexed by
|
---|
[4c24eb0a] | 306 | <command>doxyindexer</command>
|
---|
[75457cc] | 307 | </para>
|
---|
| 308 | <indexterm zone="doxygen doxysearch.cgi">
|
---|
| 309 | <primary sortas="b-doxysearch.cgi">doxysearch.cgi</primary>
|
---|
| 310 | </indexterm>
|
---|
| 311 | </listitem>
|
---|
| 312 | </varlistentry>
|
---|
| 313 |
|
---|
[1bbef1e] | 314 | </variablelist>
|
---|
| 315 |
|
---|
| 316 | </sect2>
|
---|
[faa80ab] | 317 |
|
---|
| 318 | </sect1>
|
---|