Doxygen
1.1、Doxygen简介
是什么 ?:a tool that generates documentation from annotated source code.
开发语言:C
官方主页:http://doxygen.nl
源码仓库:https://github.com/doxygen/doxygen
1.2、通过包管理器安装Doxygen
操作系统包管理器安装命令
Windowsscoopscoop install doxygen
WindowsChocolateychoco install -y doxygen.install
macOSHomeBrewbrew install doxygen
GNU/LinuxLinuxBrewbrew install doxygen
aptsudo apt-get install -y doxygen
CentOSyumsudo yum install -y doxygen
dnfsudo dnf install -y doxygen
openSUSEzyppersudo zypper install -y doxygen
Alpine Linuxapksudo apk add doxygen

Arch Linux

ArcoLinux

Manjaro Linux

pacmansudo pacman -Syyu --noconfirm
sudo pacman -S    --noconfirm doxygen
Gentoo LinuxPortagesudo emerge doxygen
1.3、通过编译源码安装Doxygen 

1、安装依赖

下载时cURL
解压时targzip
编译时CMakeGNU makeGCC ( gcc )   | LLVM / Clangbison
运行时glibc ( libc.sold-linux-x86-64.so )

step2、使用curl命令下载Doxygen源码包 (

curl -LO http://doxygen.nl/files/doxygen-1.8.16.src.tar.gz

step3、使用tar解压Doxygen源码包

tar vxf doxygen-1.8.16.src.tar.gz

step4、进入doxygen-1.8.16目录

cd doxygen-1.8.16

step5、查看doxygen-1.8.16目录的内容

step6、使用cmake命令配置编译参数

cmake [option]... -D<变量>=<值> -S <sourceDIR> -B <buildDIR>

示例:

cmake \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -G "Unix Makefiles" \
    -Wno-dev \
    -S . \
    -B build

step7、使用GNU make编译、安装

make --directory=build install
1.4、doxygen命令