官方步骤
git clone https://github.com/doxygen/doxygen.git
cd doxygen
mkdir build
cd build
cmake -G "Unix Makefiles" ..
make
sudo make install
错误
CMake Error at /usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find FLEX (missing: FLEX_EXECUTABLE)
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.10/Modules/FindFLEX.cmake:217 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:105 (find_package)
解决方法
sudo apt-get install flex
sudo apt-get install bison
然后再从cmake -G "Unix Makefiles" ..
开始执行
参考资料
https://www.doxygen.nl/download.html
https://stackoverflow.com/questions/50986047/doxygen-could-not-find-flex-missing-flex-executable