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.
- 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).
- cmake: https://cmake.org/download/
- gcc: https://gcc.gnu.org/install/
- To display inheritance diagrams, Doxygen requires an installation of graphviz.
Download the source packages from https://www.graphviz.org/download/source/
Code Block |
---|
|
wget https://gitlab.com/api/v4/projects/4207231/packages/generic/graphviz-releases/5.0.0/graphviz-5.0.0.tar.gz |
Unpack the archive.
Code Block |
---|
|
tar -xf graphviz-5.0.0.tar.gz |
Navigate into the graphviz folder and create an install directory.
Code Block |
---|
|
cd graphviz-5.0.0
mkdir install |
Configure
Code Block |
---|
|
./configure --prefix=/sdf/group/hps/users/your_username/path/to/graphviz/install |
Make and install
Code Block |
---|
|
make
make install |
- Install Doxygen:
Clone git repository or download source distribution
Code Block |
---|
|
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 |
Navigate into Doxygen directory, and create build and install directories. Navigate into build directory.
Code Block |
---|
|
cd doxygen
mkdir install
mkdir build && cd build |
Set GCC and g++ to newer (non-default) versions
Code Block |
---|
|
export CC=/your/gcc/installation/bin/gcc
export CXX=/your/gcc/installation/bin/g++ |
Run cmake
Code Block |
---|
|
path/to/your/cmake/3.22/bin/cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=../install/ .. |
Make and make install
Code Block |
---|
|
make -j4 # it will take forever otherwise
make install |
Modify your LD_LIBRARY_PATH and your PATH variable
Code Block |
---|
|
# 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 |
Test if Doxygen has been installed successfully
Info |
---|
Related articles
Content by Label |
---|
showLabels | false |
---|
max | 5 |
---|
spaces | hpsg |
---|
showSpace | false |
---|
sort | modified |
---|
reverse | true |
---|
type | page |
---|
cql | label in ("installation","doxygen") and type = "page" and space = "hpsg" |
---|
labels | doxygen installation |
---|
|