Blame doc/install.doc

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