Blame doc/install.doc

Packit Service 50c9f2
/******************************************************************************
Packit Service 50c9f2
 *
Packit Service 50c9f2
 * 
Packit Service 50c9f2
 *
Packit Service 50c9f2
 * Copyright (C) 1997-2015 by Dimitri van Heesch.
Packit Service 50c9f2
 *
Packit Service 50c9f2
 * Permission to use, copy, modify, and distribute this software and its
Packit Service 50c9f2
 * documentation under the terms of the GNU General Public License is hereby 
Packit Service 50c9f2
 * granted. No representations are made about the suitability of this software 
Packit Service 50c9f2
 * for any purpose. It is provided "as is" without express or implied warranty.
Packit Service 50c9f2
 * See the GNU General Public License for more details.
Packit Service 50c9f2
 *
Packit Service 50c9f2
 * Documents produced by Doxygen are derivative works derived from the
Packit Service 50c9f2
 * input used in their production; they are not affected by this license.
Packit Service 50c9f2
 *
Packit Service 50c9f2
 */
Packit Service 50c9f2
/*! \page install Installation
Packit Service 50c9f2
Packit Service 50c9f2
\addindex installation
Packit Service 50c9f2
\tableofcontents
Packit Service 50c9f2
Packit Service 50c9f2
First go to the 
Packit Service 50c9f2
download page
Packit Service 50c9f2
to get the latest distribution, if you have not downloaded doxygen already.
Packit Service 50c9f2
Packit Service 50c9f2
\section install_src_unix Compiling from source on UNIX
Packit Service 50c9f2
Packit Service 50c9f2
If you downloaded the source distribution, you need at least the 
Packit Service 50c9f2
following to build the executable:
Packit Service 50c9f2
    Packit Service 50c9f2
  • The GNU tools
  • Packit Service 50c9f2
        \c flex, \c bison, \c libiconv and GNU make, and \c strip
    Packit Service 50c9f2
        \addindex flex
    Packit Service 50c9f2
        \addindex bison
    Packit Service 50c9f2
        \addindex libiconv
    Packit Service 50c9f2
        \addindex make
    Packit Service 50c9f2
        \addindex strip
    Packit Service 50c9f2
        \addindex python
    Packit Service 50c9f2
  • In order to generate a \c Makefile for your platform, you need
  • Packit Service 50c9f2
        cmake version 2.8.12 or later.
    Packit Service 50c9f2
        \addindex cmake
    Packit Service 50c9f2
    Packit Service 50c9f2
    Packit Service 50c9f2
    To take full advantage of doxygen's features the following additional
    Packit Service 50c9f2
    tools should be installed.
    Packit Service 50c9f2
    Packit Service 50c9f2
      Packit Service 50c9f2
    • Qt Software's GUI toolkit
    • Packit Service 50c9f2
          Qt
      Packit Service 50c9f2
          \addindex Qt
      Packit Service 50c9f2
          version 4.3 or higher (but currently, Qt 5.x is not yet supported).
      Packit Service 50c9f2
          This is needed to build the GUI front-end doxywizard. 
      Packit Service 50c9f2
    • A \LaTeX distribution: for instance
    • Packit Service 50c9f2
          TeX Live
      Packit Service 50c9f2
          This is needed for generating \LaTeX, Postscript, and PDF output.
      Packit Service 50c9f2
    • Packit Service 50c9f2
          the Graph visualization toolkit version 1.8.10 or higher
      Packit Service 50c9f2
          Needed for the include dependency graphs, 
      Packit Service 50c9f2
          the graphical inheritance graphs, and the collaboration graphs.
      Packit Service 50c9f2
          If you compile graphviz yourself, make sure you do include
      Packit Service 50c9f2
          freetype support (which requires the freetype library and header files), 
      Packit Service 50c9f2
          otherwise the graphs will not render proper text labels.
      Packit Service 50c9f2
    • For formulas in the HTML output (when MathJax is not used)
    • Packit Service 50c9f2
          or in case you do not wish to use `pdflatex`,
      Packit Service 50c9f2
          the ghostscript interpreter is needed. You can find it at 
      Packit Service 50c9f2
          www.ghostscript.com.
      Packit Service 50c9f2
      Packit Service 50c9f2
      Packit Service 50c9f2
      Compilation is now done by performing the following steps:
      Packit Service 50c9f2
      Packit Service 50c9f2
        Packit Service 50c9f2
      1. Unpack the archive, unless you already have done that:
      2. Packit Service 50c9f2
           
        Packit Service 50c9f2
                gunzip doxygen-$VERSION.src.tar.gz    # uncompress the archive
        Packit Service 50c9f2
                tar xf doxygen-$VERSION.src.tar       # unpack it
        Packit Service 50c9f2
        Packit Service 50c9f2
      3. Create a build directory (for instance inside the source tree)
      4. Packit Service 50c9f2
        Packit Service 50c9f2
                cd doxygen-$VERSION
        Packit Service 50c9f2
                mkdir build
        Packit Service 50c9f2
                cd build
        Packit Service 50c9f2
        Packit Service 50c9f2
      5. Run cmake with the makefile generator
      6. Packit Service 50c9f2
        Packit Service 50c9f2
                cmake -G "Unix Makefiles" ..
        Packit Service 50c9f2
        Packit Service 50c9f2
            cmake tries to determine the platform you use, and will look
        Packit Service 50c9f2
            for the requires tools. It will report if something is missing.
        Packit Service 50c9f2
        Packit Service 50c9f2
            If you have Qt-4.3 or higher installed and want to build the GUI
        Packit Service 50c9f2
            front-end, you should enable it as follows:
        Packit Service 50c9f2
        Packit Service 50c9f2
                cmake -Dbuild_wizard=YES ..
        Packit Service 50c9f2
        Packit Service 50c9f2
            For an overview of other configuration options use
        Packit Service 50c9f2
        Packit Service 50c9f2
                cmake -L ..
        Packit Service 50c9f2
        Packit Service 50c9f2
      7. Compile the program by running make:
      8. Packit Service 50c9f2
        Packit Service 50c9f2
                make
        Packit Service 50c9f2
        Packit Service 50c9f2
            The program should compile without problems and the binaries
        Packit Service 50c9f2
            (doxygen and optionally doxywizard)
        Packit Service 50c9f2
            should be available in the bin directory within the build directory.
        Packit Service 50c9f2
        Packit Service 50c9f2
      9. Optional: Generate the user manual.
      10. Packit Service 50c9f2
            
        Packit Service 50c9f2
                cmake -Dbuild_doc=YES ..
        Packit Service 50c9f2
                make docs
        Packit Service 50c9f2
        Packit Service 50c9f2
            To let doxygen generate the HTML and PDF documentation.
        Packit Service 50c9f2
            
        Packit Service 50c9f2
            The HTML directory within the build directory will now contain the html
        Packit Service 50c9f2
            documentation (just point a HTML browser to the file
        Packit Service 50c9f2
            index.html in the html directory).
        Packit Service 50c9f2
            
        Packit Service 50c9f2
        Packit Service 50c9f2
        Packit Service 50c9f2
        \section install_bin_unix    Installing the binaries on UNIX
        Packit Service 50c9f2
        Packit Service 50c9f2
        After the compilation of the source code do a make install
        Packit Service 50c9f2
        to install doxygen. If you downloaded the binary distribution for UNIX,
        Packit Service 50c9f2
        type:
        Packit Service 50c9f2
        Packit Service 50c9f2
            ./configure
        Packit Service 50c9f2
            make install
        Packit Service 50c9f2
        Packit Service 50c9f2
        Binaries are installed into the directory \<prefix\>/bin.
        Packit Service 50c9f2
        Use make install_docs to install the
        Packit Service 50c9f2
        documentation and examples into \<docdir\>/doxygen. 
        Packit Service 50c9f2
        Packit Service 50c9f2
        \<prefix\> defaults to /usr/local but can be changed with 
        Packit Service 50c9f2
        the `--prefix` option of the configure script. 
        Packit Service 50c9f2
        The default \<docdir\> directory is 
        Packit Service 50c9f2
        \<prefix\>/share/doc/packages and can be changed with
        Packit Service 50c9f2
        the `--docdir` option of the configure script.
        Packit Service 50c9f2
        Packit Service 50c9f2
        Alternatively, you can also copy the binaries from the bin 
        Packit Service 50c9f2
        directory manually to some bin directory in your search path.
        Packit Service 50c9f2
        This is sufficient to use doxygen.
        Packit Service 50c9f2
        Packit Service 50c9f2
        \note You need the GNU install tool for this to work (it is part of
        Packit Service 50c9f2
        the coreutils package). Other install tools may put the binaries in 
        Packit Service 50c9f2
        the wrong directory!
        Packit Service 50c9f2
        Packit Service 50c9f2
        If you have a RPM or DEP package, then please follow the 
        Packit Service 50c9f2
        standard installation procedure that is required for these packages. 
        Packit Service 50c9f2
        Packit Service 50c9f2
        \section install_src_windows Compiling from source on Windows
        Packit Service 50c9f2
        Packit Service 50c9f2
        From version 1.8.10 onwards, build files need to be generated by cmake.
        Packit Service 50c9f2
        cmake can be downloaded from https://cmake.org/download/
        Packit Service 50c9f2
        Packit Service 50c9f2
        At the moment only the express version of Visual Studio 2013 is tested,
        Packit Service 50c9f2
        but other version might also work.
        Packit Service 50c9f2
        Packit Service 50c9f2
        Alternatively, you can compile doxygen 
        Packit Service 50c9f2
        \ref install_src_unix "the UNIX way" using 
        Packit Service 50c9f2
        Cygwin
        Packit Service 50c9f2
        or MinGW.
        Packit Service 50c9f2
        Packit Service 50c9f2
        The next step is to install modern versions of \c bison and \c flex
        Packit Service 50c9f2
        (see https://sourceforge.net/projects/winflexbison/. After installation and adding them to
        Packit Service 50c9f2
        your `path` rename `win_flex.exe` to `flex.exe` and `win_bison.exe` to `bison.exe`)
        Packit Service 50c9f2
        Furthermore you have to install \c python (version 2.6 or higher, see https://www.python.org).
        Packit Service 50c9f2
        These packages are needed during the compilation process.
        Packit Service 50c9f2
        Packit Service 50c9f2
        Download doxygen's source tarball and put it somewhere (e.g. use c:\\tools)
        Packit Service 50c9f2
        Packit Service 50c9f2
        Now start a visual studio native command shell (for either x86 or x64) and type
        Packit Service 50c9f2
        \verbatim
        Packit Service 50c9f2
        cd c:\tools
        Packit Service 50c9f2
        tar zxvf doxygen-x.y.z.src.tar.gz
        Packit Service 50c9f2
        \endverbatim
        Packit Service 50c9f2
        to unpack the sources (you can obtain \c tar from e.g. http://gnuwin32.sourceforge.net/packages.html).
        Packit Service 50c9f2
        Alternatively you can use an unpack program, like 7-Zip (see http://www.7-zip.org)
        Packit Service 50c9f2
        or use the build in unpack feature of modern Windows systems).
        Packit Service 50c9f2
        Packit Service 50c9f2
        Now your environment is setup to generate the required project files for \c doxygen.
        Packit Service 50c9f2
        Packit Service 50c9f2
        cd into the \c doxygen-x.y.z directory, create and cd to a build directory
        Packit Service 50c9f2
        \verbatim
        Packit Service 50c9f2
        mkdir build
        Packit Service 50c9f2
        cd build
        Packit Service 50c9f2
        cmake -G "Visual Studio 12 2013" ..
        Packit Service 50c9f2
        \endverbatim
        Packit Service 50c9f2
        Packit Service 50c9f2
        Note that compiling Doxywizard currently requires Qt version 4
        Packit Service 50c9f2
        (see http://qt-project.org/).
        Packit Service 50c9f2
        Packit Service 50c9f2
        Also read the next section for additional tools you may need to install to run
        Packit Service 50c9f2
        doxygen with certain features enabled.
        Packit Service 50c9f2
        Packit Service 50c9f2
        \section install_bin_windows Installing the binaries on Windows
        Packit Service 50c9f2
        Packit Service 50c9f2
        Doxygen comes as a self-installing archive, so installation is extremely simple.
        Packit Service 50c9f2
        Just follow the dialogs.
        Packit Service 50c9f2
        Packit Service 50c9f2
        After installation it is recommended to also download and install GraphViz
        Packit Service 50c9f2
        (version 2.20 or better is highly recommended). Doxygen can use the \c dot tool 
        Packit Service 50c9f2
        of the GraphViz package to render nicer diagrams, see the 
        Packit Service 50c9f2
        \ref cfg_have_dot "HAVE_DOT" option in the configuration file.
        Packit Service 50c9f2
        Packit Service 50c9f2
        If you want to produce compressed HTML files (see \ref 
        Packit Service 50c9f2
        cfg_generate_htmlhelp "GENERATE_HTMLHELP") in the config file, then 
        Packit Service 50c9f2
        you need the Microsoft HTML help workshop. 
        Packit Service 50c9f2
        You can download it from 
        Packit Service 50c9f2
        Microsoft.
        Packit Service 50c9f2
        Packit Service 50c9f2
        If you want to produce Qt Compressed Help files (see \ref 
        Packit Service 50c9f2
        cfg_qhg_location "QHG_LOCATION") in the config file, then 
        Packit Service 50c9f2
        you need qhelpgenerator which is part of Qt. 
        Packit Service 50c9f2
        You can download Qt from Qt Software Downloads.
        Packit Service 50c9f2
        Packit Service 50c9f2
        In order to generate PDF output or use scientific formulas you will also need to
        Packit Service 50c9f2
        install LaTeX and 
        Packit Service 50c9f2
        Ghostscript. 
        Packit Service 50c9f2
        Packit Service 50c9f2
        For \LaTeX a number of distributions exists. Popular ones that should work with
        Packit Service 50c9f2
        doxygen are MikTex 
        Packit Service 50c9f2
        and proTeXt.
        Packit Service 50c9f2
        Packit Service 50c9f2
        Ghostscript can be downloaded 
        Packit Service 50c9f2
        from Sourceforge.
        Packit Service 50c9f2
        Packit Service 50c9f2
        After installing \LaTeX and Ghostscript you'll need to make sure the tools
        Packit Service 50c9f2
        latex.exe, pdflatex.exe, and gswin32c.exe are present in the search path of a
        Packit Service 50c9f2
        command box. Follow these
        Packit Service 50c9f2
        instructions if you are unsure and run the commands from a command box to verify it works.
        Packit Service 50c9f2
        Packit Service 50c9f2
        \htmlonly
        Packit Service 50c9f2
        Go to the next section or return to the
        Packit Service 50c9f2
         index.
        Packit Service 50c9f2
        \endhtmlonly
        Packit Service 50c9f2
        Packit Service 50c9f2
        */
        Packit Service 50c9f2