Introduction to Doxygen
The Doxygen package contains a
documentation system for C++, C, Java, Objective-C, Corba IDL and
to some extent PHP, C# and D. It is useful for generating HTML
documentation and/or an off-line reference manual from a set of
documented source files. There is also support for generating
output in RTF, PostScript, hyperlinked PDF, compressed HTML, and
Unix man pages. The documentation is extracted directly from the
sources, which makes it much easier to keep the documentation
consistent with the source code.
You can also configure Doxygen to
extract the code structure from undocumented source files. This is
very useful to quickly find your way in large source distributions.
Used along with Graphviz, you can
also visualize the relations between the various elements by means
of include dependency graphs, inheritance diagrams, and
collaboration diagrams, which are all generated automatically.
This package is known to build and work properly using an LFS-7.7
libxml2-2.9.2, LLVM-3.6.2 (with clang), Python-2.7.10 or
Python-3.4.3, Qt-4.8.7 (for doxywizard),
texlive-20150521 (or install-tl-unx) and Xapian-1.2.21 (for
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/doxygen
Installation of Doxygen
Install Doxygen by running the
mkdir -v build &&
cd build &&
cmake -G "Unix Makefiles" \
.. & &
To test the results, issue this: make
If you wish to generate the package documentation, you must have
Python-2.7.10, texlive-20150521 (for HTML
documentation), and ghostscript-9.16 (for PDF docs) installed,
then issue the following commands:
sed -i 's:man/man1:share/&:' ../doc/CMakeLists.txt &&
cmake -DDOC_INSTALL_DIR=share/doc/doxygen-1.8.10 -Dbuild_doc=ON .. &&
Now, as the
make install &&
install -v -m644 ../doc/*.1 /usr/share/man/man1
If you generated the package documentation, install it by executing
the following command as the
make docs install
sed -i ...
CMakeLists.txt: Fixes the directory where the man
pages are installed.
-Dbuild_wizard=ON: Use this switch if
Qt4 is installed and you wish to
build the GUI frontend.
-Dbuild_search=ON: Use this switch if
you have installed Xapian-1.2.21 and you wish to build the
external search tools (doxysearch.cgi and doxyindexer).
-Duse_libclang=ON: Use this switch if
you have installed Clang and you
wish to to add support for libclang parsing.
There is no real configuration necessary for the Doxygen package although three additional
packages are required if you wish to use extended capabilities. If
you need to use the language translation features, you must have
Python-2.7.10 installed. If you require
formulas to create PDF documentation, then you must have texlive-20150521 installed. If you
require formulas to convert PostScript files to bitmaps, then you
must have ghostscript-9.16 installed.
doxygen and optionally, doxywizard,
doxyindexer and doxysearch.cgi
is a command-line based utility used to generate template
configuration files and then generate documentation from
these templates. Use doxygen --help for an
explanation of the command-line parameters.
is a GUI front-end for configuring and running
generates a search index called
doxysearch.db from one or more search
data files produced by doxygen.
is a CGI program to search the data indexed by
Last updated on 2015-08-25 20:46:34 +0000