Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Short description of how to install Doxygen on sdf.

Step-by-step guide

Doxygen installation guide: https://doxygen.nl/manual/install.html

The following steps illustrate how to apply these steps when installing Doxygen on sdf.

  1. Make sure your cmake and GCC versions are new enough, and install them if necessary (cmake 3.22 and GCC 11.2 worked for me).
    1. cmake: https://cmake.org/download/
    2. gcc: https://gcc.gnu.org/install/

  2. To display inheritance diagrams, Doxygen requires an installation of graphviz.
    1. Download the source packages from https://www.graphviz.org/download/source/

      Code Block
      languagebash
      wget https://gitlab.com/api/v4/projects/4207231/packages/generic/graphviz-releases/5.0.0/graphviz-5.0.0.tar.gz
    2. Unpack the archive.

      Code Block
      languagebash
      tar -xf graphviz-5.0.0.tar.gz
    3. Navigate into the graphviz folder and create an install directory.

      Code Block
      languagebash
      cd graphviz-5.0.0
      mkdir install
    4. Configure

      Code Block
      languagebash
      ./configure --prefix=/sdf/group/hps/users/your_username/path/to/graphviz/install
    5. Make and install

      Code Block
      languagebash
      make
      make install
  3. Install Doxygen:
    1. Clone git repository or download source distribution

      Code Block
      languagebash
      git clone https://github.com/doxygen/doxygen.git
      # OR
      wget https://www.doxygen.nl/files/doxygen-1.9.4.src.tar.gz
      tar -xf doxygen-1.9.4.src.tar.gz
      mv doxygen-1.9.4 doxygen
    2. Navigate into Doxygen directory, and create build and install directories. Navigate into build directory.

      Code Block
      languagebash
      cd doxygen
      mkdir install
      mkdir build && cd build
    3. Set GCC and g++ to newer (non-default) versions

      Code Block
      languagebash
      export CC=/your/gcc/installation/bin/gcc
      export CXX=/your/gcc/installation/bin/g++
    4. Run cmake

      Code Block
      languagebash
      path/to/your/cmake/3.22/bin/cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=../install/ ..
    5. Make and make install

      Code Block
      languagebash
      make -j4 # it will take forever otherwise
      make install
    6. Modify your LD_LIBRARY_PATH and your PATH variable

      Code Block
      languagebash
      # I would recommend adding this to your .bashrc
      export LD_LIBRARY_PATH=/your/gcc/installation/lib:/your/gcc/installation/lib64:$LD_LIBRARY_PATH
      export PATH=/sdf/group/hps/users/sgaiser/src/doxygen/doxygen/install/bin:$PATH
      
      # if you added this to your .bashrc, do
      source ~/.bashrc
  4. Test if Doxygen has been installed successfully

    Code Block
    languagebash
    doxygen -h
Info

Content by Label
showLabelsfalse
max5
spaceshpsg
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("installation","doxygen") and type = "page" and space = "hpsg"
labelsdoxygen installation

Page properties
hiddentrue
Related issues